Skip to content

Commit

Permalink
Fix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal committed Aug 30, 2021
1 parent 5b973dd commit 6853697
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ public void jobToBeExecuted(JobExecutionContext job) {
job.put(Context.class, context);

// Listeners are executed synchronously on the same thread starting here.
// https://github.com/quartz-scheduler/quartz/blob/quartz-2.0.x/quartz/src/main/java/org/quartz/core/JobRunShell.java#L180
// https://github.com/quartz-scheduler/quartz/blob/d42fb7770f287afbf91f6629d90e7698761ad7d8/quartz-core/src/main/java/org/quartz/core/JobRunShell.java#L173
// However, if a listener before this one throws an exception in wasExecuted, we won't be
// executed.
// executed. Library instrumentation users need to make sure other listeners don't throw
// exceptions.
Scope scope = context.makeCurrent();
job.put(Scope.class, scope);
}
Expand Down

0 comments on commit 6853697

Please sign in to comment.