Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/proactive / / ProactiveCronTask

Interface: ProactiveCronTask

Defined in: packages/proactive/src/cron-task.ts:211

The cron-leg task handle.

Stable

Properties

PropertyModifierTypeDefined in
idreadonlystringpackages/proactive/src/cron-task.ts:212

Methods

fire()

ts
fire(): Promise<ProactiveTaskFireResult>;

Defined in: packages/proactive/src/cron-task.ts:218

Fire once now (also the trigger callback).

Returns

Promise&lt;ProactiveTaskFireResult&gt;


start()

ts
start(): Promise<void>;

Defined in: packages/proactive/src/cron-task.ts:214

Register the schedule on the scheduler. Idempotent.

Returns

Promise&lt;void&gt;


status()

ts
status(): ProactiveCronTaskStatus;

Defined in: packages/proactive/src/cron-task.ts:219

Returns

ProactiveCronTaskStatus


stop()

ts
stop(): Promise<void>;

Defined in: packages/proactive/src/cron-task.ts:216

Unregister the schedule.

Returns

Promise&lt;void&gt;