Skip to main content

Class: ScheduledTaskHandler

scheduled-tasks/src.ScheduledTaskHandler

Constructors

constructor

new ScheduledTaskHandler(options)

Parameters

NameType
optionsundefined | ScheduledTasksOptions

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:13

Properties

strategy

Readonly strategy: ScheduledTaskBaseStrategy

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:11

Accessors

client

get client(): unknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:18


store

Private get store(): ScheduledTaskStore

Returns

ScheduledTaskStore

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:100

Methods

create

create(task, payload, options?): unknown

Parameters

NameType
taskstring
payloadunknown
options?number | ScheduledTasksTaskOptions

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:22


createRepeated

createRepeated(): void

Returns

void

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:33


delete

delete(id?): unknown

Parameters

NameType
id?unknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:55


get

get(id): unknown

Parameters

NameType
idunknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:67


list

list(options?): unknown

Parameters

NameType
options?unknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:59


listRepeated

listRepeated(options?): unknown

Parameters

NameType
options?unknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:63


run

run(task, payload): Promise<unknown>

Parameters

NameType
taskstring
payloadunknown

Returns

Promise<unknown>

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts:71