Skip to content

[Bug] [master/task] workflow with sub_process task can't be stop when running #14303

@HomminLee

Description

@HomminLee

Search before asking

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

What happened

version 3.1.7

I want to stop the workflow with 'sub_process' task, but the workflow still 'ready stop' and 'sub_process' task still running.

Task state:
image

Workflow state:
image

'sub_process' task log:
image


Task state should be 'kill' instead of 'stop', cause TaskExecutionStatus only admit 'kill':

  public boolean isFinished() {
      return isSuccess() || isKill() || isFailure() || isPause();
  }

  public boolean isKill() {
      return this == TaskExecutionStatus.KILL;
  }

What you expected to happen

Stop workflow with 'sub_process' task

How to reproduce

  1. create A workflow with a shell task which will sleep 100s.
image
  1. create B workflow with a sub_process task which point to A workflow.
  2. start B workflow.
  3. after few seconds, stop B workflow instance.

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

StalebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions