Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a72ea9ad1d |
@@ -161,6 +161,8 @@ export class TaskQueue {
|
|||||||
jobId: `create-${key}`,
|
jobId: `create-${key}`,
|
||||||
attempts: 3,
|
attempts: 3,
|
||||||
backoff: { type: "exponential", delay: 5000 },
|
backoff: { type: "exponential", delay: 5000 },
|
||||||
|
removeOnComplete: true,
|
||||||
|
removeOnFail: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
@@ -201,6 +203,8 @@ export class TaskQueue {
|
|||||||
jobId: `cleanup-${workspaceName}`,
|
jobId: `cleanup-${workspaceName}`,
|
||||||
attempts: 5,
|
attempts: 5,
|
||||||
backoff: { type: "exponential", delay: 10000 },
|
backoff: { type: "exponential", delay: 10000 },
|
||||||
|
removeOnComplete: true,
|
||||||
|
removeOnFail: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -311,6 +315,8 @@ export class TaskQueue {
|
|||||||
jobId: `cleanup-stale-${ws.name}-${Date.now()}`,
|
jobId: `cleanup-stale-${ws.name}-${Date.now()}`,
|
||||||
attempts: 5,
|
attempts: 5,
|
||||||
backoff: { type: "exponential", delay: 10000 },
|
backoff: { type: "exponential", delay: 10000 },
|
||||||
|
removeOnComplete: true,
|
||||||
|
removeOnFail: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user