Skip to content

Commit

Permalink
Fixed bug when using catch + retry
Browse files Browse the repository at this point in the history
  • Loading branch information
valayDave committed Mar 19, 2022
1 parent 62bc8df commit 5a93d9f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions metaflow/plugins/airflow/airflow_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ def task_pre_step(
]
# Register book-keeping metadata for debugging.
metadata.register_metadata(run_id, step_name, task_id, entries)
if retry_count == 0:
push_xcom_values(
{
TASK_ID_XCOM_KEY: os.environ["METAFLOW_AIRFLOW_TASK_ID"],
}
)
push_xcom_values(
{
TASK_ID_XCOM_KEY: os.environ["METAFLOW_AIRFLOW_TASK_ID"],
}
)

def task_finished(
self, step_name, flow, graph, is_task_ok, retry_count, max_user_code_retries
Expand Down

0 comments on commit 5a93d9f

Please sign in to comment.