Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/proactive / / ProactiveCronTask

Interface: ProactiveCronTask

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

Stable

The cron-leg task handle.

Properties

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

Methods

fire()

ts
fire(): Promise<ProactiveTaskFireResult>;

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

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:215

Register the schedule on the scheduler. Idempotent.

Returns

Promise&lt;void&gt;


status()

ts
status(): ProactiveCronTaskStatus;

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

Returns

ProactiveCronTaskStatus


stop()

ts
stop(): Promise<void>;

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

Unregister the schedule.

Returns

Promise&lt;void&gt;