Skip to content
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

python manage.py crontab add is not working on heroku server #111

Open
deeprajsinha opened this issue May 11, 2020 · 1 comment
Open

python manage.py crontab add is not working on heroku server #111

deeprajsinha opened this issue May 11, 2020 · 1 comment

Comments

@deeprajsinha
Copy link

Environment & Versions

  • Operating system: heroku server
  • Python:3.6.8
  • Django:2.2.2
  • django-crontab:0.7.1

Settings

  • My django-crontab settings:
CRONJOBS = [
  ('0 0 * * *', 'vehicle_owner_booking.cron.my_scheduled_job'),
    ('55 23 * * *', 'vehicle_owner_booking.cron.subscription_ended_check'),
]

Details

when i running this crontab add command on heroku server its giving me error

  • Output of crontab -l after running python manage.py crontab add.
    cannot found ‘/usr/bin/crontab’

so i checked inside usr/bin there is not crontab file present.
please help me.

@palfrey
Copy link

palfrey commented Jun 14, 2020

I'm guessing this means Heroku doesn't actually have cron installed. I'd note their documentation advises against it's use https://devcenter.heroku.com/articles/scheduled-jobs-custom-clock-processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants