-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[CHASM] ExecuteSideEffectTask on Tree #7729
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
13ab36a to
897f4f8
Compare
|
Once #7855 is approved and lands in |
yycptt
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.
Change for transfer & outbound queue will be in a separate PR?
| task, | ||
| t.getCurrentTime, | ||
| t.config.StandbyTaskMissingEventsDiscardDelay(task.GetType()), | ||
| t.checkWorkflowStillExistOnSourceBeforeDiscard, |
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.
hmm can't really use this or at least need to change it's implementation. It's calls DescribeWorkflowExecution() which is specific for workflow.
Can you add a TODO here and create an issue to track this? No super urgent but need to get it fixed before we run chasm in production
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.
hmm can't really use this or at least need to change it's implementation. It's calls DescribeWorkflowExecution() which is specific for workflow.
Given that CHASM entity keys map cleanly back to workflow keys and are still written to DB as workflow executions, what prevents DescribeWorkflowExecution from working here?
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.
It's a workflow specific API and should return notFound if the requested ID is not a Workflow. Or maybe a different error type say InvalidArgument, still in that case needs to at least update the error handling logic in checkWorkflowStillExistOnSourceBeforeDiscard
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.
Gotcha, adding a TODO and a task.
What changed?
Why?
How did you test it?