مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-21 07:09:48 +00:00
feat: new background work process
This removes all previous dependencies on RabbitMQ and the need to run separate cron and requeueing processes.
هذا الالتزام موجود في:
13
app/scheduled_tasks/send_notifications_scheduled_task.rb
Normal file
13
app/scheduled_tasks/send_notifications_scheduled_task.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SendNotificationsScheduledTask < ApplicationScheduledTask
|
||||
|
||||
def call
|
||||
Server.send_send_limit_notifications
|
||||
end
|
||||
|
||||
def self.next_run_after
|
||||
1.minute.from_now
|
||||
end
|
||||
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم