- Notifications
You must be signed in to change notification settings - Fork89
feat: Add ability to use waitForTaskToken for ECS tasks#180
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR! For integrations that support all 3 integration patterns, we started to introduce a different way to set this using the |
nicolaei commentedNov 12, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Sorry about the multiples of force-pushes (and subsequent spams from the build). Had some issues with the test-suite on my local machine for some reason 🤔
Would you like me to change the PR to use that pattern? I could introduce it to all the other task classes in Seeing that it would be a breaking change as well, I'd probably have to change the PR title to breaking? |
Uh oh!
There was an error while loading.Please reload this page.
wong-a commentedNov 12, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
We like to keep PRs small, so just ECS is more than fine. The main motivation here is supporting all 3 integration patterns and ECS is the only implemented integration that doesn't expose all of them. |
Sorry for the late change here, but here you go! |
@wong-a: Any chance we can get this merged? 😄 |
jormello 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.
AWS CodeBuild CI Report
Powered bygithub-codebuild-logs, available on theAWS Serverless Application Repository |
I updated the tests with explicit testing of both old-style and new-style parameters now! I'm a bit confused why the tests are failing though, because these build-issues seem totally unrelated, and I only updated my test-code 🤔 Any thoughts@jormello? |
Uh oh!
There was an error while loading.Please reload this page.
Description
This change adds the ability to use
waitForTaskTokenfor ECS tasks.Why is the change necessary?
To add support for documentet features. Refthe ECS step docs in the step function documentation.
Solution
The solution uses the already established pattern of having an argument
wait_for_callback, as seen in the lambda task.But because we can't have both
wait_for_completionandwait_for_callbackat the same time, I've added a condition to raise aValueErrorif both are set toTrue. I'm happy to change this if you've already got an established pattern for argument errors.Testing
Created a Unittest and also using this in a project at work.
Pull Request Checklist
Please check all boxes (including N/A items)
Testing
Documentation
Title and description
Fixes #xxxBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.