Skip to main content

yc-bench task-cancel

Cancel a planned or in-progress task. Cancelling a task incurs a prestige penalty and frees up the assigned employee.

Usage

yc-bench task-cancel <task-id> [OPTIONS]

Parameters

task-id
string
required
The ID of the task to cancel
--force
boolean
Skip confirmation prompt and cancel immediately

Response

Returns cancellation details:
taskId
string
Cancelled task identifier
status
string
Updated task status (“cancelled”)
prestigePenalty
number
Prestige points lost due to cancellation
newPrestige
number
Company’s prestige after penalty
freedEmployee
string | null
ID of employee freed from assignment, or null if no employee was assigned
partialWorkCompleted
number
Percentage of work completed before cancellation (0-100)
message
string
Cancellation confirmation

Example

# Cancel a task (will prompt for confirmation)
yc-bench task-cancel task_123
# Cancel without confirmation
yc-bench task-cancel task_123 --force
Example Output
{
  "taskId": "task_123",
  "status": "cancelled",
  "prestigePenalty": 5,
  "newPrestige": 8,
  "freedEmployee": "emp_002",
  "partialWorkCompleted": 35,
  "message": "Task cancelled. Lost 5 prestige points. Bob Smith is now available."
}

Prestige Penalty

The prestige penalty depends on task status:
  • Planned (not started) - Small penalty (~2-3 points)
  • In Progress - Larger penalty based on task value (~5-10 points)
  • Near Deadline - Additional penalty if deadline is close

When to Cancel

Consider cancelling when:
  • Task deadline cannot be met
  • Need to free employee for higher priority work
  • Company cannot afford to wait for payment
  • Task complexity was underestimated

Error Cases

  • Task not found - Invalid task ID
  • Already completed - Cannot cancel completed tasks
  • Already cancelled - Task already cancelled

Build docs developers (and LLMs) love