job status reporting
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Inspectron.Epson.Queue;
|
||||
|
||||
public class PrintJob
|
||||
{
|
||||
// todo: change to ip address
|
||||
public string JobId { get; set; }
|
||||
public string IP { get; set; }
|
||||
public PrintJobFromSignalR Document { get; set; }
|
||||
public DateTime QueuedAt { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace Inspectron.Epson.Queue;
|
||||
|
||||
public enum PrintJobStatus
|
||||
{
|
||||
Received,
|
||||
Completed,
|
||||
Failed
|
||||
Received=1,
|
||||
Completed=2,
|
||||
Failed=3
|
||||
}
|
||||
@@ -106,6 +106,7 @@ public class PrintServer
|
||||
else
|
||||
{
|
||||
_logger.LogWarning( $"Printer {printerIp} not found. Job cannot be submitted.");
|
||||
_statusReporter.ReportStatusAsync(job, PrintJobStatus.Failed);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user