Skip to main content

TaskFiring

interface

One delivery of a task's trigger. Event firings carry the triggering payload in `value` — the most recent occurrence when the trigger used `settleFor`. Schedule firings carry `undefined` and name the slot they fired for in `scheduledFor`; when the host was closed at fire time and the task declared `catchUp`, that slot is in the past.

interface TaskFiring<TPayload = unknown>

Import

import { TaskFiring } from '@modular/sdk';

Members4

firedAt
number

When the scheduler delivered this firing (epoch ms).

kind
'event' | 'schedule'
scheduledForoptional
number

The schedule slot this firing satisfies (epoch ms). Schedule firings only.

value
TPayload