send status out of paper
This commit is contained in:
@@ -90,6 +90,10 @@ public class PrinterQueue
|
||||
{
|
||||
// Re-queue with retry logic
|
||||
job.RetryCount++;
|
||||
if (job.RetryCount == 1)
|
||||
{
|
||||
await _statusReporter.ReportStatusAsync(job, PrintJobStatus.OutOfPaper);
|
||||
}
|
||||
_logger.LogWarning("Job failed, retrying ({RetryCount}/3)", job.RetryCount);
|
||||
await Task.Delay(5000, cancellationToken); // Wait before retry
|
||||
EnqueuePriority(job);
|
||||
|
||||
Reference in New Issue
Block a user