Basic Usage
Signature
Type Safety
The@Job decorator enforces at compile time:
- The decorated class must extend
JobContext - The
execute()parameter must exactly match theinputSchematype - The
execute()return type must match theoutputSchematype - Both
inputSchemaandoutputSchemaare required for Jobs
Configuration Options
Required Properties
Optional Properties
RetryConfig
Permission
Examples
Simple Job
Job with Retry
Job with Permissions
Function-Based Alternative
For simpler jobs, use thejob() function:
Context Methods
TheJobContext base class provides:
Dependency Injection
Logging and Progress
Error Handling
Related
JobContext
Context class details
JobRegistry
Job registry API
Jobs Guide
Jobs documentation
@Workflow
Define workflows