Consider adding option to schedule with fixed rate in MonitoredJobs #676
sleberknight
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the
MonitoredJobs
infrastructure classes only allow scheduling jobs using a "fixed delay", i.e. the delay starts after on execution ends.Should we consider adding an option to allow scheduling at a "fixed rate" as well?
I'm not sure where the best place to put this would be. At first glance I thought the best place might be
MonitoredJob
as well as in the builder insideMonitoredJobs
. But, a downside is that this means some of the staticregisterJob
methods inMonitoredJobs
will never allow scheduling with "fixed rate" since they don't accept aMonitoredJob
instance. Every one of the existingregisterJob
methods does accept aJobSchedule
instance so that might actually be a better location to put this option, as well as in the builder insideMonitoredJobs
.So for example, maybe you have something like:
I'm not "wed" to
ExecutionType
but definitely want it to be anenum
and not aboolean
.Inside
JobSchedule
we should make the default be fixed delay to preserve existing behavior, such that creating a fixed rate job would require callers to opt-in to that behavior explicitly.References:
Beta Was this translation helpful? Give feedback.
All reactions