Skip to content

Commit

Permalink
Update current singleton stubs for spin steps
Browse files Browse the repository at this point in the history
  • Loading branch information
talsperre committed Sep 29, 2024
1 parent 4e4ec3e commit 58d96e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions metaflow/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,20 @@ def run_baby_step(
setattr(self.flow, "_spin_input", step_datastore.input)
setattr(self.flow, "_spin_index", step_datastore.index)

current._set_env(
flow=self.flow,
run_id=new_run_id,
step_name=spin_parser_validator.step_name,
task_id=new_task_id,
retry_count=0,
namespace=resolve_identity(),
username=get_username(),
metadata_str="%s@%s"
% (self.metadata.__class__.TYPE, self.metadata.__class__.INFO),
is_running=True,
)
current._update_env({"is_spin": True})

for deco in decorators:
deco.task_pre_step(
step_name,
Expand Down

0 comments on commit 58d96e1

Please sign in to comment.