Skip to content

db-scheduler shutting down while some jobs haven't processed #387

Answered by kagkarlsson
yzAlvin asked this question in Q&A
Discussion options

You must be logged in to vote

In some of my tests I am using the ManualScheduler (made for tests) which has the property you require. See DeleteUnresolvedTest.java

It has a special ExecutorService that runs executions in the current thread. I think the method scheduler.runAnyDueExecutions(); should run and wait for any scheduled executions, so that asserts can be made after that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yzAlvin
Comment options

Answer selected by yzAlvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants