Skip to main content

Class Definition

Type Parameters

Properties

Abstract Method

execute(input)

The main execution method that must be implemented.

Methods

Response Methods

respond(value)

Set output and end execution immediately.

Logging Methods

log(message)

Append a timestamped log entry to the job’s log buffer.

getLogs()

Get all log entries recorded during execution.

Progress Methods

progress(pct, total?, msg?)

Send a progress notification to the client. Returns false if no session is available.

Retry Tracking

attempt

The current retry attempt number (1-based).

Inherited Methods

From ExecutionContextBase:

Full Example

@Job

Job decorator

ExecutionContextBase

Base class

JobRegistry

Job registry

Jobs Guide

Jobs documentation