Skip to content

[Bug] [Master] Worker failover will cause task cannot be failover #10630

@ruanwenjun

Description

@ruanwenjun

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I test the dev branch, and find when the worker failover, the running task which should be failover will not failover.

The problem is that when we do worker failover, we didn't update the taskInstance in the cache, so the TaskProcessor will not execute the failover logic.

What you expected to happen

The task can be failovered successfully.

How to reproduce

  1. Start a master, worker.
  2. Execute 1000 workflow instance.
  3. Kill the worker.
  4. Restart the worker, find some taskInstance will not be failover and the workflowInstance will never finish.

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

backendbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions