Skip to main content

Function: taskCompletedEvents()

taskCompletedEvents(options): RunEventDraft[]

The events the service appends when a task completes, before the command events (C-HIST rule 3): WORKFLOW_TASK_STARTED first when the attempt was transient (nothing was written at its start), then WORKFLOW_TASK_COMPLETED.

Parameters​

options​

attempt​

number

buildId?​

string

historyLength​

number

The history length the attempt was leased with (run.taskStartedSeq).

startedAt​

string

taskId​

string

transient​

boolean

workerId?​

string

Returns​

RunEventDraft[]