Github user ilgrosso commented on a diff in the pull request:
https://github.com/apache/syncope/pull/5#discussion_r30799130
--- Diff:
core/src/main/java/org/apache/syncope/core/quartz/AbstractTaskJob.java ---
@@ -176,4 +183,15 @@ public void execute(final JobExecutionContext context)
throws JobExecutionExcept
protected boolean hasToBeRegistered(final TaskExec execution) {
return false;
}
+
+ @Override
+ public void interrupt() throws UnableToInterruptJobException {
+ Thread thread = this.runningThread.getAndSet(null);
+ if (thread != null) {
+ LOG.info("Interrupting job time {} ", new Date().toString());
+ thread.interrupt();
+ }
+ else LOG.debug("Unable to retrieve the right thread related to the
current job execution");
--- End diff --
Please add brackets.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---