dschibster / sfdx-batch-orchestrator

A Package for organizing Batch Jobs and their Schedules via a record-based Scheduling Configuration, including dependencies and ad-hoc runs.
https://dschibster.github.io/sfdx-batch-orchestrator/
Other
10 stars 2 forks source link

Enable possibility to schedule several times an hour #3

Open dschibster opened 2 years ago

dschibster commented 2 years ago

This requires more than one Scheduled Job to be able to do "normally". The other option would be to try and reschedule in the finish() section of a batch job to run after one of the jobs is done running.

dschibster commented 2 weeks ago

New idea: consuming multiple crontriggers is still going to be the best way about it, however we don't need multiple schedule objects for it ideally. create a custom object SubHourlyJob which is going to be a child of the schedule object, which will then contain all of the cron expressions and cron trigger ids.

need to watch out for retreival of parent in the schedule when doing so, might require another SOQL query.