retryDeadLetter method
Move a dead-letter job back to the active queue with retryCount: 0
and trigger replay immediately if online.
Implementation
void retryDeadLetter(String id) {
final index = _deadLetterJobs.indexWhere((job) => job.id == id);
if (index == -1) return;
final job = _deadLetterJobs.removeAt(index).copyWith(retryCount: 0);
_queue.add(job);
_persist();
if (ZenQueryCache.instance.isOnline) {
unawaited(process());
}
}