-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-16574][Master] Move some task operations into ITaskExecutionRunnable #16575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (!taskExecutionRunnable.isTaskInstanceInitialized()) { | ||
| taskExecutionRunnable.initializeTaskInstance(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the task instance should already initialized here.
| @Builder.Default | ||
| private TaskDependType taskDependType = TaskDependType.TASK_POST; | ||
|
|
||
| private CommandType execType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command type should always be COMPLEMENT_DATA
| // So we need to initialize the task instance here. | ||
| // Otherwise, we cannot find the statemachine by task instance state. | ||
| if (!taskExecutionRunnable.isTaskInstanceInitialized()) { | ||
| taskExecutionRunnable.initializeTaskInstance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use initializeFirstRunTaskInstance is more accurate.
5fec609 to
84f81b5
Compare
a0a5d3a to
c7b1e63
Compare
c7b1e63 to
895e6db
Compare
|
SbloodyS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
caishunfeng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1


Purpose of the pull request
close #16574
Brief change log
Verify this pull request
Verify by Master IT
Pull Request Notice
Pull Request Notice
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md