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 have a little problem with call_command in Django. This is my Kronos decorator:
@kronos.register('*/{} * * * *'.format(config.CRON_MIN))
In admin.py I have a function which returns new config.CRON_MIN value and runs call_command to reload cron jobs:
but when I check it by typing: crontab -l I see cron job with old value of CRON_MIN. When I run installtasks command manually it works as It should (python manage.py installtask). It properly changes interval in kronos cron job. Where I make a mistake? Can you help me?
The text was updated successfully, but these errors were encountered:
Sorry for not getting to this a very long time ago. Closing due to old age, but feel free to reopen the issue or make a pull request if you'd still like to fix it.
I have a little problem with call_command in Django. This is my Kronos decorator:
@kronos.register('*/{} * * * *'.format(config.CRON_MIN))
In admin.py I have a function which returns new config.CRON_MIN value and runs call_command to reload cron jobs:
In my terminal window I see:
but when I check it by typing: crontab -l I see cron job with old value of CRON_MIN. When I run installtasks command manually it works as It should (python manage.py installtask). It properly changes interval in kronos cron job. Where I make a mistake? Can you help me?
The text was updated successfully, but these errors were encountered: