mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
subscription_expire_in_7_days:
|
|
cron: "0 0 * * *"
|
|
class: "SubscriptionExpireWorker"
|
|
queue: default
|
|
args: [7]
|
|
|
|
subscription_is_expired:
|
|
cron: "0 23 * * *"
|
|
class: "SubscriptionExpireWorker"
|
|
queue: default
|
|
args: [0]
|
|
|
|
generate_statistic:
|
|
cron: "0 1 * * *"
|
|
class: "StatisticWorker"
|
|
queue: default
|
|
|
|
i_calendar_import:
|
|
cron: "0 * * * *"
|
|
class: "ICalendarImportWorker"
|
|
queue: default
|
|
|
|
reservation_reminder:
|
|
cron: "1 * * * *"
|
|
class: "ReservationReminderWorker"
|
|
queue: default
|
|
|
|
close_period_reminder_worker:
|
|
cron: "0 12 * * 1" # every monday at 12pm
|
|
class: "ClosePeriodReminderWorker"
|
|
queue: default
|
|
|
|
free_disk_space:
|
|
cron: "0 5 * * 0" # every sunday at 5am
|
|
class: "FreeDiskSpaceWorker"
|
|
queue: system
|
|
|
|
# schedule a version check, every week at the current day+time
|
|
# this will prevent that all the instances query the hub simultaneously
|
|
<% m = DateTime.current.minute - 1; h = DateTime.current.hour; d = DateTime.current.cwday %>
|
|
version_check:
|
|
cron: <%="#{m} #{h} * * #{d}" %>
|
|
class: 'VersionCheckWorker'
|
|
queue: system
|
|
|
|
payment_schedule_item:
|
|
cron: "0 * * * *" # every day, every hour
|
|
class: 'PaymentScheduleItemWorker'
|
|
queue: default
|
|
|
|
<%= PluginRegistry.insert_code('yml.schedule') %>
|