google-nomulus/core/src
Lai Jiang c24e0053c8
Fix a subtle issue in BRDA copy caused by Cloud Tasks (#1556)
* Fix a subtle issue in BRDA copy caused by Cloud Tasks

After the Cloud Tasks migration and #1508, the BRDA copy job now
routinely fail on the first try because the revision update is not
commited by the time the Cloud Tasks job enqueued in the same
transaction runs for  the first time. This is because the enqueueing is
a side effect and not part of the transaction. The job eventually
succeeds because of retries.

This PR attempts to mitigate the initial failure by adding a delay to
the enqueued job, and checking the cursor in the job itself to prevent
it from running before the transaction is commited.
2022-03-17 16:32:07 -04:00
..
main Fix a subtle issue in BRDA copy caused by Cloud Tasks (#1556) 2022-03-17 16:32:07 -04:00
nonprod Fix some low-hanging code quality issue fruits (#1047) 2021-04-01 18:04:21 -04:00
test Fix a subtle issue in BRDA copy caused by Cloud Tasks (#1556) 2022-03-17 16:32:07 -04:00