Skip to content

on_finished

on_finished() is a batch-level lifecycle hook that fires after all workers complete a job iteration, before the interval sleep. No ctx parameter, operates on shared globals accumulated during the batch.

function on_finished() -> void

None.

None.

function on_finished()
log("All workers done, sleeping until next interval")
_G.batch_stats = nil -- clear accumulated state
end