You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
I faced the issue when the quartz-mongodb fails to serialize the job due to ClassNotFoundException.
That's OK, the class no longer exists in the classpath.
However, I'd like to recover from this situation, for example by job deletion.
The problem that the exception thrown from JobConverter.toJobDetail and handled in SchedulerListenerSupport.schedulerError does not contain any information about the job, except its class name.
Can full job info doc be added to the exception?
If you have any other solution to recover, will be happy for sharing.
Thanks,
Oleg.
The text was updated successfully, but these errors were encountered:
From technical point of view this should not happen in normal production environment as it is very specific. Tho if you must do it, you can for example pre-initialize Quartz, do a check if there are jobs with specific class name by using normal mongo connector and delete records.
However, I would actually recommend to think beforehand and never make it so there are running jobs with classes that don't exist anymore in your code. It is just bad practice in my opinion to delete classes of existing jobs.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I faced the issue when the quartz-mongodb fails to serialize the job due to ClassNotFoundException.
That's OK, the class no longer exists in the classpath.
However, I'd like to recover from this situation, for example by job deletion.
The problem that the exception thrown from
JobConverter.toJobDetail
and handled in SchedulerListenerSupport.schedulerError does not contain any information about the job, except its class name.Can full job info
doc
be added to the exception?If you have any other solution to recover, will be happy for sharing.
Thanks,
Oleg.
The text was updated successfully, but these errors were encountered: