Skip to content
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

Add new event DetailType WorkflowRunStateChangeSync #779

Open
alexiswl opened this issue Dec 17, 2024 · 2 comments
Open

Add new event DetailType WorkflowRunStateChangeSync #779

alexiswl opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
feature New feature pipeline Workflow/Pipeline Manager

Comments

@alexiswl
Copy link
Member

alexiswl commented Dec 17, 2024

Summary

WorkflowRunStateChangeSync detail type is identical to the WorkflowRunStateChange detail type but with the TaskToken attribute.

Using a 'waitForCallBack' process, an AWS Step Function will hang until a SendTaskSuccess or SendTaskFailure message is sent with the task context's TaskToken.

Developers can place these events in their state machines to 'pause' the flow before continuing once the workflow has completed.

For example, the following bsshFastqCopy waits for the OraCompression to complete, prior to then pushing its own event saying that the bsshFastqCopy command has completed.

image

Part 1 - Listen to all WorkflowRunStateChangeSync events and launch event (without the TaskToken), this event will be relayed by the workflowmanager

image

Part 2 - Listen to all workflow run state change events where the status is in a terminal state

image

@alexiswl alexiswl added the feature New feature label Dec 17, 2024
@alexiswl alexiswl self-assigned this Dec 17, 2024
@victorskl victorskl added the pipeline Workflow/Pipeline Manager label Dec 17, 2024
@victorskl
Copy link
Member

@alexiswl
Copy link
Member Author

We can then use AWS Step Functions to run the case manager for a 'set' of analyses

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature pipeline Workflow/Pipeline Manager
Projects
None yet
Development

No branches or pull requests

2 participants