You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Tasks stuck in queue and duplicated indefinitely after nightly server restart #1566
The issue arises every night after server restart:
Random task gets stuck in the queued state and does not execute.
The same task repeatedly appears in the queue, leading to thousands of duplicates over time (see the attached screenshots).
Manual cancellation of all queued tasks is the only way to allow the task to start properly again. However, canceling 3,800+ tasks manually is time-consuming and impractical.
I've already tried the following steps without success:
Running ./stop.sh, ./update.sh, and ./start.sh.
Ensuring I'm on the latest version of the self-hosted stack.
Steps to Reproduce:
Run Trigger.dev self-hosted.
Restart server while some task is executing.
Observe tasks getting stuck in queued and duplicated indefinitely.
Expected Behavior:
The task should either resume or fail cleanly after restart.
Queued tasks should not duplicate endlessly.
Screenshots:
Tasks Dashboard: Showing 3800+ queued tasks.
Task Runs List: Evidence of duplication and stalled executions.
Environment Details:
Trigger.dev version: Latest (as of 16 December 2024)
the problem remained even after updating to the latest version, you have to delete the stack and volumes every time, restart the stack and build functions. I don't understand where to ask for help, there was no feedback from the developer.
@lpkobamn does that mean you lost all user's, settings, previous jobs alert integrations? I'm not sure how to proceed I have the same issue after changing the docker registry from docker hub to GitHub's registry.
My guess is you need to login the Docker registry again. There's some discussion about this in the community including some scripts you can use.
Your message has nothing to do with the problem. The registry has absolutely nothing to do with it, the problem is in the hanging tasks, which is solved only after manually canceling all the hung ones or completely reinstalling the stack.
lpkobamn In the restart case, what determines whether a queued/resumed task is still valid to execute, versus being a stale duplicate that should be rejected or reconciled?
This issue refers to the v3 self-hosting stack, which has been replaced by the v4 stack. Closing as outdated. Please open a new issue if you see stuck runs on the current stack.
Activity
yassineatik commentedon Feb 6, 2025
My problem is the task stays at QUEUE for a very long time (+2mins), and it's the only task that's running so it doesn't make sense to take that long
saneruby commentedon Feb 6, 2025
the problem remained even after updating to the latest version, you have to delete the stack and volumes every time, restart the stack and build functions. I don't understand where to ask for help, there was no feedback from the developer.
unckleg commentedon Feb 6, 2025
@lpkobamn does that mean you lost all user's, settings, previous jobs alert integrations? I'm not sure how to proceed I have the same issue after changing the docker registry from docker hub to GitHub's registry.
yassineatik commentedon Feb 6, 2025
You can reach them via discord:
https://trigger.dev/docs/community
matt-aitken commentedon Feb 6, 2025
My guess is you need to login the Docker registry again. There's some discussion about this in the community including some scripts you can use.
saneruby commentedon Mar 9, 2025
Your message has nothing to do with the problem. The registry has absolutely nothing to do with it, the problem is in the hanging tasks, which is solved only after manually canceling all the hung ones or completely reinstalling the stack.
dlindb commentedon Jun 5, 2026
lpkobamn In the restart case, what determines whether a queued/resumed task is still valid to execute, versus being a stale duplicate that should be rejected or reconciled?
matt-aitken commentedon Aug 29, 2026
This issue refers to the v3 self-hosting stack, which has been replaced by the v4 stack. Closing as outdated. Please open a new issue if you see stuck runs on the current stack.