Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

stepfunctions wait execution-completed #119

Closed
vincentclee opened this issue Aug 31, 2021 · 5 comments
Closed

stepfunctions wait execution-completed #119

vincentclee opened this issue Aug 31, 2021 · 5 comments
Assignees
Labels

Comments

@vincentclee
Copy link

Is your feature request related to a problem? Please describe.
N/A

Describe the solution you'd like
Wait until a Step Functions state machine execution is in not in the current status of RUNNING. Status values: RUNNING | SUCCEEDED | FAILED | TIMED_OUT | ABORTED

aws stepfunctions wait execution-completed --execution-arn <execution-arn>

Describe alternatives you've considered

do
  result = aws stepfunctions describe-execution --execution-arn <execution-arn>
while (result.status not in ["SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"])

Additional context

@tim-finnigan tim-finnigan self-assigned this Sep 1, 2021
@tim-finnigan
Copy link
Contributor

Hi @vincentclee, thanks for reaching out.

Currently waiters are not defined for stepfunctions. Our service teams handle the implementation of waiters so that all AWS SDKs can use them consistently. So I’m transferring this issue to our shared SDK repo. I will reach out to the service team with this feature request and update this issue going forward.

@tim-finnigan
Copy link
Contributor

Also please note in the describe-execution documentation it says:

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

So this may not always be reliable to depend on for your use case.

@tim-finnigan tim-finnigan transferred this issue from aws/aws-cli Sep 1, 2021
@tim-finnigan
Copy link
Contributor

tim-finnigan commented Sep 1, 2021

P52047897

@tim-finnigan
Copy link
Contributor

Hi @vincentclee - the service team added this to their backlog but they don't see it as something they can prioritize in the near future.

However, they did recommend using EventBridge integrations as an alternative: https://docs.aws.amazon.com/step-functions/latest/dg/cw-events.html

Would using EventBridge work for your use case? I'm going to close this issue but can always reopen or add updates here as needed.

@github-actions
Copy link

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants