Without knowing exactly what you're doing, you could pass an integer denoting where you are in processing. IE, if you're doing 1000 results (obv making sure they're sorted), you could pass that you're on the 50th.
More complicated, you could do a large text field as a parameter and pass in a JSON for IDs you've already processed.