mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
# 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
|
|
purge_abandoned_uploads:
|
|
command: "ActiveStorage::Blob.unattached.where(created_at: ..2.days.ago).find_each(&:purge_later)"
|
|
schedule: every day at 4am
|
|
dedupe_storage:
|
|
command: "ActiveStorage::Blob.service.try(:sweep)"
|
|
schedule: every day at 4:30am
|
|
weekly_reminders:
|
|
class: WeeklyReminderJob
|
|
schedule: every monday at 12pm
|
|
ad_watch:
|
|
class: AdWatchJob
|
|
schedule: every sunday at 10am
|
|
document_text:
|
|
class: DocumentTextJob
|
|
schedule: every day at 2am
|
|
records_integrity:
|
|
class: RecordsIntegrityJob
|
|
schedule: every day at 3:30am
|