sidekiq.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. :concurrency: <%= ENV.fetch('SIDEKIQ_CONCURRENCY', 5) %>
  3. :queues:
  4. - [default, 8]
  5. - [push, 6]
  6. - [ingress, 4]
  7. - [mailers, 2]
  8. - [pull]
  9. - [scheduler]
  10. :scheduler:
  11. :listened_queues_only: true
  12. :schedule:
  13. scheduled_statuses_scheduler:
  14. every: '5m'
  15. class: Scheduler::ScheduledStatusesScheduler
  16. queue: scheduler
  17. trends_refresh_scheduler:
  18. every: '5m'
  19. class: Scheduler::Trends::RefreshScheduler
  20. queue: scheduler
  21. trends_review_notifications_scheduler:
  22. every: '6h'
  23. class: Scheduler::Trends::ReviewNotificationsScheduler
  24. queue: scheduler
  25. indexing_scheduler:
  26. interval: 1 minute
  27. class: Scheduler::IndexingScheduler
  28. queue: scheduler
  29. vacuum_scheduler:
  30. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  31. class: Scheduler::VacuumScheduler
  32. queue: scheduler
  33. follow_recommendations_scheduler:
  34. cron: '<%= Random.rand(0..59) %> <%= Random.rand(6..9) %> * * *'
  35. class: Scheduler::FollowRecommendationsScheduler
  36. queue: scheduler
  37. user_cleanup_scheduler:
  38. cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'
  39. class: Scheduler::UserCleanupScheduler
  40. queue: scheduler
  41. ip_cleanup_scheduler:
  42. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  43. class: Scheduler::IpCleanupScheduler
  44. queue: scheduler
  45. pghero_scheduler:
  46. cron: '0 0 * * *'
  47. class: Scheduler::PgheroScheduler
  48. queue: scheduler
  49. instance_refresh_scheduler:
  50. cron: '0 * * * *'
  51. class: Scheduler::InstanceRefreshScheduler
  52. queue: scheduler
  53. accounts_statuses_cleanup_scheduler:
  54. interval: 1 minute
  55. class: Scheduler::AccountsStatusesCleanupScheduler
  56. queue: scheduler
  57. suspended_user_cleanup_scheduler:
  58. interval: 1 minute
  59. class: Scheduler::SuspendedUserCleanupScheduler
  60. queue: scheduler
  61. software_update_check_scheduler:
  62. interval: 30 minutes
  63. class: Scheduler::SoftwareUpdateCheckScheduler
  64. queue: scheduler