[backend/core] Call RaiseJobQueuedEvent in QueueService.DelayedJobsHandler (ISH-229)
This commit is contained in:
parent
e1bdd7d0f4
commit
7eba307d0a
1 changed files with 5 additions and 1 deletions
|
@ -225,7 +225,11 @@ public class PostgresJobQueue<T>(
|
|||
.ExecuteUpdateAsync(p => p.SetProperty(i => i.Status, i => Job.JobStatus.Queued),
|
||||
token);
|
||||
|
||||
if (count > 0) continue;
|
||||
if (count > 0)
|
||||
{
|
||||
await RaiseJobQueuedEvent(db);
|
||||
continue;
|
||||
}
|
||||
|
||||
var tokenSource = new CancellationTokenSource();
|
||||
await ScheduleDelayedEvent(tokenSource.Token);
|
||||
|
|
Loading…
Add table
Reference in a new issue