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

AttributeError: 'JobSubmissionEvent' object has no attribute 'scheduled_run_time' #98

Closed
Heidlyn opened this issue Aug 11, 2020 · 2 comments · Fixed by #99
Closed

AttributeError: 'JobSubmissionEvent' object has no attribute 'scheduled_run_time' #98

Heidlyn opened this issue Aug 11, 2020 · 2 comments · Fixed by #99
Labels

Comments

@Heidlyn
Copy link

Heidlyn commented Aug 11, 2020

after job start, sometime appear err like this, version is 0.4.1:

Error notifying listener
Traceback (most recent call last):
File "E:\ProjectPy\Gantry_Scheduler\venv\lib\site-packages\apscheduler\schedulers\base.py", line 831, in _dispatch_event
cb(event)
File "E:\ProjectPy\Gantry_Scheduler\venv\lib\site-packages\django_apscheduler\jobstores.py", line 123, in handle_error_event
event.scheduled_run_time,
AttributeError: 'JobSubmissionEvent' object has no attribute 'scheduled_run_time'

@jcass77
Copy link
Owner

jcass77 commented Aug 11, 2020

Looks like we are using the wrong event classes in some of the event listeners.

There is a potential fix in pull request #99 - would you mind giving it a try to see if it resolves your issue? This one is difficult for me to test locally as I have never encountered a EVENT_JOB_MAX_INSTANCES error in my own use case.

@jcass77 jcass77 added the bug label Aug 11, 2020
@Heidlyn
Copy link
Author

Heidlyn commented Aug 11, 2020

Looks like we are using the wrong event classes in some of the event listeners.

There is a potential fix in pull request #99 - would you mind giving it a try to see if it resolves your issue? This one is difficult for me to test locally as I have never encountered a EVENT_JOB_MAX_INSTANCES error in my own use case.

it's work, it don't appear the error again , thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants