Skip to content

[Fix-17454] The "Workflow execute type" in workflow definition and the "Mode of execution" when executing workflows are unavailable#17458

Closed
Zzih wants to merge 1 commit intoapache:devfrom
Zzih:fix-execute-type
Closed

[Fix-17454] The "Workflow execute type" in workflow definition and the "Mode of execution" when executing workflows are unavailable#17458
Zzih wants to merge 1 commit intoapache:devfrom
Zzih:fix-execute-type

Conversation

@Zzih
Copy link
Copy Markdown
Contributor

@Zzih Zzih commented Aug 28, 2025

Purpose of the pull request

fix #17454

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

boolean checkAndApplyExecutionStrategy(WorkflowDefinition workflowDefinition,
WorkflowInstance workflowInstance);

boolean handleParallelStrategy(WorkflowDefinition workflowDefinition,

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'workflowDefinition' is never used.
command.setWorkflowDefinitionCode(workflowInstance.getWorkflowDefinitionCode());
command.setWorkflowDefinitionVersion(workflowInstance.getWorkflowDefinitionVersion());
command.setWorkflowInstanceId(workflowInstance.getId());
command.setExecutorId(workflowInstance.getExecutorId());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Command.setExecutorId
should be avoided because it has been deprecated.
command.setWorkflowDefinitionCode(waitingInstance.getWorkflowDefinitionCode());
command.setWorkflowDefinitionVersion(waitingInstance.getWorkflowDefinitionVersion());
command.setWorkflowInstanceId(waitingInstance.getId());
command.setExecutorId(waitingInstance.getExecutorId());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Command.setExecutorId
should be avoided because it has been deprecated.
@ruanwenjun ruanwenjun added the discussion discussion label Sep 1, 2025
Copy link
Copy Markdown
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to make sure the serial strategy workflow's instance are launched by only one master, otherwise the judge will be incorrect.

@SbloodyS SbloodyS closed this Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Master] The "Workflow execute type" in workflow definition and the "Mode of execution" when executing workflows are unavailable

4 participants