Skip to content

feat: Add support for shutdown_script #79

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

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Nov 24, 2022

Issue: coder/coder#4677

This PR introduces a new parameter - the shutdown script. The script is intended to be executed before the agent is stopped, before the networking is shut down.

@mtojek mtojek self-assigned this Nov 24, 2022
@mtojek mtojek marked this pull request as ready for review November 24, 2022 09:13
@mtojek mtojek requested a review from a team November 24, 2022 09:27
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we will need a shutdown_script_timeout as well? I think it'd be fine to wait indefinitely until shutdown script has completed, at least to start with. Most likely someone will want to debug something if the shutdown script has hung.

@mtojek
Copy link
Member Author

mtojek commented Nov 24, 2022

Yes, the idea is to come back quickly with basic feature. Then, I can extend it with extras like configurable execution timeout, retries, etc.

@mtojek mtojek requested a review from kylecarbs November 25, 2022 09:27
@mtojek
Copy link
Member Author

mtojek commented Nov 25, 2022

Hey @kylecarbs, it seems that I'm not authorized to merge this PR. Could you please help with this?

@mafredri mafredri merged commit e9305f5 into coder:main Nov 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants