Back to Pocketbase

Interface Job

static/jsvm/interfaces/cron.Job.html

latest1.0 KB
Original Source

Interface Job

Job defines a single registered cron job.

Hierarchy

  • Job

Index

Methods

expressionidmarshalJSONrun

Methods

expression

  • expression(): string

Expression returns the plain cron job schedule expression.

Returns string

id

  • id(): string

Id returns the cron job id.

Returns string

marshalJSON

  • marshalJSON(): string | number[]

MarshalJSON implements [json.Marshaler] and export the current jobs data into valid JSON.

Returns string | number[]

run

  • run(): void

Run runs the cron job function.

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc