sidekiq.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. :concurrency: 5
  3. :queues:
  4. - [default, 6]
  5. - [push, 4]
  6. - [mailers, 2]
  7. - [pull]
  8. :schedule:
  9. scheduled_statuses_scheduler:
  10. every: '5m'
  11. class: Scheduler::ScheduledStatusesScheduler
  12. media_cleanup_scheduler:
  13. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  14. class: Scheduler::MediaCleanupScheduler
  15. feed_cleanup_scheduler:
  16. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * *'
  17. class: Scheduler::FeedCleanupScheduler
  18. doorkeeper_cleanup_scheduler:
  19. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * 0'
  20. class: Scheduler::DoorkeeperCleanupScheduler
  21. user_cleanup_scheduler:
  22. cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'
  23. class: Scheduler::UserCleanupScheduler
  24. ip_cleanup_scheduler:
  25. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  26. class: Scheduler::IpCleanupScheduler
  27. email_scheduler:
  28. cron: '0 10 * * 2'
  29. class: Scheduler::EmailScheduler
  30. backup_cleanup_scheduler:
  31. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  32. class: Scheduler::BackupCleanupScheduler
  33. pghero_scheduler:
  34. cron: '0 0 * * *'
  35. class: Scheduler::PgheroScheduler