I've encountered this before and just encountered it again. Pretty typical LazySearch use case in a Scheduled Script where I want the script to reschedule itself. In my case I'm passing along process state via the script parameters to support execution resuming from where it left off. The problem is that this state data is updated after the call to rescheduleIfNeeded.
I've encountered this before and just encountered it again. Pretty typical
LazySearch
use case in a Scheduled Script where I want the script to reschedule itself. In my case I'm passing along process state via the script parameters to support execution resuming from where it left off. The problem is that this state data is updated after the call torescheduleIfNeeded
.Here's an example:
If we could pass a function we could have something like this:
There's probably a more graceful way to accomplish, but I think you get the idea.