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
I am using uWSGI with Django, and I configured a cron2 line in my vassal to run a management command every 5 minutes. I enabled the unique option to ensure the command does not run concurrently, as it sometimes takes longer than 5 minutes to complete.
However, I discovered that the unique option does not work as expected. To confirm this, I wrote a simple management command that writes to a file and scheduled it to run every minute. Here's the output I observed:
I am using uWSGI with Django, and I configured a
cron2
line in my vassal to run a management command every 5 minutes. I enabled theunique
option to ensure the command does not run concurrently, as it sometimes takes longer than 5 minutes to complete.However, I discovered that the unique option does not work as expected. To confirm this, I wrote a simple management command that writes to a file and scheduled it to run every minute. Here's the output I observed:
As you can see, process 6068 starts executing before process 5925 has exited.
Could it be that I have two workers executing the command concurrently?
The text was updated successfully, but these errors were encountered: