Skip to content

Commit

Permalink
upload files/directories when using remote-workflow (#2222)
Browse files Browse the repository at this point in the history
* enable remote

Signed-off-by: Samhita Alla <[email protected]>

* modify flyte context

Signed-off-by: Samhita Alla <[email protected]>

* remove dict update

Signed-off-by: Samhita Alla <[email protected]>

* revert format

Signed-off-by: Samhita Alla <[email protected]>

* revert format

Signed-off-by: Samhita Alla <[email protected]>

---------

Signed-off-by: Samhita Alla <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
Signed-off-by: Jan Fiedler <[email protected]>
  • Loading branch information
2 people authored and fiedlerNr9 committed Jul 25, 2024
1 parent 3c7f358 commit ed10c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flytekit/clis/sdk_in_container/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def _get_params(
defaults: typing.Optional[typing.Dict[str, Parameter]] = None,
) -> typing.List["click.Parameter"]:
params = []
flyte_ctx = context_manager.FlyteContextManager.current_context()
flyte_ctx = ctx.obj.remote_instance().context
for name, var in inputs.items():
if fixed and name in fixed:
continue
Expand All @@ -609,6 +609,7 @@ def _get_params(
return params

def get_params(self, ctx: click.Context) -> typing.List["click.Parameter"]:
ctx.obj.remote = True
if not self.params:
self.params = []
entity = self._fetch_entity(ctx)
Expand Down

0 comments on commit ed10c89

Please sign in to comment.