闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

  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. subscriptions_scheduler:
  13. cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'
  14. class: Scheduler::SubscriptionsScheduler
  15. media_cleanup_scheduler:
  16. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  17. class: Scheduler::MediaCleanupScheduler
  18. feed_cleanup_scheduler:
  19. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * *'
  20. class: Scheduler::FeedCleanupScheduler
  21. doorkeeper_cleanup_scheduler:
  22. cron: '<%= Random.rand(0..59) %> <%= Random.rand(0..2) %> * * 0'
  23. class: Scheduler::DoorkeeperCleanupScheduler
  24. user_cleanup_scheduler:
  25. cron: '<%= Random.rand(0..59) %> <%= Random.rand(4..6) %> * * *'
  26. class: Scheduler::UserCleanupScheduler
  27. subscriptions_cleanup_scheduler:
  28. cron: '<%= Random.rand(0..59) %> <%= Random.rand(1..3) %> * * 0'
  29. class: Scheduler::SubscriptionsCleanupScheduler
  30. ip_cleanup_scheduler:
  31. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  32. class: Scheduler::IpCleanupScheduler
  33. email_scheduler:
  34. cron: '0 10 * * 2'
  35. class: Scheduler::EmailScheduler
  36. backup_cleanup_scheduler:
  37. cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *'
  38. class: Scheduler::BackupCleanupScheduler
  39. pghero_scheduler:
  40. cron: '0 0 * * *'
  41. class: Scheduler::PgheroScheduler