Skip to content

Commit

Permalink
Add recurring task
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet committed Nov 26, 2024
1 parent 6431d57 commit f474c0b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
3 changes: 3 additions & 0 deletions config/queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ development:
test:
<<: *default

staging:
<<: *default

production:
<<: *default
28 changes: 18 additions & 10 deletions config/recurring.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# production:
# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour
# periodic_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day
default: &default
activate_subscriptions:
class: Clock::ActivateSubscriptionsJob
queue: clock
args: [{ sentry: { slug: "lago_activate_subscriptions", cron: "*/5 * * * *" } }]
schedule: every 5 miniutes

development:
<<: *default

test:
<<: *default

staging:
<<: *default

production:
<<: *default

0 comments on commit f474c0b

Please sign in to comment.