Skip to content

Commit

Permalink
revert minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
va6996 committed May 21, 2024
1 parent ccfd564 commit c82b2e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion flytekit/clis/sdk_in_container/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class RunLevelParams(PyFlyteParams):
)
cluster_pool: str = make_click_option_field(
click.Option(
param_decls=["--cluster-pool"],
param_decls=["--cluster-pool", "cluster_pool"],
required=False,
type=str,
default="",
Expand Down
8 changes: 4 additions & 4 deletions flytekit/remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def _execute(
:param envs: Environment variables to set for the execution.
:param tags: Tags to set for the execution.
:param cluster_pool: Specify cluster pool on which newly created execution should be placed.
:param execution_cluster_label: Specify cluster on which newly created execution should be placed.
:param execution_cluster_label: Specify label of cluster(s) on which newly created execution should be placed.
:returns: :class:`~flytekit.remote.workflow_execution.FlyteWorkflowExecution`
"""
if execution_name is not None and execution_name_prefix is not None:
Expand Down Expand Up @@ -1294,7 +1294,7 @@ def execute(
:param envs: Environment variables to be set for the execution.
:param tags: Tags to be set for the execution.
:param cluster_pool: Specify cluster pool on which newly created execution should be placed.
:param execution_cluster_label: Specify cluster on which newly created execution should be placed.
:param execution_cluster_label: Specify label of cluster(s) on which newly created execution should be placed.
.. note:
Expand Down Expand Up @@ -1713,7 +1713,7 @@ def execute_local_task(
:param envs: Environment variables to set for the execution.
:param tags: Tags to set for the execution.
:param cluster_pool: Specify cluster pool on which newly created execution should be placed.
:param execution_cluster_label: Specify cluster on which newly created execution should be placed.
:param execution_cluster_label: Specify label of cluster(s) on which newly created execution should be placed.
:return: FlyteWorkflowExecution object.
"""
resolved_identifiers = self._resolve_identifier_kwargs(entity, project, domain, name, version)
Expand Down Expand Up @@ -1868,7 +1868,7 @@ def execute_local_launch_plan(
:param envs: Environment variables to be passed into the execution.
:param tags: Tags to be passed into the execution.
:param cluster_pool: Specify cluster pool on which newly created execution should be placed.
:param execution_cluster_label: Specify cluster on which newly created execution should be placed.
:param execution_cluster_label: Specify label of cluster(s) on which newly created execution should be placed.
:return: FlyteWorkflowExecution object
"""
resolved_identifiers = self._resolve_identifier_kwargs(entity, project, domain, name, version)
Expand Down
2 changes: 0 additions & 2 deletions tests/flytekit/integration/remote/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,12 @@ def test_execute_python_task(register):
envs={"foo": "bar"},
tags=["flyte"],
cluster_pool="gpu",
execution_cluster_label="label",
)
assert execution.outputs["t1_int_output"] == 12
assert execution.outputs["c"] == "world"
assert execution.spec.envs.envs == {"foo": "bar"}
assert execution.spec.tags == ["flyte"]
assert execution.spec.cluster_assignment.cluster_pool == "gpu"
assert execution.spec.execution_cluster_label.value == "label"


def test_execute_python_workflow_and_launch_plan(register):
Expand Down

0 comments on commit c82b2e5

Please sign in to comment.