mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58:34 +02:00
Mitigate Cloud task retry problem (#2116)
* Mitigate Cloud task retry problem Increase PublishSpec11Action start delay to avoid the need to retry. The only other use case is invoice, which typically does not retry: delay is 10 minutes, pipeline finishes within 7 minutes.
This commit is contained in:
parent
c32d831dd6
commit
cfcafeefc6
2 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,8 @@ public class GenerateSpec11ReportAction implements Runnable {
|
||||||
jobId,
|
jobId,
|
||||||
ReportingModule.PARAM_DATE,
|
ReportingModule.PARAM_DATE,
|
||||||
date.toString()),
|
date.toString()),
|
||||||
Duration.standardMinutes(ReportingModule.ENQUEUE_DELAY_MINUTES)));
|
// TODO(b/296582836): mitigating retry problem. Remove `+10` when bug is fixed.
|
||||||
|
Duration.standardMinutes(ReportingModule.ENQUEUE_DELAY_MINUTES + 10)));
|
||||||
}
|
}
|
||||||
response.setStatus(SC_OK);
|
response.setStatus(SC_OK);
|
||||||
response.setPayload(String.format("Launched Spec11 pipeline: %s", jobId));
|
response.setPayload(String.format("Launched Spec11 pipeline: %s", jobId));
|
||||||
|
|
|
@ -93,7 +93,8 @@ class GenerateSpec11ReportActionTest extends BeamActionTestBase {
|
||||||
.scheduleTime(
|
.scheduleTime(
|
||||||
clock
|
clock
|
||||||
.nowUtc()
|
.nowUtc()
|
||||||
.plus(Duration.standardMinutes(ReportingModule.ENQUEUE_DELAY_MINUTES))));
|
// TODO(b/296582836): mitigating retry problem. Remove `+10` when bug is fixed.
|
||||||
|
.plus(Duration.standardMinutes(ReportingModule.ENQUEUE_DELAY_MINUTES + 10))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue