Skip to main content
The Agents page in Organization Settings lists your self-hosted agents with a status, a count of pending and running tasks, and the agent version. Agents page listing all self-hosted agents with their current state (Active, Inactive, or Degraded) and version

Agent heartbeat

env zero records a heartbeat when the agent polls for work or reports its version. Polling updates it at most once every 5 minutes, so Last heartbeat on a healthy agent can be up to 5 minutes old. How each agent type polls:
  • Kubernetes agent: the agent trigger pod polls for tasks every second, and reports its version every hour.
  • Standalone Docker agent: each idle container polls for tasks every 5 seconds. A container running a deployment stops polling until the deployment ends, but it still reports its version every hour.
  • Azure Container Apps: KEDA polls the queue state endpoint every pollingInterval seconds, including while the job is scaled to zero. A recent heartbeat shows that KEDA can reach env zero with your agent token. It does not show that containers can start.

Agent status

env zero checks the conditions in this order and shows the first status that matches: Because of this order:
  • A stopped agent with an empty queue stays Active for up to 2 hours after its last heartbeat.
  • A stopped agent with queued tasks shows Degraded once a queued task is 5 minutes old, then Inactive once its last heartbeat is 2 hours old.
  • An agent running at least one task stays Active, however long other tasks have been queued. Active with a growing Pending count needs a look: see Jobs stay queued.
Hover over the status to see the Last heartbeat, the Oldest queued task, and the agent Release.

Pending and running counters

The two numbers next to the status count the agent’s tasks:
  • Pending (hourglass icon): tasks that are queued and have not started. This includes a task the agent has picked up but whose job or container has not started yet.
  • Running (gear icon): tasks the agent is running.
Read them together with the status:

Jobs stay queued

When Pending stays above zero, check the limit that applies to your agent type. Kubernetes agent:
  • Check that the agent trigger pod is running, and read its logs. When env zero rejects the agent credentials, the log shows Agent gateway rejected the agent credentials - tasks will not be claimed until this is resolved.
  • A Resource Quota on count/jobs.batch in the agent namespace caps how many deployment jobs run at once. Tasks past the cap wait in the queue. See Job Limits.
  • Check whether deployment pods are stuck in Pending because the cluster is out of capacity.
Azure Container Apps:
  • maxExecutions caps how many containers run at once.
  • Scale on valueLocation: "pendingAndRunningCount". With pendingCount, KEDA subtracts running executions from the pending count, so a queued task waits while another one runs.
  • When no containers start at all, see No containers start when deployments are queued.
Standalone Docker agent:
  • Each container runs one deployment at a time. Run more containers to run more deployments at once.
A deployment keeps its slot until it ends. If the agent stops sending deployment heartbeats, for example because the pod or container died, env zero times the deployment out within about a minute. If the deployment process hangs but the agent keeps running, the deployment holds its slot until the deployment time limit, 5 hours by default. To free the slot earlier, abort the deployment.

Agent version

The Agent Version column shows the release each agent runs, so you can see which agents need an upgrade.
Agent VersionTo view the agent versions, make sure you have updated your agents to the 3.0.458 release or newer, which supports agent version monitoring. Keeping your agents up to date ensures compatibility with the latest features and optimizations offered by env zero.

Next steps