django-crontab icon indicating copy to clipboard operation
django-crontab copied to clipboard

Not call cronjob

Open ecakashjadhav opened this issue 3 years ago • 6 comments

Environment & Versions

  • Operating system: ubuntu with docker
  • Python: 3.8
  • Django: 3.1.1
  • django-crontab:0.7.1

Settings

  • My django-crontab settings:
CRONJOBS = [
('*/1 * * * *', 'blog.cron.post_create'),
  ...
]

Details

  • Output of crontab -l after running python manage.py crontab add.

crontab -l

*/1 * * * * /usr/bin/python3 /code/manage.py crontab run b655077f9419bb25c66dcd835b4e729d # django-cronjobs for djPine

python manage.py crontab add

Currently active jobs in crontab: web_1 | b655077f9419bb25c66dcd835b4e729d -> ('*/1 * * * *', 'blog.cron.post_create')

  • If this output contained a crontab run command and I copy this command to my terminal the job works: yes/no yes

After docker-compose up added jobs in crontab. But not called crontab function

ecakashjadhav avatar Mar 03 '21 09:03 ecakashjadhav

i am also having the same issue with django 3.2 during the development, not through docker

bubuzzz avatar Nov 17 '21 14:11 bubuzzz

i am also having the same issue with django 3.2 during the development, not through docker

I use APScheduler instead of this

ecakashjadhav avatar Nov 18 '21 04:11 ecakashjadhav

I'm also experiencing the same, Is any progress on it?

Operating system: ubuntu Python: 3.8.10 Django: 3.2.12 django-crontab:0.7.1

g-londhe avatar May 24 '22 06:05 g-londhe

i'm using django-background tasks https://django-background-tasks.readthedocs.io/en/latest/

giuseppenovielli avatar May 24 '22 08:05 giuseppenovielli

@giuseppenovielli Does it work well on docker?

tuanhopham avatar Oct 17 '23 04:10 tuanhopham

I have not test on docker.

giuseppenovielli avatar Oct 17 '23 07:10 giuseppenovielli