summaryrefslogtreecommitdiffhomepage
path: root/config/recurring.yml
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-30 19:03:22 +0900
committerAdam Malczewski <[email protected]>2026-03-30 19:03:22 +0900
commit952c6b565832dd0dbcef7a9a80edc871f79e15a8 (patch)
tree698db27a35f8f40356a0381a32a02767481dc6a9 /config/recurring.yml
downloaddispatch-api-dev.tar.gz
dispatch-api-dev.zip
Diffstat (limited to 'config/recurring.yml')
-rw-r--r--config/recurring.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/recurring.yml b/config/recurring.yml
new file mode 100644
index 0000000..b4207f9
--- /dev/null
+++ b/config/recurring.yml
@@ -0,0 +1,15 @@
+# examples:
+# periodic_cleanup:
+# class: CleanSoftDeletedRecordsJob
+# queue: background
+# args: [ 1000, { batch_size: 500 } ]
+# schedule: every hour
+# periodic_cleanup_with_command:
+# command: "SoftDeletedRecord.due.delete_all"
+# priority: 2
+# schedule: at 5am every day
+
+production:
+ clear_solid_queue_finished_jobs:
+ command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)"
+ schedule: every hour at minute 12