-
Notifications
You must be signed in to change notification settings - Fork 114
django-crontab is missing job hash after one day #76
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
Comments
Hi, the values within |
Hi! I've changed my log files as you suggested and it worked! Thank you :) |
-.- bug way can't Change to a variable file name? @kraiz |
If someone has this issue, another similar problem is if your logfile uses a relative path. It's interpreted into an absolute path by cron (~/path/to/file gets translated to /home/ubuntu/path/to/file) which can change the hash as well. |
how do I change cron logfile's location? |
I'm using django-crontab to run a function every day in my server. Everything seems to be ok when I add crons with
python manage_local.py crontab add
(I have a local manage.py) because I can see them running withcrontab -l
. Besides, I've tested both crons running them every minute and they executed properly.So, the problem is when I run
python manage_local.py crontab show
on next day and it throws:It seems like it loses the hash somehow from one day to another.
I have set CRONTAB_DJANGO_PROJECT_NAME and CRONTAB_DJANGO_MANAGE_PATH, but the problem is still there. This is my settings.py:
Output of
python manage_local.py crontab add
:Output of
crontab -l
after adding cron:I would appreciate any help!
The text was updated successfully, but these errors were encountered: