Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run flytekit tasks on remote with local default values passed correctly #2525

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Jun 24, 2024

@task
def default_inputs(i: int = 0, f: float = 10.0, e: Color = Color.RED, b: bool = True, j: typing.Optional[int] = None):
  print(i, f, e, b, j)

Running this on remote will now work correctly

pyflyte run --remote exhaustive.py default_inputs

Tracking issue

Why are the changes needed?

What changes were proposed in this pull request?

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

```python
@task
def default_inputs(i: int = 0, f: float = 10.0, e: Color = Color.RED, b: bool = True, j: typing.Optional[int] = None):
  print(i, f, e, b, j)
```

Running this on remote will now work correctly

```bash
pyflyte run --remote exhaustive.py default_inputs
```

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>
Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>
@kumare3 kumare3 merged commit 38f140a into master Jun 25, 2024
43 of 46 checks passed
bgedik pushed a commit to bgedik/flytekit that referenced this pull request Jul 3, 2024
…ly (flyteorg#2525)

* Run flytekit tasks on remote with local default values passed correctly

```python
@task
def default_inputs(i: int = 0, f: float = 10.0, e: Color = Color.RED, b: bool = True, j: typing.Optional[int] = None):
  print(i, f, e, b, j)
```

Running this on remote will now work correctly

```bash
pyflyte run --remote exhaustive.py default_inputs
```

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>

* fixing lint

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>

---------

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>
Co-authored-by: Ketan Umare <kumare3@users.noreply.github.com>
Signed-off-by: bugra.gedik <bugra.gedik@predera.ai>
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
…ly (#2525)

* Run flytekit tasks on remote with local default values passed correctly

```python
@task
def default_inputs(i: int = 0, f: float = 10.0, e: Color = Color.RED, b: bool = True, j: typing.Optional[int] = None):
  print(i, f, e, b, j)
```

Running this on remote will now work correctly

```bash
pyflyte run --remote exhaustive.py default_inputs
```

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>

* fixing lint

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>

---------

Signed-off-by: Ketan Umare <kumare3@users.noreply.github.com>
Co-authored-by: Ketan Umare <kumare3@users.noreply.github.com>
Signed-off-by: Jan Fiedler <jan@union.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants