Resolution
- Check whether the
Process recurring scheduled triggerssystem task is stuck in theQueuedstate, cancel it if it is. - Check whether Octopus is in Maintenance Mode.
- Check whether the Octopus nodes are draining (Octopus Server Instances Only)
Symptom
No deployment or Runbook Triggers are firing even though the triggers themselves were working previously.
Scope: when this is the right article
This article is for users who find that none of their deployment or runbook run triggers are working. We have a GitHub issue for this if you would like to learn more - Scheduled Triggers Not Firing - ServerTask Stuck in Queued State - SQL Timeout. This article does not cover troubleshooting scenarios in which some deployments or runbooks succeed while others fail.
Cause
The Process recurring scheduled triggers system task is stuck in the Queued state. This causes subsequent Process recurring scheduled triggers system tasks to not run because one is queued, meaning no scheduled trigger tasks will run and execute the deployments or runbooks associated with their respective triggers.
Diagnosis and fix
As the GitHub issue here mentions -
- A change has shipped in
2024.4.6999which reduces the likelihood of this issue occurring. Affected customers are encouraged to upgrade to this version. - A change has shipped in
2025.1.7979preventing this issue from occurring for all non-deployment tasks. Affected customers are encouraged to upgrade to this version.
If you are not on one of those versions, we would recommend you upgrade to help stop this from occurring as often in the future.
To fix this issue:
-
Go to
Tasksand check whether other tasks, such as deployments, health checks, and manual runbook runs are starting normally. If nothing starts, the initial problem lies with the task queue, not the trigger. -
Check whether the
Process recurring scheduled triggerssystem task is stuck in theQueuedstate. This task queues all scheduled trigger runs, so if it's stuck, no scheduled trigger in the instance fires. You can look for this task in the UI under Tasks, you will need to ensure the advanced filters are selected and theInclude System Tasksbutton is selected from within the advanced filter section. You can also query the tasks with the REST API:
curl "https://<your-octopus-url>/api/tasks?spaces=all&states=Queued&name=RecurringScheduledDeployments" \
-H "X-Octopus-ApiKey: <API_KEY>"
A healthy instance returns no long-waiting results. If a result has a queue time well in the past, cancel that task in the UI or via the API:
curl -X POST "https://<your-octopus-url>/api/<SpaceId>/tasks/<ServerTaskId>/cancel" \
-H "X-Octopus-ApiKey: <API_KEY>" -d ""
Triggers usually resume within a minute or so of cancelling the stuck task. Cancelling this system task is safe. Octopus queues a new one automatically.
Please bear in mind that when you cancel the stuck Process recurring scheduled triggers queued task, the backlog of queued deployments/runbook runs that should have run on a trigger will then deploy so you many need to monitor your task queue for the next 10 minutes or so to ensure you are able to cancel any deployments you do not want running at that time!
If this does not fix the issue please carry on with the investigation actions below:
-
Self-hosted only: go to Configuration ➜ Nodes and confirm that no node is in drain mode and that each node's task cap is above 0. Drain mode or a task cap of 0 stops nodes from starting queued tasks.
-
Self-hosted only: go to Configuration ➜ Maintenance and confirm the instance isn't in maintenance mode.
-
Octopus Cloud only: check whether the missed time fell inside your instance's maintenance window. Tasks scheduled to start during an outage run late rather than on time after the instance comes back.
If none of the troubleshooting options above resolve the issue for you please contact support@octopus.com and we can investigate this further.
Verify
Triggers should be processed normally after the stuck Trigger task is cancelled, deployments and runbook runs running on triggers should then be processed as usual.
- Please bear in mind that when you cancel the stuck
Process recurring scheduled triggersqueued task, the backlog of queued deployments/runbook runs that should have run on a trigger will then deploy so you many need to monitor your task queue for the next 10 minutes or so to ensure you are able to cancel any deployments you do not want running at that time!