Skip to content

Tasks & scheduling ​

Operations that may exceed HTTP timeouts run as async tasks: create, reinstall, delete, backup, restore, network sync.

Task model ​

FieldDescription
task_ididentifier
typecreate / delete / reinstall / backup / restore / sync
statuspending / running / success / failed / canceled
progress0–100
hs_name / vm_uuidrelated resource
messagecurrent step or error

Tasks run in a worker pool (4 workers by default). Writes to the same instance are serialized.

APIs ​

text
GET  /api/tasks
GET  /api/tasks/stats
GET  /api/tasks/:task_id
POST /api/tasks/:task_id/cancel

GET  /api/system/async_task/list
POST /api/system/async_task/:task_id/retry

Maintenance jobs ​

JobPurpose
Host syncreconcile platform state
Orphan cleanupremove records whose platform resource is gone
Quota recalculationfix usage drift
Outbox reconciliationretry failed operations
Screenshot cleanupdelete expired thumbnails

Failure handling ​

  1. Inspect the last step and raw error.
  2. Check host connectivity.
  3. Cancel if possible, then retry.
  4. Failed deletions converge through tombstone reconciliation.

Avoid blind retries

Non-idempotent tasks (create/reinstall) may duplicate resources. Verify platform state first.

CLI ​

bash
quickidc task list --core 0
quickidc task list --status running

Released under the AGPLv3 License.