Corezoid Task Lifecycle — States and Exits

Corezoid Task Lifecycle — States and Exits A lifecycle diagram generated by Archify. 01 / Task phases 02 / Waiting states + Error handling 03 / Terminal Created · task row written · Task phases · entry 01 Created task row written entry Processing · logic dispatch · Task phases · node 02 Processing logic dispatch node Await Response · async logic · Task phases · parked 03 Await Response async logic parked Next Node · to_node_id · Task phases · walk 04 Next Node to_node_id walk Finished · end_time set · Task phases · status 1 05 Finished end_time set status 1 Callback Park · api_callback hash · Waiting states · external Callback Park api_callback hash external Delayed · time semaphor · Waiting states · timers Delayed time semaphor timers Error Node · logic failed · Error handling · recoverable Error Node logic failed recoverable Archived · tasks_archive · Terminal · terminal Archived tasks_archive terminal Soft-deleted · status = 3 · Terminal · terminal Soft-deleted status = 3 terminal Legend start active state waiting terminal success failure / exit

Main path

  • • A task walks node-by-node, not step-by-step in time
  • • Await Response is normal, not an error state

Waiting is not failing

  • • api_callback parks a task until its hash arrives
  • • Time semaphors hand the task to conveyor_timers