Skip to content

Commit 442ee97

Browse files
committed
Wrap concurrency maintenance tasks that run in timer task in app executor
1 parent 893b23f commit 442ee97

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: lib/solid_queue/scheduler.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ def stop_concurrency_maintenance
5151
end
5252

5353
def expire_semaphores
54-
Semaphore.expired.in_batches(of: batch_size, &:delete_all)
54+
wrap_in_app_executor do
55+
Semaphore.expired.in_batches(of: batch_size, &:delete_all)
56+
end
5557
end
5658

5759
def unblock_blocked_executions
58-
BlockedExecution.unblock(batch_size)
60+
wrap_in_app_executor do
61+
BlockedExecution.unblock(batch_size)
62+
end
5963
end
6064

6165
def initial_jitter

0 commit comments

Comments
 (0)