getAll method
Get all failed jobs
Implementation
@override
Future<List<FailedJob>> getAll({int? limit, int? offset}) async {
var jobs = _jobs.values.toList()
..sort((a, b) => b.failedAt.compareTo(a.failedAt));
if (offset != null) {
jobs = jobs.skip(offset).toList();
}
if (limit != null) {
jobs = jobs.take(limit).toList();
}
return jobs;
}