Sync Studio: DB Trigger starts tasks immediately
schiggi opened this issue · 4 comments
Hey there,
Reading the docs, I was under the impression that db triggered tasks are added to the queue job before being executed.
From tests, this seems not to be the case. Looking at these 2 lines #1
and #2, it seems with_delay is not set.
But maybe I am missing something. Would be happy to understand if I am doing sth wrong.
You are right,
I noticed this behavior before, but didn't investigate and didn't check that the docs states opposite.
I even did a workaround in sync_viber module:
Though we just need to add with_delay=True
here:
Thanks for pointing to the problem!
via Hubstaff
User: Denis Mudarisov
Project: sync-addons - https://app.hubstaff.com/projects/1618283
Date Range: 08/24/21 - 08/24/21
Work session total: 1:39:18
Billable: Yes
Grand total: 1:39:18
via Hubstaff
User: Denis Mudarisov
Project: sync-addons - https://app.hubstaff.com/projects/1618283
Date Range: 09/01/21 - 09/01/21
Work session total: 2:36:23
Billable: Yes
Grand total: 4:15:41
via Hubstaff
User: Denis Mudarisov
Project: sync-addons - https://app.hubstaff.com/projects/1618283
Date Range: 09/01/21 - 09/01/21
Work session total: 0:17:40
Billable: Yes
Grand total: 4:33:21