Skip to content

Use task pause/resume API instead of workspace stop/start#811

Merged
EhabY merged 2 commits intomainfrom
use-task-pause-resume-api
Mar 2, 2026
Merged

Use task pause/resume API instead of workspace stop/start#811
EhabY merged 2 commits intomainfrom
use-task-pause-resume-api

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 2, 2026

Use the dedicated pauseTask/resumeTask endpoints which set the correct build_reason for log snapshot capture and task lifecycle tracking. Falls back to stopWorkspace/startWorkspace on 404 for older Coder servers.

Closes #795

@EhabY EhabY self-assigned this Mar 2, 2026
Use the dedicated pauseTask/resumeTask endpoints which set the correct
build_reason for log snapshot capture and task lifecycle tracking. Falls
back to stopWorkspace/startWorkspace on 404 for older Coder servers.
@EhabY EhabY force-pushed the use-task-pause-resume-api branch from 684cfd0 to b6f489d Compare March 2, 2026 08:43
Copy link
Collaborator

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

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

Other than some nits, looks good to me

@EhabY EhabY merged commit 8668d7b into main Mar 2, 2026
6 checks passed
@EhabY EhabY deleted the use-task-pause-resume-api branch March 2, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use task pause/resume API instead of workspace stop/start

2 participants