Skip to content

feat: Add support for shutdown_script - #79

Merged
mafredri merged 1 commit into
coder:mainfrom
mtojek:4677-shutdown-script
Nov 25, 2022
Merged

mafredri merged 1 commit into
coder:mainfrom
mtojek:4677-shutdown-script

Conversation

@mtojek

@mtojek mtojek commented Nov 24, 2022 •

Copy link
Copy Markdown
Member

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

@mafredri mafredri left a comment

Copy link
Copy Markdown
Member

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

mtojek commented Nov 24, 2022

Copy link
Copy Markdown
Member Author

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

mtojek commented Nov 25, 2022

Copy link
Copy Markdown
Member Author

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