Skip to content

Tasks: Migrate UI pause/resume to dedicated Tasks endpoints #1330

Closed

Description

@EhabY

Repo: coder/coder

Scope: Update the task pause/resume UI implementation to use the dedicated Tasks Pause/Resume API endpoints instead of Workspace stop/start operations.

Background:
The initial implementation (#1267) uses workspace stop/start operations under the hood for pausing/resuming tasks. Once the dedicated Tasks Pause/Resume endpoints are available, we should migrate to use these directly for cleaner semantics and potential future task-specific behaviors.

Changes:

  • Replace workspace stop API calls with Tasks Pause endpoint
  • Replace workspace start API calls with Tasks Resume endpoint
  • Update React Query mutations to use new endpoint paths
  • Update polling/status checks to use task-centric status if available
  • Remove workspace-specific build waiting logic in favor of task status polling (if applicable)

Activity

  1. mafredri commented on Feb 19, 2026

    @mafredri
    Member

    @EhabY FYI, these endpoints are available now so this ticket is unblocked.

  2. EhabY commented on Mar 9, 2026

    @EhabY
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions