diff --git a/config/queue.yml b/config/queue.yml index d566bce55378..6d96c95dff49 100644 --- a/config/queue.yml +++ b/config/queue.yml @@ -18,5 +18,8 @@ development: test: <<: *default +staging: + <<: *default + production: <<: *default diff --git a/config/recurring.yml b/config/recurring.yml index d045b1914772..77dcf557b627 100644 --- a/config/recurring.yml +++ b/config/recurring.yml @@ -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