import type { ITaskDataInput } from "../../../api/types.js"; import type { IResponseBaseResult } from "./ResponseBaseResult.js"; import { TaskResultStatus } from "@webiny/api-core/features/task/TaskDefinition/index.js"; /** * Wait can be used to pause next iteration of the Lambda execution. * For example, if the task is hammering the Elasticsearch cluster too much, you can use this to pause the execution for some time. */ export interface IResponseContinueParams { message?: string; tenant?: string; webinyTaskId?: string; input: T; wait?: number; } export interface IResponseContinueResult extends IResponseBaseResult { message?: string; input: T; wait?: number; delay: -1; status: TaskResultStatus.CONTINUE; }