Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
This commit is contained in:
Bogdan Nechyporenko
2023-11-02 13:43:21 +01:00
parent dac553ff2f
commit 79619a7fa1
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -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
View File
@@ -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,
},