2016-03-23 18:39:41 +01:00
|
|
|
subscription_expire_in_7_days:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 0 * * *" # every day, at midnight
|
2022-03-09 14:33:50 +01:00
|
|
|
class: SubscriptionExpireWorker
|
2016-03-23 18:39:41 +01:00
|
|
|
queue: default
|
|
|
|
args: [7]
|
|
|
|
|
|
|
|
subscription_is_expired:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 23 * * *" # every day, at 11pm
|
2022-03-09 14:33:50 +01:00
|
|
|
class: SubscriptionExpireWorker
|
2016-03-23 18:39:41 +01:00
|
|
|
queue: default
|
|
|
|
args: [0]
|
|
|
|
|
|
|
|
generate_statistic:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 1 * * *" # every day, at 1am
|
2022-03-09 14:33:50 +01:00
|
|
|
class: StatisticWorker
|
2016-03-23 18:39:41 +01:00
|
|
|
queue: default
|
2016-05-25 12:21:38 +02:00
|
|
|
|
2019-12-02 15:53:24 +01:00
|
|
|
i_calendar_import:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 * * * *" # every day, every hour
|
2022-03-09 14:33:50 +01:00
|
|
|
class: ICalendarImportWorker
|
2019-12-02 15:53:24 +01:00
|
|
|
queue: default
|
|
|
|
|
2016-08-17 17:39:12 +02:00
|
|
|
reservation_reminder:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 1 * * * *" # every day, every hour + 1 minute
|
2022-03-09 14:33:50 +01:00
|
|
|
class: ReservationReminderWorker
|
2016-08-17 17:39:12 +02:00
|
|
|
queue: default
|
|
|
|
|
2019-03-18 14:33:30 +01:00
|
|
|
close_period_reminder_worker:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 12 * * 1" # every monday at 12pm
|
2022-03-09 14:33:50 +01:00
|
|
|
class: ClosePeriodReminderWorker
|
2019-03-18 14:33:30 +01:00
|
|
|
queue: default
|
|
|
|
|
2019-02-26 15:18:19 +01:00
|
|
|
free_disk_space:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 5 * * 0" # every sunday at 5am
|
2022-03-09 14:33:50 +01:00
|
|
|
class: FreeDiskSpaceWorker
|
2020-07-01 16:56:21 +02:00
|
|
|
queue: system
|
|
|
|
|
|
|
|
# this will prevent that all the instances query the hub simultaneously
|
2022-03-15 16:07:38 +01:00
|
|
|
<% h = DateTime.current - 1.minute %>
|
2020-07-01 16:56:21 +02:00
|
|
|
version_check:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: <%="0 #{h.strftime('%M %H')} * * #{h.cwday}" %> # every week, at current day+time
|
2022-03-09 14:33:50 +01:00
|
|
|
class: VersionCheckWorker
|
2020-07-01 16:56:21 +02:00
|
|
|
queue: system
|
2019-02-26 15:18:19 +01:00
|
|
|
|
2021-01-20 17:00:23 +01:00
|
|
|
payment_schedule_item:
|
2021-02-08 10:05:54 +01:00
|
|
|
cron: "0 * * * *" # every day, every hour
|
2022-03-09 14:33:50 +01:00
|
|
|
class: PaymentScheduleItemWorker
|
2021-01-20 17:00:23 +01:00
|
|
|
queue: default
|
|
|
|
|
2022-11-18 16:42:11 +01:00
|
|
|
accounting_data:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 0 * * *" # every day, at midnight
|
2022-11-18 16:42:11 +01:00
|
|
|
class: AccountingWorker
|
|
|
|
queue: default
|
|
|
|
|
2023-01-24 14:03:01 +01:00
|
|
|
auto_cancel_tranings:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 */5 * * * *" # every day, every 5 minutes
|
2023-01-24 14:03:01 +01:00
|
|
|
class: TrainingAutoCancelWorker
|
|
|
|
queue: default
|
|
|
|
|
2023-01-27 17:31:16 +01:00
|
|
|
auto_cancel_authorizations:
|
2023-02-03 11:51:23 +01:00
|
|
|
cron: "0 0 0 * * *" # every day, at midnight
|
2023-01-27 17:31:16 +01:00
|
|
|
class: TrainingAuthorizationWorker
|
|
|
|
queue: default
|
|
|
|
|
2023-07-12 09:29:16 +02:00
|
|
|
child_age_will_be_18:
|
|
|
|
cron: "0 0 0 * * *" # every day, at midnight
|
|
|
|
class: ChildAgeWorker
|
|
|
|
queue: default
|
|
|
|
|
2016-05-25 12:21:38 +02:00
|
|
|
<%= PluginRegistry.insert_code('yml.schedule') %>
|