kraiz / django-crontab

dead simple crontab powered job scheduling for django.
Other
840 stars 112 forks source link

Why we can't add individual job and can't remove individual job to crontab #123

Open slalit360 opened 3 years ago

slalit360 commented 3 years ago

Environment & Versions

Settings

CRONJOBS = [ ('/60 ', 'integrations.notification_util.trigger_updates_inbox', '>> {} 2>&1'.format(os.path.join(CRONJOBS_LOG_DIR, CRONJOBS_ERR_LOG))), ('/30 ', 'integrations.notification_util.trigger_updates_proc', '>> {} 2>&1'.format(os.path.join(CRONJOBS_LOG_DIR, CRONJOBS_ERR_LOG)), ]


#### Details
* Output of `crontab -l` after running `python manage.py crontab add`.

Then both jobs will be added .

* Output of `crontab -l` after running `python manage.py crontab remove`.

Then both jobs will be removed.


* If this output contained a `crontab run` command and I copy this command to my terminal the job works: yes/no
hnhegde commented 10 months ago

CRONJOBS in settings is a list. All elements in the list will get added to cron. If you do not want to add a job, then you will have to remove it from the list.