Adding manual scaffolder retry

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-07-21 19:49:02 +02:00
committed by blam
parent b304f78a31
commit 58410465bb
11 changed files with 163 additions and 18 deletions
@@ -76,6 +76,7 @@ export type TaskEventType = 'completion' | 'log' | 'cancelled' | 'recovered';
*/
export type SerializedTaskEvent = {
id: number;
isTaskRecoverable?: boolean;
taskId: string;
body: JsonObject;
type: TaskEventType;
@@ -163,6 +164,8 @@ export interface TaskContext {
export interface TaskBroker {
cancel?(taskId: string): Promise<void>;
retry?(taskId: string): Promise<void>;
claim(): Promise<TaskContext>;
recoverTasks?(): Promise<void>;