[backend/queue] Only raise a job queued event for the first matching queue when retrying a job
This commit is contained in:
parent
0e6edb9046
commit
6ba374a681
1 changed files with 1 additions and 2 deletions
|
@ -254,8 +254,7 @@ public class QueueService(
|
||||||
.SetProperty(i => i.ExceptionSource, _ => null)
|
.SetProperty(i => i.ExceptionSource, _ => null)
|
||||||
.SetProperty(i => i.StackTrace, _ => null));
|
.SetProperty(i => i.StackTrace, _ => null));
|
||||||
if (cnt <= 0) return;
|
if (cnt <= 0) return;
|
||||||
foreach (var queue in _queues.Where(p => p.Name == job.Queue))
|
_queues.FirstOrDefault(p => p.Name == job.Queue)?.RaiseJobQueuedEvent();
|
||||||
queue.RaiseJobQueuedEvent();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue