1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/config/schedule.yml
Sylvain af3def0e2e (feat) save the accounting data in DB
Previously, the accounting data were built on demand,
extracting the data from the invoices on-the-fly.
This is intended to be used only once in a while, so there was
no performance issue with that.
Now, we want those data to be accessed from the OpenAPI,
so building them on-the-fly would be very much
intensive and resouces heavy. So we build them each nights
using a scheduled worker and save them in the database
2022-12-21 14:11:40 +01:00

56 lines
1.3 KiB
YAML

subscription_expire_in_7_days:
cron: "0 0 * * *" # every day, at midnight
class: SubscriptionExpireWorker
queue: default
args: [7]
subscription_is_expired:
cron: "0 23 * * *" # every day, at 11pm
class: SubscriptionExpireWorker
queue: default
args: [0]
generate_statistic:
cron: "0 1 * * *" # every day, at 1am
class: StatisticWorker
queue: default
i_calendar_import:
cron: "0 * * * *" # every day, every hour
class: ICalendarImportWorker
queue: default
reservation_reminder:
cron: "1 * * * *" # every day, every hour + 1 minute
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
# this will prevent that all the instances query the hub simultaneously
<% h = DateTime.current - 1.minute %>
version_check:
cron: <%="#{h.strftime('%M %H')} * * #{h.cwday}" %> # every week, at current day+time
class: VersionCheckWorker
queue: system
payment_schedule_item:
cron: "0 * * * *" # every day, every hour
class: PaymentScheduleItemWorker
queue: default
accounting_data:
cron: "0 0 * * *" # every day, at midnight
class: AccountingWorker
queue: default
<%= PluginRegistry.insert_code('yml.schedule') %>