Skip to content

Commit fa18e6c

Browse files
authored
Increase maximum retry count for deploy run controller (#1450)
* increase max retries for all deploy run controller operations * add changeset
1 parent 4194bce commit fa18e6c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/poor-parrots-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Increase max retry count for deploy run controller operations

packages/cli-v3/src/entryPoints/deploy-run-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const SHORT_HASH = env.TRIGGER_CONTENT_HASH!.slice(0, 9);
4343
const logger = new SimpleLogger(`[${MACHINE_NAME}][${SHORT_HASH}]`);
4444

4545
const defaultBackoff = new ExponentialBackoff("FullJitter", {
46-
maxRetries: 5,
46+
maxRetries: 7,
4747
});
4848

4949
cliLogger.loggerLevel = "debug";
@@ -418,7 +418,7 @@ class ProdWorker {
418418

419419
// Retry if we don't receive EXECUTE_TASK_RUN_LAZY_ATTEMPT in a reasonable time
420420
// ..but we also have to be fast to avoid failing the task due to missing heartbeat
421-
for await (const { delay, retry } of defaultBackoff.min(10).maxRetries(3)) {
421+
for await (const { delay, retry } of defaultBackoff.min(10).maxRetries(7)) {
422422
if (retry > 0) {
423423
logger.log("retrying ready for lazy attempt", { retry });
424424
}

0 commit comments

Comments
 (0)