-
Notifications
You must be signed in to change notification settings - Fork 97
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
Two bug #15
Comments
Hello, Thank you for this info about bugs and providing patches. I'll try to fix it ASAP |
Another problem. Migration complete |
@sallyruthstruik Hi! Do you have any updates or approximate schedule of fixes? |
@asduj I'm sorry for a long reply. I've just uploaded new release: https://github.com/jarekwg/django-apscheduler/releases/tag/0.2.6. Also available on Pypi. This release fixes two bugs described above. Please, check with you project, and if all is ok I'm close the issue. @GitBib asduj is right, looks like you import models before app initialization. If problem still exists, please give me traceback in more clear form using |
Looks good! |
django_apscheduler/result_storage.py line 32 :
job_execution.duration = float(job_execution.finished) - float(job_execution.started)
job_execution.started or job_execution.finished is possible to be empty,so,float will raise except.
You can simply change to:
try: job_execution.duration = float(job_execution.finished) - float(job_execution.started) except: job_execution.duration = None
django_apscheduler/models.py line 40:
next_run_time = models.DateTimeField(db_index=True)
Fields should not be set as required, job.pause() will not work
You can simply change to:
next_run_time = models.DateTimeField(db_index=True,blank=True,null=True)
The text was updated successfully, but these errors were encountered: