You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
I have a game that relies on a synchronous cron job. For the last few days, the game timer has been out of whack. I pulled the logs and finally figured out that my 3 min synchronous cron job fires like this (see below).
In the mean time, is there ANY way I can get my game working and always firing a URL (to create leaderboards/etc) at 3 minute intervals ?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
Put this logic in a backend. Start a thread that sleeps for 3
minutes, processes cron, and goes back to sleep for 3 minutes. You'll
want to be a little more clever than that because you want to be on
3-minute boundaries not 3-minute intervals but it should be
straightforward.
Appengine's cron is "best effort" and your game requires precise
timing. It's better to manage the schedule yourself.