fail method

  1. @override
Future<void> fail(
  1. Job job
)
override

Permanently removes a failed job and stores it in the dead letter queue.

Implementation

@override
Future<void> fail(Job job) async {
  job.status = JobStatus.failed;
  job.finishedAt = DateTime.now();
  _failed.add(job);
}