-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verdi processes play --all
does not work for process in Transport task update was cancelled
status
#6569
Comments
Maybe you just did restart your daemon and not wait long enough before you running the command? If you wait long enough I guess those process will change to the running state? |
Hi @unkcpz , thanks for your suggestion!
What's the reason behind this? |
What I expected in your case was maybe you just restart daemon (therefore workers) and all the processes need to reload in to the event loop. If I understand correctly about what happened when worker started, it create runner and call This procedure is not cheap since it requires communication with database. If you have quite many process to load, then it can takes minutes for workers to response the action to process as you expected. What I guess that you can then run Another guess might be |
I could recreate the bug locally when cancelling the running process by killing the daemon worker and then reloading it by spawning a new daemon worker. This however only happens, when the process is paused and played once before the procedure, otherwise the daemon worker picks up the task automatically to the running state and there is no need to play process. It seems to be because the processes state is set to paused in the checkpoint, but not in the database. So the query that retrieves all paused processes when running That must be a bug with the persistence, that the checkpoint is not updated when the process is played. By that it is probably not picked up automatically when reloaded, because it is paused. We could also make the play command in general more robust to failure by changing the query to affect all states that are not terminated. I guess the performance costs are negligible. |
Hi @superstar54, can you confirm you still have this problem? If restart the daemon and wait couple of minutes will fix it. I'll close this now, fell free to reopen it if you see the problem again. |
Discussed with @unkcpz, I will investigate this a bit more |
@unkcpz , @agoscinski, thanks for looking into this issue. I don't get the |
Here are my processes
I want to play all. But
verdi processes play --all
does not work.I have to run
verdi processes play 13709 13721
with the pk explicitlyThe text was updated successfully, but these errors were encountered: