From 30de792b3097fb8573579471a3a84a31b843e3d7 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Garcia Date: Mon, 2 Sep 2024 13:07:13 +0200 Subject: [PATCH] workflows: log control number in create author task ref: https://github.com/cern-sis/issues-inspire/issues/542 --- workflows/dags/author/author_create/author_create_approved.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workflows/dags/author/author_create/author_create_approved.py b/workflows/dags/author/author_create/author_create_approved.py index 8927dd25..f8656a75 100644 --- a/workflows/dags/author/author_create/author_create_approved.py +++ b/workflows/dags/author/author_create/author_create_approved.py @@ -102,6 +102,7 @@ def create_author_on_inspire(**context: dict) -> str: status = get_wf_status_from_inspire_response(response) if response.ok: control_number = response.json()["metadata"]["control_number"] + logger.info(f"Created author with control number: {control_number}") workflow_data["data"]["control_number"] = control_number workflow_management_hook.partial_update_workflow( workflow_id=context["params"]["workflow_id"],