Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/operation-graph > OperationExecutionManager

OperationExecutionManager class

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A class which manages the execution of a set of tasks with interdependencies. Initially, and at the end of each task execution, all unblocked tasks are added to a ready queue which is then executed. This is done continually until all tasks are complete, or prematurely fails if any of the tasks fail.

Signature:

export declare class OperationExecutionManager<TOperationMetadata extends {} = {}, TGroupMetadata extends {} = {}> 

Constructors

Constructor

Modifiers

Description

(constructor)(operations)

(BETA) Constructs a new instance of the OperationExecutionManager class

Methods

Method

Modifiers

Description

executeAsync(executionOptions)

(BETA) Executes all operations which have been registered, returning a promise which is resolved when all the operations are completed successfully, or rejects when any operation fails.