This project shows how to create a job activated by gelato that is able to detect the run will not complete (due to gas consumption) and able to launch subsequent jobs until it is completed.
See contracts/GelatoSplitableTimeBatch.sol for a detailed description and technicals informations
Check IGelatoSplitableTimeBatchTarget.sol and TestGelato.sol for trigger/batch functions overview.
Check GelatoSplitableTimeBatch.sol for details
deploy TestGelato
deploy GelatoSplitableTimeBatch
set access right (AccessControl from openzeppelin)
bind TestGelato to GelatoSplitableTimeBatch
set up job on app.gelato.network with GelatoSplitableTimeBatch (that is the resolver)
checker() and splitableBatch() functions
use console and setQueueSize to fill manually TestGelato with items to process
(that should be processed by your job at defined dates)