مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-17 13:39:46 +00:00
initial commit from appmail
هذا الالتزام موجود في:
28
config/cron.rb
Normal file
28
config/cron.rb
Normal file
@@ -0,0 +1,28 @@
|
||||
module Clockwork
|
||||
|
||||
configure do |config|
|
||||
config[:tz] = 'UTC'
|
||||
config[:logger] = Postal.logger_for(:cron)
|
||||
end
|
||||
|
||||
every 1.minute, 'every-1-minutes' do
|
||||
RequeueWebhooksJob.queue(:main)
|
||||
SendNotificationsJob.queue(:main)
|
||||
end
|
||||
|
||||
every 1.hour, 'every-hour', :at => ['**:15'] do
|
||||
CheckAllDNSJob.queue(:main)
|
||||
ExpireHeldMessagesJob.queue(:main)
|
||||
CleanupAuthieSessionsJob.queue(:main)
|
||||
end
|
||||
|
||||
every 1.hour, 'every-hour', :at => ['**:45'] do
|
||||
PruneWebhookRequestsJob.queue(:main)
|
||||
RenewTrackCertificatesJob.queue(:main)
|
||||
end
|
||||
|
||||
every 1.day, 'every-day', :at => ['03:00'] do
|
||||
ProcessMessageRetentionJob.queue(:main)
|
||||
end
|
||||
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم