@@ -7,4 +7,4 @@ Made shut down stale tasks configurable.
|
||||
There are two properties exposed:
|
||||
|
||||
- `scaffolder.processingInterval` - sets the processing interval for staled tasks.
|
||||
- `scaffolder.taskTimeoutReaperFrequency` - sets the task's heartbeat timeout, when to consider a task to be staled.
|
||||
- `scaffolder.taskTimeoutJanitorFrequency` - sets the task's heartbeat timeout, when to consider a task to be staled.
|
||||
|
||||
+2
-4
@@ -41,13 +41,11 @@ export interface Config {
|
||||
concurrentTasksLimit?: number;
|
||||
|
||||
/**
|
||||
* Sets the processing interval for staled tasks.
|
||||
*
|
||||
* Staled tasks are marked as failed, once task's timeout has exceeded.
|
||||
* Makes sure to auto-expire and clean up things that time out or for other reasons should not be left lingering.
|
||||
*
|
||||
* By default, the frequency is every 5 minutes.
|
||||
*/
|
||||
taskTimeoutReaperFrequency: HumanDuration;
|
||||
taskTimeoutJanitorFrequency: HumanDuration;
|
||||
|
||||
/**
|
||||
* Sets the task's heartbeat timeout, when to consider a task to be staled.
|
||||
|
||||
@@ -273,7 +273,7 @@ export async function createRouter(
|
||||
id: 'close_stale_tasks',
|
||||
frequency: readDuration(
|
||||
config,
|
||||
'scaffolder.taskTimeoutReaperFrequency',
|
||||
'scaffolder.taskTimeoutJanitorFrequency',
|
||||
{
|
||||
minutes: 5,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user