IM
EN
Docs Home
Menu
Features

Jobs

Queue job lifecycle, retry, resolve, trigger, and search-delete operations.

inbox-manager jobs queue

Jobs

The jobs feature defines executable queue units derived from tasks and provider events. It gives you direct operational control over retries, manual triggering, and resolution when async work fails.

Why This Matters

This feature makes queue execution observable at per-job granularity, so failures are diagnosable and recoverable without guesswork. It supports deterministic operator recovery through explicit retry, trigger, and resolve actions while keeping cleanup operations deliberate and scoped.

Core Flow

Tasks or provider events produce jobs that workers execute and annotate with status, attempts, and failure detail. Operators review failed or stalled jobs in account queue views, run explicit retry/resolve/trigger actions, and use resulting job state to track task lifecycle and audit traces.

Operations

OperationEndpointPurpose
List jobsGET /api/accounts/:account_id/jobsFetch account job queue
Search jobsPOST /api/accounts/:account_id/jobs/searchQuery jobs by filter
Delete jobs by searchPOST /api/accounts/:account_id/jobs/search-deleteBulk delete matched jobs
Get jobGET /api/jobs/:job_idRetrieve one job
Update jobPATCH /api/jobs/:job_idModify mutable job fields
Delete jobDELETE /api/jobs/:job_idRemove one job
Retry jobPOST /api/jobs/:job_id/retryRequeue failed job
Resolve jobPOST /api/jobs/:job_id/resolveMark terminal handling state
Trigger jobPOST /api/jobs/:job_id/triggerForce execution trigger

Key Data and State

{
  id: "job_...",
  account_id: "acc_...",
  task_id: "tsk_...",
  action: "imap_sync_messages",
  attempt_count: 2,
  last_error_code: "provider_timeout",
  last_error_detail: "IMAP connection timed out"
}

Failure Modes and Controls

Failed executions preserve explicit error details for deterministic handling. Retry, trigger, and resolve are command-style operations rather than implicit read side effects, and account-scoped list/search boundaries prevent cross-account queue visibility.

Job, Task, 07-jobs-retries-and-resolution.