I know it is a little late for this but I had a couple ideas:
I do not believe that the runtime define ‘TIME_TO_SWAP’ is currently implemented? In ‘backend.cc’ the function ‘look_for_objects_to_swap’ is on a hard 5 minute event timer. Since ‘cleanup’ and ‘reset’ are both called there, this means that the functional evaluation time of TIME_TO_X (cleanup or reset) is ‘between TIME_TO_X and TIME_TO_X+5 minutes’. If we could adjust the frequency on ‘look_for_objects_to_swap’ with a run-time define then we could more easily control the predictability of cleanup and reset calls.
We would love a way to easily randomize or otherwise change the order in which heartbeat is called on interactives.