-
Notifications
You must be signed in to change notification settings - Fork 114
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
Django Crontab not working on a specific time #115
Comments
Hey @Jay2109 I think kraiiz abandoned the project, but I was having this same issue just now, and after quite a log of debugging I figured that it works, but the cron service is running in UTC time only which is a bit messy considering DST in some countries, so I still need to figure out how to change that to different timezones |
ok so, if you are using docker like me, you can do this on your Dockerfile RUN rm /etc/localtime In my case I set the timezone to America/Liima you can change that for whatever timezone you want |
I solve my timezone used |
I am so surprised that this is still not working for me. Can you please take a look at below? "crontab -l" shows my cron job correctly and this is my dockerfile: `FROM python:3.9.2-alpine set work directoryWORKDIR /usr/src/app set environment variablesENV PYTHONDONTWRITEBYTECODE 1 install dependenciesRUN pip install --upgrade pip copy projectCOPY . . #Creating a soft symbolic link with force option (-sf) EXPOSE 8800 |
It's a pity, but the project is dead. Can anyone recommend a cron for django? |
@kraiz if you need help maintaining the project, I can help. |
Environment & Versions
Settings
I f I try to run this code i.e it must run at 8:10pm and 8:59 pm it doesnt work the cron job gets added but it doesnot executes
CRONJOBS=[
('10 20 * * *', 'stockssentiment.cron.ticker_yahoo'),
('59 20 * * *', 'sentimentor.cron.sentiment','>> /tmp/scheduled_job.log'),
]
But same code if I edit and make it to run every minute it works but that functionality is not my requirement
If I do followig changes it works
CRONJOBS=[
('10 20 * * *', 'stockssentiment.cron.ticker_yahoo'),
('59 20 * * *', 'sentimentor.cron.sentiment','>> /tmp/scheduled_job.log'),
]
The text was updated successfully, but these errors were encountered: