Skip to content

Commit

Permalink
Changed retry setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
valayDave committed Mar 19, 2022
1 parent 563a200 commit 62bc8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metaflow/plugins/airflow/airflow_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _k8s_job(self, node, input_paths, env):
# todo : check for retry
# since we are attaching k8s at cli, there will be one for a step.
k8s_deco = [deco for deco in node.decorators if deco.name == "kubernetes"][0]
user_code_retries, total_retries = self._get_retries(node)
user_code_retries, _ = self._get_retries(node)
retry_delay = self._get_retry_delay(node)
# This sets timeouts for @timeout decorators.
# The timeout is set as "execution_timeout" for an airflow task.
Expand All @@ -138,7 +138,7 @@ def _k8s_job(self, node, input_paths, env):
gpu=k8s_deco.attributes["gpu"],
disk=k8s_deco.attributes["disk"],
memory=k8s_deco.attributes["memory"],
retries=total_retries,
retries=user_code_retries,
run_time_limit=timedelta(seconds=runtime_limit),
retry_delay=retry_delay,
env=env,
Expand Down

0 comments on commit 62bc8df

Please sign in to comment.