sidekiq.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. :concurrency: 5
  3. :queues:
  4. - [default, 6]
  5. - [push, 4]
  6. - [mailers, 2]
  7. - [pull]
  8. - [scheduler]
  9. :scheduler:
  10. :listened_queues_only: true
  11. :schedule:
  12. scheduled_statuses_scheduler:
  13. every: '5m'
  14. class: Scheduler::ScheduledStatusesScheduler
  15. queue: scheduler
  16. trending_tags_scheduler:
  17. every: '5m'
  18. class: Scheduler::TrendingTagsScheduler
  19. queue: scheduler
  20. media_cleanup_scheduler:
  21. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  22. class: Scheduler::MediaCleanupScheduler
  23. queue: scheduler
  24. feed_cleanup_scheduler:
  25. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * *'
  26. class: Scheduler::FeedCleanupScheduler
  27. queue: scheduler
  28. doorkeeper_cleanup_scheduler:
  29. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * 0'
  30. class: Scheduler::DoorkeeperCleanupScheduler
  31. queue: scheduler
  32. user_cleanup_scheduler:
  33. cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'
  34. class: Scheduler::UserCleanupScheduler
  35. queue: scheduler
  36. ip_cleanup_scheduler:
  37. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  38. class: Scheduler::IpCleanupScheduler
  39. queue: scheduler
  40. email_scheduler:
  41. cron: '0 10 * * 2'
  42. class: Scheduler::EmailScheduler
  43. queue: scheduler
  44. backup_cleanup_scheduler:
  45. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  46. class: Scheduler::BackupCleanupScheduler
  47. queue: scheduler
  48. pghero_scheduler:
  49. cron: '0 0 * * *'
  50. class: Scheduler::PgheroScheduler
  51. queue: scheduler
  52. instance_refresh_scheduler:
  53. cron: '0 * * * *'
  54. class: Scheduler::InstanceRefreshScheduler
  55. queue: scheduler