QueueWorkerConfig constructor
const
QueueWorkerConfig({
- int? maxJobs,
- Duration delay = const Duration(seconds: 1),
- Duration? timeout,
- bool runInBackground = false,
- int concurrency = 1,
- Duration gracefulShutdownTimeout = const Duration(seconds: 30),
- void onError(
- dynamic error,
- StackTrace stack
- void onJobStart(
- QueueJob job
- void onJobComplete(
- QueueJob job,
- dynamic result
- void onJobError(
- QueueJob job,
- dynamic error,
- StackTrace stack
- void onShutdown()?,
- FailedJobHandler? failedJobHandler,
Implementation
const QueueWorkerConfig({
this.maxJobs,
this.delay = const Duration(seconds: 1),
this.timeout,
this.runInBackground = false,
this.concurrency = 1,
this.gracefulShutdownTimeout = const Duration(seconds: 30),
this.onError,
this.onJobStart,
this.onJobComplete,
this.onJobError,
this.onShutdown,
this.failedJobHandler,
});