diff --git a/src/fellchensammlung/tasks.py b/src/fellchensammlung/tasks.py index 016abc0..a5b179c 100644 --- a/src/fellchensammlung/tasks.py +++ b/src/fellchensammlung/tasks.py @@ -48,6 +48,7 @@ def post_adoption_notice_save(pk): notify_search_subscribers(instance, only_if_active=True) notify_of_AN_to_be_checked(instance) + @celery_app.task(name="tools.healthcheck") def task_healthcheck(): healthcheck_ok() @@ -58,9 +59,10 @@ def task_healthcheck(): def task_send_notification_email(notification_pk): send_notification_email(notification_pk) + @celery_app.task(name="commit.post_rescue_org_save") def post_rescue_org_save(pk): instance = RescueOrganization.objects.get(pk=pk) Location.add_location_to_object(instance) set_timestamp("add_rescue_org_location") - logging.info(f"Location was added to Rescue Organization {pk}") \ No newline at end of file + logging.info(f"Location was added to Rescue Organization {pk}")