Skip to content

Commit

Permalink
Update JobQueueHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Nov 19, 2024
1 parent c6e620f commit ea4fa2e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ void registerProcessor(final String queueName, final Class<? extends JobProcesso
jobQueueManagerAPI.registerProcessor(queueName, processor);
}

@PostConstruct
public void onInit() {
jobQueueManagerHelper.registerProcessors(jobQueueManagerAPI);
}

@PreDestroy
public void onDestroy() {
jobQueueManagerHelper.shutdown(jobQueueManagerAPI);
}

/**
* Creates a job
*
Expand Down

0 comments on commit ea4fa2e

Please sign in to comment.