Skip to content

feat: automatically stop workspaces based on failure_ttl#7989

Merged
sreya merged 10 commits into
mainfrom
jon/failedttl
Jun 22, 2023
Merged

feat: automatically stop workspaces based on failure_ttl#7989
sreya merged 10 commits into
mainfrom
jon/failedttl

Conversation

@sreya
Copy link
Copy Markdown
Collaborator

@sreya sreya commented Jun 13, 2023

This PR adds logic for scheduling stop transitions for workspaces that breach the failure_ttl field of their template.

As a side-effect, it also gets rid of the autobuild/executor package as I'm not sure what purpose it served to nest it further under autobuild.

@sreya sreya changed the title chore: rename autobuild/executor -> wsactions chore: refactor autobuild/executor -> wsactions Jun 13, 2023
@sreya sreya force-pushed the jon/failedttl branch 5 times, most recently from 179b76f to 4502851 Compare June 19, 2023 23:45
@sreya sreya changed the title chore: refactor autobuild/executor -> wsactions feat: automatically stop workspaces based on failure_ttl Jun 20, 2023
@sreya sreya marked this pull request as ready for review June 20, 2023 20:19
@sreya sreya requested a review from deansheather June 20, 2023 20:43
Comment thread coderd/autobuild/lifecycle_executor.go Outdated
Comment thread coderd/autobuild/lifecycle_executor.go
Comment thread coderd/autobuild/lifecycle_executor_test.go Outdated
Comment thread coderd/database/queries/workspaces.sql
@sreya sreya requested a review from deansheather June 21, 2023 02:01
Comment thread coderd/autobuild/lifecycle_executor.go Outdated
@sreya sreya merged commit 1b0124e into main Jun 22, 2023
@sreya sreya deleted the jon/failedttl branch June 22, 2023 04:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 2023
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.

2 participants