mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Start populating monthly billing on a schedule
This commit is contained in:
@@ -159,7 +159,7 @@ class PopulateMonthlyBilling(Command):
|
|||||||
def run(self, service_id, year):
|
def run(self, service_id, year):
|
||||||
start, end = 1, 13
|
start, end = 1, 13
|
||||||
if year == '2016':
|
if year == '2016':
|
||||||
start = 6
|
start = 4
|
||||||
|
|
||||||
print('Starting populating monthly billing for {}'.format(year))
|
print('Starting populating monthly billing for {}'.format(year))
|
||||||
for i in range(start, end):
|
for i in range(start, end):
|
||||||
|
|||||||
@@ -221,6 +221,11 @@ class Config(object):
|
|||||||
'task': 'timeout-job-statistics',
|
'task': 'timeout-job-statistics',
|
||||||
'schedule': crontab(minute=0, hour=5),
|
'schedule': crontab(minute=0, hour=5),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
|
},
|
||||||
|
'populate_monthly_billing': {
|
||||||
|
'task': 'populate_monthly_billing',
|
||||||
|
'schedule': crontab(minute=10, hour=5),
|
||||||
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CELERY_QUEUES = []
|
CELERY_QUEUES = []
|
||||||
|
|||||||
Reference in New Issue
Block a user