Skip to main content
Defined in: core/types.ts:294 Handle of a task registered with bot.schedule, bot.every or bot.delay.

Properties

id

Defined in: core/types.ts:295

cron?

Defined in: core/types.ts:296

interval?

Defined in: core/types.ts:297

runAt?

Defined in: core/types.ts:298

nextRun

Defined in: core/types.ts:299

isRecurring

Defined in: core/types.ts:300

durable?

Defined in: core/types.ts:306 true for a durable task (registered with DurableTaskOptions): its schedule lives in a ScheduleStore, and cancel() also deletes the stored row. Absent on in-memory tasks.

timeZone?

Defined in: core/types.ts:312 The IANA zone a cron task’s fields are read in (CronTaskOptions.timeZone, DurableTaskOptions.timeZone or SchedulerOptions.timeZone). Absent when they are read in the process zone, and on interval and one-shot tasks.

Methods

cancel()

Defined in: core/types.ts:313

Returns

void