Files
fizzy/config/recurring.yml
T
Rosa Gutierrez 329e9ef7cb Don't run application recurring jobs in betas
Betas use the same application DB as production, so all these tasks
already take place there. Moreover, since betas have different Solid
Queue instances, we can't prevent simultaneous runs of the same
recurring jobs because each Solid Queue instance is isolated from the
others, so they don't know these jobs are running already, leading to
all sort of issues.
2025-12-23 22:12:08 +01:00

52 lines
1.6 KiB
YAML

<% require_relative "../lib/fizzy" %>
production: &production
# Application functionality: notifications and summaries
deliver_bundled_notifications:
command: "Notification::Bundle.deliver_all_later"
schedule: every 30 minutes
# Application cleanup
auto_postpone_all_due:
command: "Card.auto_postpone_all_due"
schedule: every hour at minute 50
delete_unused_tags:
class: DeleteUnusedTagsJob
schedule: every day at 04:02
# Operations cleanup and backups
clear_solid_queue_finished_jobs:
command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)"
schedule: every hour at minute 12
clear_solid_queue_recurring_executions:
command: "SolidQueue::RecurringExecution.clear_in_batches"
schedule: every hour at minute 52
cleanup_webhook_deliveries:
command: "Webhook::Delivery.cleanup"
schedule: every 4 hours at minute 51
cleanup_magic_links:
command: "MagicLink.cleanup"
schedule: every 4 hours
cleanup_exports:
command: "Account::Export.cleanup"
schedule: every hour at minute 20
<% if Fizzy.saas? %>
# Metrics
yabeda_actioncable:
command: "Yabeda::ActionCable.measure"
schedule: every 60 seconds
<% end %>
beta:
# Only Solid Queue maintenance
clear_solid_queue_finished_jobs:
command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)"
schedule: every hour at minute 12
clear_solid_queue_recurring_executions:
command: "SolidQueue::RecurringExecution.clear_in_batches"
schedule: every hour at minute 52
staging: *production
development: *production