Interface TaskServer

interface TaskServer {
    customExecutionComplete(id, exitCode): Promise<void>;
    disconnectClient(client): void;
    getRegisteredTaskTypes(): Promise<string[]>;
    getTasks(ctx?): Promise<TaskInfo[]>;
    kill(taskId): Promise<void>;
    run(task, ctx?, option?): Promise<TaskInfo>;
}

Hierarchy

Implemented by

Methods

  • Returns a list of currently running tasks. If a context is provided, only the tasks started in that context will be provided. Using an undefined context matches all tasks, no matter the creation context.

    Parameters

    • Optional ctx: string

    Returns Promise<TaskInfo[]>