- License Usage Calculation realised
- 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
This commit is contained in:
17
eveai_beat/schedule.py
Normal file
17
eveai_beat/schedule.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user