Recoverable tasks [version 1]
Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com> Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -65,7 +65,7 @@ export type SerializedTask = {
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type TaskEventType = 'completion' | 'log' | 'cancelled';
|
||||
export type TaskEventType = 'completion' | 'log' | 'cancelled' | 'recovered';
|
||||
|
||||
/**
|
||||
* SerializedTaskEvent
|
||||
@@ -131,6 +131,8 @@ export interface TaskBroker {
|
||||
|
||||
claim(): Promise<TaskContext>;
|
||||
|
||||
recoverTasks?(): Promise<boolean>;
|
||||
|
||||
dispatch(
|
||||
options: TaskBrokerDispatchOptions,
|
||||
): Promise<TaskBrokerDispatchResult>;
|
||||
|
||||
Reference in New Issue
Block a user