|
| std::function< void(common::VoidResult)> | on_complete |
| | Callback invoked when job completes (success or error)
|
| |
| std::function< void(const common::error_info &)> | on_error |
| | Callback invoked specifically on error.
|
| |
| std::optional< job_priority > | priority |
| | Optional priority override for this job.
|
| |
| std::optional< retry_policy > | retry |
| | Retry policy for automatic retry on failure.
|
| |
| std::optional< std::chrono::milliseconds > | timeout |
| | Optional timeout for job execution.
|
| |
| bool | has_explicit_cancellation {false} |
| | Flag indicating explicit cancellation token was set via composition.
|
| |
Internal structure holding composed behaviors for a job.
This structure enables the composition pattern by storing optional callbacks and behaviors that can be attached to any job instance. The components are lazily allocated only when first needed.
Definition at line 68 of file job.h.