MCPcopy Index your code
hub / github.com/coder/coder / isPauseDisabled

Function isPauseDisabled

site/src/modules/tasks/taskActions.ts:34–36  ·  view source on GitHub ↗
(status: TaskStatus)

Source from the content-addressed store, hash-verified

32 * Checks if the pause action should be disabled for a task status.
33 */
34export function isPauseDisabled(status: TaskStatus): boolean {
35 return PAUSE_DISABLED_STATUSES.includes(status);
36}
37
38/**
39 * Checks if a task can be resumed based on its status.

Callers 3

TaskSidebarMenuItemFunction · 0.90
TaskStartingAgentFunction · 0.90
TaskRowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected