Skip to content

Interface: CronJob

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CronJob

Defined in: src/types/cron.ts:113

A cron job’s full state (GET /api/v1/cron/jobs/{job_id}).

Echoes every field the create request accepts, with each default resolved to the value the job actually runs with. enabled is reported through CronJob.status: a job created with enabled: false reads paused.

agentId: string

Defined in: src/types/cron.ts:123

UUID of the agent that handles the triggers.


backoffMs: number

Defined in: src/types/cron.ts:133

Backoff in milliseconds between retries.


createdAt: string

Defined in: src/types/cron.ts:139

When the job was created (RFC 3339).


optional description?: string | null

Defined in: src/types/cron.ts:119

Description, or null when none was given.


id: string

Defined in: src/types/cron.ts:115

Job id.


optional jitterMs?: number | null

Defined in: src/types/cron.ts:129

Random jitter in milliseconds added to each fire, or null.


maxRetries: number

Defined in: src/types/cron.ts:131

Maximum retry attempts for a failed execution.


name: string

Defined in: src/types/cron.ts:117

Human-readable name.


optional nextFireTime?: string | null

Defined in: src/types/cron.ts:137

Next scheduled fire time (RFC 3339, UTC), or null when the job is not scheduled.


optional payload?: string | null

Defined in: src/types/cron.ts:125

Payload delivered with each trigger, or null.


runCount: number

Defined in: src/types/cron.ts:143

Total number of times the job has fired.


schedule: CronSchedule

Defined in: src/types/cron.ts:121

Schedule configuration.


status: CronJobStatus

Defined in: src/types/cron.ts:135

Current lifecycle status.


timezone: string

Defined in: src/types/cron.ts:127

Canonical IANA name of the zone a cron expression is read on.


updatedAt: string

Defined in: src/types/cron.ts:141

When the job was last modified (RFC 3339).