Skip to content

Commit

Permalink
Pass in env vars in FlyteRemote register_script (#2120)
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Nordstrom <[email protected]>
  • Loading branch information
knordstrom-muon authored Jan 22, 2024
1 parent 139fa2f commit 5ba545c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ def register_script(
options: typing.Optional[Options] = None,
source_path: typing.Optional[str] = None,
module_name: typing.Optional[str] = None,
envs: typing.Optional[typing.Dict[str, str]] = None,
) -> typing.Union[FlyteWorkflow, FlyteTask]:
"""
Use this method to register a workflow via script mode.
Expand All @@ -908,6 +909,7 @@ def register_script(
:param options: Additional execution options that can be configured for the default launchplan
:param source_path: The root of the project path
:param module_name: the name of the module
:param envs: Environment variables to be passed to the serialization
:return:
"""
if image_config is None:
Expand All @@ -928,6 +930,7 @@ def register_script(
domain=domain,
image_config=image_config,
git_repo=_get_git_repo_url(source_path),
env=envs,
fast_serialization_settings=FastSerializationSettings(
enabled=True,
destination_dir=destination_dir,
Expand Down

0 comments on commit 5ba545c

Please sign in to comment.