Skip to content

Commit

Permalink
also update execution state for default case
Browse files Browse the repository at this point in the history
Signed-off-by: oliverhu <[email protected]>
  • Loading branch information
oliverhu committed Jul 24, 2023
1 parent 529b6cf commit 656cf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flytekit/core/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,10 @@ def flyte_entity_call_handler(
return None
return cast(LocallyExecutable, entity).local_execute(child_ctx, **kwargs)
else:
mode = cast(LocallyExecutable, entity).local_execution_mode()
with FlyteContextManager.with_context(
ctx.with_execution_state(
ctx.new_execution_state().with_params(mode=ExecutionState.Mode.LOCAL_WORKFLOW_EXECUTION)
ctx.new_execution_state().with_params(mode=mode)
)
) as child_ctx:
cast(ExecutionParameters, child_ctx.user_space_params)._decks = []
Expand Down

0 comments on commit 656cf30

Please sign in to comment.