D
Dokploy11mo ago
jdmry

cancel/delete deployments

Hey, little improvement idea, I’ve got some failed deployments where I had to restart the server altogether, now they are still showing as running instead of failed or cancelled. Would be good to get the right status on them, or at least be able to manually delete them to avoid confusion. And also to cancel a deployment while it’s running, so if there’s a problem, takes too much resources or something it doesn’t ’break’ the whole instance.
2 Replies
Siumauricio
Siumauricio11mo ago
is correct, the question is that if your server freezes due to high ram consumption caused by builders as nixpacks and others, all your server will fall and to recover from that error would be difficult to know, an easy way would be that when the server restarts all deployments that were running mark them as an error, but it is not something more trivial, and regarding cancel queues running is a little more complicated, we use bullmq however there is no free way unless you pay the license apparently https://github.com/taskforcesh/bullmq/issues/632
GitHub
Stop/Abort a running job · Issue #632 · taskforcesh/bullmq
Queue processes we are running have a very long time to complete. Sometimes it turns out we made a mistake and need to abort the running task. Is there a way to signal the worker to stop its work/c...
jdmry
jdmryOP11mo ago
Oh thanks my bad I didn’t see there was already a thread about it I’ll catchup on it

Did you find this page helpful?