Timeline for 4 Schedule Statements using scheduler vs scheduling a batch from finish method for every 15 mins
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 1, 2021 at 7:05 | vote | accept | Isha | ||
Mar 31, 2021 at 15:49 | comment | added | Phil W |
You could consider using Queueables for this instead. Once the Transaction Finalizer GAs this would be a robust way to handle things (albeit without the easy System.scheduleBatch "pause" between executions).
|
|
Mar 31, 2021 at 15:47 | comment | added | Phil W |
I'd say that "something going terribly wrong" would be unlikely. Recall that start , (each call to) execute and finish are invoked in isolated transactions so finish should still be called. Now, your finish code could violate governor limits at which point the scheduling of the next invocation could easily be rolled back and you are left with no batch running at all.
|
|
Mar 31, 2021 at 14:54 | history | answered | Sander de Jong | CC BY-SA 4.0 |