Question from a developer:
I'd like to be able to tell the player the time remaining until a certain scheduled task will run for that player account. What's the best way for the client to retrieve this info?
Question from a developer:
I'd like to be able to tell the player the time remaining until a certain scheduled task will run for that player account. What's the best way for the client to retrieve this info?
Realistically, there's no way you can provide that info to the user with any degree of accuracy, unless the number of players is relatively small. Scheduled tasks run on your users at the rate shown in your title's limits ("Scheduled task player processing rate"). And since order is not guaranteed, it's not possible to calculate where, specifically, the player is in that queue. If this is for segments that you believe will always stay small, you could use the time you specify for the start of the Task as an approximation, but you'd need to be careful to monitor the size of the Segment(s) you're running Tasks against, to make sure it's not getting too far off from that.
1 Person is following this question.