This PR is to support functional tests by allowing the scheduler to be mocked via the RPC.
It adds a MockForward
method to the scheduler class that iterates through the task queue and reschedules them to be delta_seconds
sooner.
This is currently used to support functional testing of the “unbroadcast” set tracking in #18038. If this patch is accepted, it would also be useful to simplify the code in #16698.