From ec59b7e517beb122c7a5dc627a6adee44f4d21a2 Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Fri, 15 Nov 2024 14:23:04 +0100 Subject: [PATCH] workflows: add more save points during enchancing records --- inspirehep/modules/workflows/workflows/article.py | 7 +++++++ .../integration/workflows/test_workflow_core_selection.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/inspirehep/modules/workflows/workflows/article.py b/inspirehep/modules/workflows/workflows/article.py index 4c75332f71..0f148eefb8 100644 --- a/inspirehep/modules/workflows/workflows/article.py +++ b/inspirehep/modules/workflows/workflows/article.py @@ -193,17 +193,23 @@ extract_authors_from_pdf, ), normalize_journal_titles, + save_workflow, refextract, + save_workflow, count_reference_coreness, extract_journal_info, + save_workflow, populate_journal_coverage, + save_workflow, classify_paper( only_core_tags=False, spires=True, with_author_keywords=True, ), + save_workflow, filter_core_keywords, guess_categories, + save_workflow, IF( is_experimental_paper, guess_experiments, @@ -211,6 +217,7 @@ guess_keywords, guess_coreness, normalize_collaborations, + save_workflow ] diff --git a/tests/integration/workflows/test_workflow_core_selection.py b/tests/integration/workflows/test_workflow_core_selection.py index d539f51ce2..26114995a8 100644 --- a/tests/integration/workflows/test_workflow_core_selection.py +++ b/tests/integration/workflows/test_workflow_core_selection.py @@ -173,7 +173,7 @@ def test_core_selection_wf_starts_after_article_wf_when_no_core( == 0 ) - workflow_object.callback_pos = [34, 1, 13] + workflow_object.callback_pos = [41, 1, 13] # Run task for creating core_selection wf workflow_object.extra_data["auto-approved"] = True workflow_object.save()