Recoverable tasks [version 1]

Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-01-14 16:18:42 +01:00
parent 56d3373c82
commit 11b9a08e92
31 changed files with 473 additions and 62 deletions
+16
View File
@@ -40,6 +40,22 @@ export interface Config {
*/
concurrentTasksLimit?: number;
/**
* Sets the tasks recoverability on system start up.
*
* If not specified, the default value is false.
*/
EXPERIMENTAL_recoverTasks?: boolean;
/**
* Every task which is in progress state and having a last heartbeat longer than a specified timeout is going to
* be attempted to recover.
*
* If not specified, the default value is 5 seconds.
*
*/
EXPERIMENTAL_recoverTasksTimeout?: HumanDuration;
/**
* Makes sure to auto-expire and clean up things that time out or for other reasons should not be left lingering.
*