Skip to content

Commit

Permalink
address nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed Jan 16, 2025
1 parent ed0b639 commit c402e03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metaflow/plugins/argo/argo_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ def _container_templates(self):
},
**{
# Some optional values for bookkeeping
"MF_FLOW_FILENAME": os.path.basename(sys.argv[0]),
"METAFLOW_FLOW_FILENAME": os.path.basename(sys.argv[0]),
"METAFLOW_FLOW_NAME": self.flow.name,
"METAFLOW_STEP_NAME": node.name,
"METAFLOW_RUN_ID": run_id,
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/kubernetes/kubernetes_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def echo(msg, stream="stderr", job_id=None, **kwargs):
executable = ctx.obj.environment.executable(step_name, executable)

# Set environment
env = {"MF_FLOW_FILENAME": os.path.basename(sys.argv[0])}
env = {"METAFLOW_FLOW_FILENAME": os.path.basename(sys.argv[0])}
env_deco = [deco for deco in node.decorators if deco.name == "environment"]
if env_deco:
env = env_deco[0].attributes["vars"]
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/kubernetes/spot_monitor_sidecar.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _monitor_loop(self):
time.sleep(self.POLL_INTERVAL)

def _emit_termination_metadata(self, termination_time):
flow_filename = os.getenv("MF_FLOW_FILENAME")
flow_filename = os.getenv("METAFLOW_FLOW_FILENAME")
pathspec = os.getenv("MF_PATHSPEC")
_, run_id, step_name, task_id = pathspec.split("/")
retry_count = os.getenv("MF_ATTEMPT")
Expand Down

0 comments on commit c402e03

Please sign in to comment.