Skip to content

States and lifecycle

An execution is a specific run of a process on an agent. From creation to completion, it goes through a series of well-defined states. Knowing them allows you to know, at a glance, what is happening and why.

stateDiagram-v2
  [*] --> queued
  queued --> running
  queued --> cancelled: cancelada antes de empezar
  running --> completed: terminó bien
  running --> failed: terminó con error
  running --> cancelled: cancelada en ejecución
  completed --> [*]
  failed --> [*]
  cancelled --> [*]
EstadoDescriptionHow to get there
queuedIn queue, waiting for the selected agent to receive itWhen creating the execution (manual or by trigger)
runningThe agent is running the processThe agent receives the order and begins
completedCompleted successfully (exit code 0)The playbook finished without errors
failedEnded with errorPlaybook error, exit code ≠ 0, or agent disconnection
cancelledCancelada manualmente antes de terminarA user canceled it from the portal

The execution exists but the selected agent has not yet received it. It usually lasts seconds. If you stay here, that agent is usually offline or busy. See Agent Monitoring.

The agent downloaded the package and is running the playbook. Here you see the real-time logs. The status of the agent running it appears as busy.

The playbook reached the end without throwing an error and returned exit code 0. It is the expected result of a healthy run.

Something prevented the execution from being completed. Typical causes:

  • An activity threw an unhandled error (a selector that does not appear, a file that does not exist, a credential that does not resolve).
  • The playbook ended with an exit code other than 0.
  • The agent disconnected during execution and did not reconnect within the grace period.

Always check the logs to see the exact cause.

A user stopped the run manually from the portal before it finished. Useful for killing a process that was stuck or launched by mistake.

If the agent running a run loses connection to Zoan Cloud and does not reconnect within a grace period (~3 minutes), the run is automatically marked as failed. This prevents a run from being “hung” indefinitely if the machine goes down or the network goes down.

It is a different time than it takes for the agent to display offline (~2 minutes without heartbeat). One monitors the agent’s health; the other, the destination of a specific execution.

The platform does not impose a duration limit: a process can take seconds or hours depending on what it does. The run detail shows its total duration once completed.