Builds the handler an application exports as scheduled.
Takes the WorkersCron directly rather than the application,
unlike createQueueHandler. That asymmetry follows from a decision rather
than an oversight: WorkersCron deliberately does not claim
CAPABILITIES.SCHEDULER (see its module doc), so it is not in the registry
to resolve — and it needs neither an id source nor a clock, so the
application can construct it directly.
Builds the handler an application exports as
scheduled.Takes the
WorkersCrondirectly rather than the application, unlikecreateQueueHandler. That asymmetry follows from a decision rather than an oversight:WorkersCrondeliberately does not claimCAPABILITIES.SCHEDULER(see its module doc), so it is not in the registry to resolve — and it needs neither an id source nor a clock, so the application can construct it directly.