مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
This removes all previous dependencies on RabbitMQ and the need to run separate cron and requeueing processes.
17 أسطر
312 B
Ruby
17 أسطر
312 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PruneWebhookRequestsScheduledTask < ApplicationScheduledTask
|
|
|
|
def call
|
|
Server.all.each do |s|
|
|
logger.info "Pruning webhook requests for server #{s.id}"
|
|
s.message_db.webhooks.prune
|
|
end
|
|
end
|
|
|
|
def self.next_run_after
|
|
quarter_to_each_hour
|
|
end
|
|
|
|
end
|