From 7eba307d0a7944dae77fd827656102e578471a57 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 26 Mar 2024 12:01:10 +0100 Subject: [PATCH] [backend/core] Call RaiseJobQueuedEvent in QueueService.DelayedJobsHandler (ISH-229) --- Iceshrimp.Backend/Core/Services/QueueService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Services/QueueService.cs b/Iceshrimp.Backend/Core/Services/QueueService.cs index b3ad76fa..20a65e9b 100644 --- a/Iceshrimp.Backend/Core/Services/QueueService.cs +++ b/Iceshrimp.Backend/Core/Services/QueueService.cs @@ -225,7 +225,11 @@ public class PostgresJobQueue( .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);