Class: abstract
AbstractExecution
Defined in: packages/core/src/execution/AbstractExecution.ts:10
Basic implementation of the Execution interface. Provides the basic functionality for appending and validating jobs.
Extends
Extended by
Constructors
new AbstractExecution()
new AbstractExecution(
jobs
):AbstractExecution
Defined in: packages/core/src/execution/AbstractExecution.ts:13
Parameters
jobs
ExecutionJob
[] = []
Returns
Overrides
Properties
_jobs
protected
_jobs:ExecutionJob
[]
Defined in: packages/core/src/execution/AbstractExecution.ts:11
Methods
_validateJob()
_validateJob(
job
):boolean
Defined in: packages/core/src/execution/AbstractExecution.ts:44
Return true
if the given job can be executed
Parameters
job
Returns
boolean
append()
append(
jobs
):void
Defined in: packages/core/src/execution/AbstractExecution.ts:22
Adds a new job to be executed. The job is appended at the end of the list of current jobs therefore is executed last.
Parameters
jobs
The jobs to be executed.
Returns
void
Overrides
execute()
execute(...
args
):Promise
<unknown
>
Defined in: packages/core/src/execution/AbstractExecution.ts:33
Start executing collected jobs. In the end a Promise
is returned
with a resulting value. On the returned Promise
a catch
method can be called to prevent any unwanted interruption.
Parameters
args
...unknown
[]
Arguments to be passed when executing jobs
Returns
Promise
<unknown
>