Skip to main content
Version: v5.6.1

Task

Included from Basic tier

A task is one node background task: an actions-refresh discovery run (GenerateActionsRequest) or a MintModel concretise run (MintModelConcretiseTask) recorded against a node and executed on a runner. Tasks are created by a manual actions refresh or by MintModel generation, progress through a small status lifecycle, and can be cancelled while active. Served by the v2 TaskService (ListTasks, GetTask, CreateTask, CancelTask); reads gate on the node path, creates require update on it, cancels require delete.

Task​

Task is one node_background_tasks row — the v1 node_background_task serialization typed. actions_json (the full stored actions trees) is only set on GetTask, the v1 show-only contract; its log lines read through LogService.ReadLogLines with the task id as run and step id.

FieldTypeMeaning
actions_countintegerHow many top-level actions the task's stored trees carry; 0 until discovery finishes.
actions_jsonstringThe stored actions trees as JSON text; empty outside GetTask.
build_without_cachebooleanWhether the task was asked to rebuild without the runner's image/derivation cache.
created_attimestampWhen the record was created.
created_bystringUsername of the creating identity.
error_messagestringThe failure message when the task finalised in error; unset otherwise.
idstringThe record's identity — also the run and step id its log lines read under.
node_pathstringThe owning node's canonical path.
project_codestringThe owning project's code.
request_numberintegerThe task's per-node ordinal, assigned at create; listings order by it newest first.
status_codestringinitializing | running | success | error | cancelled.
task_typestringGenerateActionsRequest or MintModelConcretiseTask.
template_idstringThe template the task derived against.
template_version_history_idstringThe node's template-version-history row the task ran under (every task records one).
template_version_idstringThe template version the task derived against (the pinned version unless the create named one).
updated_attimestampWhen the record was last updated.
versionstringThe template version's label.
  • opschain docs resources/activity — tasks join the activity feed on the background-tasks opt-in.
  • opschain docs resources/template — the template versions tasks derive against.
  • opschain docs resources/mintmodel — the MintModel concretise task's subject.