| 1 | # Solid Queue recurring tasks. |
| 2 | # https://github.com/rails/solid_queue#recurring-tasks |
| 3 | # |
| 4 | # mirror_sync enqueues a MirrorSyncJob for every mirror repo due for a refresh |
| 5 | # (see MirrorSyncSchedulerJob); webhooks, when configured, sync sooner. |
| 6 | # clear_solid_queue_finished_jobs keeps the queue tables from growing unbounded. |
| 7 | |
| 8 | production: |
| 9 | mirror_sync: |
| 10 | class: MirrorSyncSchedulerJob |
| 11 | schedule: every 15 minutes |
| 12 | clear_solid_queue_finished_jobs: |
| 13 | command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)" |
| 14 | schedule: every hour at minute 12 |
| 15 | |
| 16 | development: |
| 17 | mirror_sync: |
| 18 | class: MirrorSyncSchedulerJob |
| 19 | schedule: every 15 minutes |