Tasks: Guaranteed delivery time

47 views
Skip to first unread message

Dominic Watson

unread,
Aug 11, 2020, 4:51:34 PM8/11/20
to Google App Engine
Instead of using a queue and to try and be as serverless as possible we opted for using Cloud Tasks to schedule doing things in the future. For tasks which don't require much accuracy for time it works really well and I love it, but we're having an issue when we need them to be sent at a precise time.

We've got a growth function in JavaScript that looks like: Math.pow(Math.E, 0.00006 * milliseconds) and require a task to happen AT or slightly AFTER a particular time but Cloud Tasks keeps calling us early. It's fine if it's a little late as we already handle it but we're not prepared for being called early.

I know time synchronisation can be difficult but EVERYTHING is running in a Google Cloud managed service:

Database: Google Cloud SQL (PSQL)
App: Google Kubernetes Engine
Tasks: Google Cloud Tasks

I would expect that each of the things in our stack are in sync to the millisecond, but it seems not. Is there any article or documentation about how early/late a task is expected to run at?

manu

unread,
Aug 12, 2020, 10:47:22 AM8/12/20
to Google App Engine
Hi,

as even though Cloud Tasks is not intended for real-time settings, this should not make premature triggering possible, so this looks like a malfunction. I didn't find documentation nor related cases about the premature triggering, either. I recommend you to ask for technical help in Issue Tracker [1].

Best regards
___
[1]:
Reply all
Reply to author
Forward
0 new messages