Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

workflows: log control number in create author task #109

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading