-
Notifications
You must be signed in to change notification settings - Fork 341
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
Implement destroy delay #419
Conversation
/tests |
I thought the same however:
|
Agreed
As far as I can tell, this time would add to the graceful shoutdown time, so that shouldn't pose any issue. However, we can try with 30 seconds if you want. The main issue I see with arbitrary delays versus event-driven destroy is that we risk making a wrong estimation. |
In reality the controlled delay is not new a very safe. We are already destroying based on an event. The only thing is that we are delaying it to be able to warn any watcher. It's like our graceful shutdown. I would say that 30 secs is even more than needed. |
Is this ready? |
7557d10
to
7848d0f
Compare
@DavidGOrtega, yes, as soon as you consider it ready: all your suggestions have been applied. |
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.
lgtm 👍
…#431) * [create-pull-request] automated change (#425) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update dependacron pull request step (#426) This commit updates the major version for the peter-evans/create-pull-request GitHub Action step. Required in order to avoid a fatal error caused by the hard deprecation of the `set-env` and `add-path` standard output commands after CVE-2020-15228. * Add sanity check for cml-publish with filesystem paths (#427) * Add sanity check for cml-publish files Closes #308 and probably also closes #401 * Restyled by prettier (#428) Co-authored-by: Restyled.io <[email protected]> * Add tests for cml-publish file errors * Also removes an stray leading dot on the introduced error message * Embrace native file error messages for cml-publish Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <[email protected]> * Add destroy timeout feature (#419) * [create-pull-request] automated change (#441) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Helio Machado <[email protected]> * Add support for singleton runners (#422) * Add support for singleton runners The --reuse-existing flag will cause cml-runner to look up for already existing runners with the specified --labels and skip creating a new one if that's the case. * Deprecate --name with a warning * Apply pre-review suggestions and fixes * Comment out deprecation warning * Remove unnecessary comparison * Rename reuse-existing to reuse * Fix misconception about empty array truthiness * Simplify reuse by name logic * Add missing awaits * Give precedence to name deduplication over label deduplication * Remove commented code * Startup script (#445) * Startup script * lint * snapshots * Add debugging message for #443 (#448) This commit doesn't completely fix #443, but closes it until we can reproduce again the error. * Bitbucket-1000-handling * bump version Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <[email protected]> Co-authored-by: DavidGOrtega <[email protected]>
This pull request allows runners to wait the given number of seconds before starting the resource destroy process, so the Terraform provider has enough time to collect the logs in case of failure.
Fixes #413.