EventTaskInput
interfaceFields accepted by task for an event-triggered task.
Import
import { EventTaskInput } from '@modular/sdk';Members7
- id
stringIdentifier, unique within the mod.
- on
stringThe host event that triggers this task.
- onceoptional
booleanFire durably once per entity. For an event whose descriptor names an entity (session events key by session), "once" is per entity; otherwise it is once ever. Survives restarts.
- run
TaskHandler<TPayload>- settleForoptional
stringWait for this much quiet in the entity's lane before firing, delivering the most recent payload. A duration string: `'45s'`, `'30m'`, `'2h'`, `'1d'`.
- titleoptional
stringLabel shown where the host lists scheduled work.
- whenoptional
(payload: TPayload) => booleanOptional payload filter; a declined firing does not consume `once`.