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
Hello. Suppose I started a worker, then started a python script wich kiqed a task. And then stopped that python script. Then started another python script. How can I properly determine in that script if the task is running or was canceled due to worker shutdown?
I can obtain workers' PIDs after starting up them by running a CLI command to search for processes with name "taksiq", then save these PIDs to a file and then after some time I can run the same command to check if all of the workers are still running. And if some of them were stopped then the task may be canceled. But I wonder if there is a better way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. Suppose I started a worker, then started a python script wich kiqed a task. And then stopped that python script. Then started another python script. How can I properly determine in that script if the task is running or was canceled due to worker shutdown?
I can obtain workers' PIDs after starting up them by running a CLI command to search for processes with name "taksiq", then save these PIDs to a file and then after some time I can run the same command to check if all of the workers are still running. And if some of them were stopped then the task may be canceled. But I wonder if there is a better way?
P.S. I'm using Redis
Beta Was this translation helpful? Give feedback.
All reactions