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

Not call cronjob #124

Open
ecakashjadhav opened this issue Mar 3, 2021 · 6 comments
Open

Not call cronjob #124

ecakashjadhav opened this issue Mar 3, 2021 · 6 comments

Comments

@ecakashjadhav
Copy link

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

@bubuzzz
Copy link

bubuzzz commented Nov 17, 2021

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

@ecakashjadhav
Copy link
Author

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

I use APScheduler instead of this

@g-londhe
Copy link

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

@giuseppenovielli
Copy link

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

@tuanhopham
Copy link

@giuseppenovielli Does it work well on docker?

@giuseppenovielli
Copy link

I have not test on docker.

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

5 participants