From d4d0154d1813da6c8ffe6cab07d7a033213114de Mon Sep 17 00:00:00 2001 From: Bogdan Nechyporenko Date: Sun, 15 Oct 2023 00:14:18 +0200 Subject: [PATCH] Made shut down stale tasks configurable. Signed-off-by: Bogdan Nechyporenko --- plugins/scaffolder-backend/api-report.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/scaffolder-backend/api-report.md b/plugins/scaffolder-backend/api-report.md index 5e0aa79743..256bdc6187 100644 --- a/plugins/scaffolder-backend/api-report.md +++ b/plugins/scaffolder-backend/api-report.md @@ -804,11 +804,11 @@ export class DatabaseTaskStore implements TaskStore { >, ): Promise; // (undocumented) - claimTask(): Promise; + claimTask(): Promise; // (undocumented) completeTask(options: { taskId: string; - status: TaskStatus; + status: TaskStatus_2; eventBody: JsonObject; }): Promise; // (undocumented) @@ -826,16 +826,16 @@ export class DatabaseTaskStore implements TaskStore { >, ): Promise; // (undocumented) - getTask(taskId: string): Promise; + getTask(taskId: string): Promise; // (undocumented) heartbeatTask(taskId: string): Promise; // (undocumented) - list(options: { createdBy?: string }): Promise<{ - tasks: SerializedTask[]; + list(options: { createdBy?: string; status?: TaskStatus_2 }): Promise<{ + tasks: SerializedTask_2[]; }>; // (undocumented) listEvents(options: TaskStoreListEventsOptions): Promise<{ - events: SerializedTaskEvent[]; + events: SerializedTaskEvent_2[]; }>; // (undocumented) listStaleTasks(options: { timeoutS: number }): Promise<{