From dddec4c0290296f862c6ed4819fe64e74478cb09 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 20 Nov 2024 09:39:34 -0500 Subject: [PATCH] enh: add logging for to be celery invoked register_scheduled_tasks --- dandiapi/api/tasks/scheduled.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dandiapi/api/tasks/scheduled.py b/dandiapi/api/tasks/scheduled.py index cf8a10143..5dd5a6471 100644 --- a/dandiapi/api/tasks/scheduled.py +++ b/dandiapi/api/tasks/scheduled.py @@ -129,6 +129,11 @@ def refresh_materialized_view_search() -> None: def register_scheduled_tasks(sender: Celery, **kwargs): """Register tasks with a celery beat schedule.""" + logger.info( + 'Registering scheduled tasks for %s. ' 'DANDI_VALIDATION_JOB_INTERVAL is %s seconds.', + sender, + settings.DANDI_VALIDATION_JOB_INTERVAL, + ) # Check for any draft versions that need validation every minute sender.add_periodic_task( timedelta(seconds=settings.DANDI_VALIDATION_JOB_INTERVAL),