Skip to content 

ITaskManager Interface

Packages > @fluidframework/runtime-definitions > ITaskManager

Task manager enables app to register and pick tasks.

Signature:

export interface ITaskManager extends IProvideTaskManager, IFluidLoadable, IFluidRouter 

Extends: IProvideTaskManager, IFluidLoadable, IFluidRouter

Properties

List of properties of this interface
Property Type Description
IAgentScheduler IAgentScheduler access to IAgentScheduler

Methods

List of methods of this class
Method Description
pick(taskId, worker) Pick a task that was registered prior.
register(tasks) Registers tasks task so that the client can run the task later.

Events

IAgentScheduler

access to IAgentScheduler

Signature:

readonly IAgentScheduler: IAgentScheduler;

Methods

pick

Pick a task that was registered prior.

Signature:

pick(taskId: string, worker?: boolean): Promise<void>;

Parameters

List of parameters
Parameter Type Description
taskId string
worker boolean Flag that will execute tasks in web worker if connected to a service that supports them.

Returns:

Promise<void>

register

Registers tasks task so that the client can run the task later.

Signature:

register(...tasks: ITask[]): void;

Parameters

List of parameters
Parameter Type Description
tasks ITask[]

Returns:

void