fix cronitor task name

This commit is contained in:
Kenneth Kehl
2025-07-09 10:23:57 -07:00
parent 8860dfde47
commit 256ab0f83c
2 changed files with 4 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ from app.models import FactProcessingTime
from app.utils import get_midnight_in_utc, utc_now
@notify_celery.task(name="remove_sms_email_jobs")
@cronitor("remove_sms_email_jobs")
@notify_celery.task(name="remove-sms-email-jobs")
@cronitor("remove-sms-email-jobs")
def remove_sms_email_csv_files():
_remove_csv_files([NotificationType.EMAIL, NotificationType.SMS])

View File

@@ -311,8 +311,8 @@ class Config(object):
"schedule": crontab(hour=4, minute=5),
"options": {"queue": QueueNames.PERIODIC},
},
"remove_sms_email_jobs": {
"task": "remove_sms_email_jobs",
"remove-sms-email-jobs": {
"task": "remove-sms-email-jobs",
"schedule": crontab(hour=8, minute=0),
"options": {"queue": QueueNames.PERIODIC},
},