We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c4b7d2 commit 2b9700dCopy full SHA for 2b9700d
1 file changed
dashjoin-core/src/main/java/org/dashjoin/service/Cron.java
@@ -47,6 +47,10 @@ public Map<String, Object> resetSchedule() throws Exception {
47
// map of job to error / next runtime
48
Map<String, Object> res = new HashMap<>();
49
50
+ if (!scheduler.isStarted())
51
+ // we are in a unit test
52
+ return res;
53
+
54
// unschedule all jobs
55
for (Trigger t : scheduler.getScheduledJobs())
56
scheduler.unscheduleJob(t.getId());
0 commit comments