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

(aws-stepfunctions-tasks StepFunctionsStartExecution): (allow redrive instead of retry) #28344

Open
2 tasks
kmolsen opened this issue Dec 12, 2023 · 2 comments
Open
2 tasks
Labels
@aws-cdk/aws-stepfunctions-tasks effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3

Comments

@kmolsen
Copy link

kmolsen commented Dec 12, 2023

Describe the feature

Currently, we're able to add retries when we use a StepFunction to start another StepFunction. Redrive has recently been implemented for StepFunction executions, and it would be great if instead of retrying to whole StepFunction execution, we could redrive instead.

Use Case

It's frustrating when a StepFunction execution fails in the last task and may take a long time to rerun everything. This would eliminate that extra time and resources and allow the StepFunction execution to continue where it failed.

Proposed Solution

In the .retry method, add an option for redrive=True

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

v2

Environment details (OS name and version, etc.)

Ubuntu 20.04.5

@kmolsen kmolsen added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 12, 2023
@pahud
Copy link
Contributor

pahud commented Dec 13, 2023

I just read this blog post as well as the serverlessland emit-and-wait workflow sample but it's not clear if it is supported in cloudformation or if it could be defined in the workflow definition.

The redrive seems to be triggered programmically through AWS CLI, SDK or console. Do you have any idea how to define that in the workflow definition?

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Dec 13, 2023
@abdelnn
Copy link
Contributor

abdelnn commented Feb 28, 2024

Redrive is a feature that is not defined in a state machine's workflow definition. It's therefore not represented in Cloudformation either. I don't believe that it belongs in the CDK at all, as it does not affect your infrastructure as code.

However, you should be able to specify a retry behaviour for each individual states. What you're looking for would be an enhancement/feature in the StepFunctions service itself

@pahud pahud added p3 and removed p2 labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions-tasks effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3
Projects
None yet
Development

No branches or pull requests

3 participants