diff --git a/src/openforms/authentication/tasks.py b/src/openforms/authentication/tasks.py index 4c217db68a..184ef8f1cb 100644 --- a/src/openforms/authentication/tasks.py +++ b/src/openforms/authentication/tasks.py @@ -1,3 +1,5 @@ +from io import StringIO + from django.core.management import call_command from openforms.celery import app @@ -11,7 +13,7 @@ def hash_identifying_attributes(auth_info_id: int): auth_info.hash_identifying_attributes() -@app.task +@app.task(ignore_result=True) def update_saml_metadata() -> None: """ A weekly task for updating the SAML metadata concerning DigiD/Eherkenning @@ -20,5 +22,6 @@ def update_saml_metadata() -> None: `digid_eherkenning.management.commands` module of django-digid-eherkenning library. Updates the stored metadata file and prepopulates the db fields. """ - call_command("update_stored_metadata", "digid") - call_command("update_stored_metadata", "eherkenning") + stdout = StringIO() + call_command("update_stored_metadata", "digid", stdout=stdout) + call_command("update_stored_metadata", "eherkenning", stdout=stdout)