CE-936 - Update start method to actually start schedulers; add stop & stopAsync

This commit is contained in:
2024-03-12 13:49:10 -05:00
parent 11d33c6d06
commit 2c4fc6a0d4
2 changed files with 32 additions and 8 deletions

View File

@ -127,6 +127,31 @@ public class QScheduleManager
// ensure that everything which should be scheduled is scheduled, in the appropriate scheduler //
/////////////////////////////////////////////////////////////////////////////////////////////////
QContext.withTemporaryContext(new CapturedContext(qInstance, systemUserSessionSupplier.get()), () -> setupSchedules());
//////////////////////////
// start each scheduler //
//////////////////////////
schedulers.values().forEach(s -> s.start());
}
/*******************************************************************************
**
*******************************************************************************/
public void stop()
{
schedulers.values().forEach(s -> s.stop());
}
/*******************************************************************************
**
*******************************************************************************/
public void stopAsync()
{
schedulers.values().forEach(s -> s.stopAsync());
}
@ -274,5 +299,4 @@ public class QScheduleManager
return (scheduler);
}
}