- View License Usages - Celery Beat container added - First schedule in Celery Beat for calculating usage (hourly) - repopack can now split for different components - Various fixes as consequece of changing file_location / file_name ==> bucket_name / object_name - Celery Routing / Queuing updated
17 lines
538 B
Python
17 lines
538 B
Python
from celery.schedules import crontab
|
|
|
|
# Define the Celery beat schedule here
|
|
beat_schedule = {
|
|
'update-tenant-usages-every-hour': {
|
|
'task': 'update_usages',
|
|
'schedule': crontab(minute='0'), # Runs every hour
|
|
'args': (),
|
|
'options': {'queue': 'entitlements'}
|
|
},
|
|
# 'send-invoices-every-month': {
|
|
# 'task': 'send_invoices',
|
|
# 'schedule': crontab(day_of_month=1, hour=0, minute=0), # Runs on the 1st of every month
|
|
# 'args': ()
|
|
# },
|
|
# Add more schedules as needed
|
|
} |