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

[Core feature] [flytekit] pyflyte run should support executing tasks #2471

Closed
2 tasks done
kumare3 opened this issue May 10, 2022 · 0 comments
Closed
2 tasks done

[Core feature] [flytekit] pyflyte run should support executing tasks #2471

kumare3 opened this issue May 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request flytekit FlyteKit Python related issue
Milestone

Comments

@kumare3
Copy link
Contributor

kumare3 commented May 10, 2022

Motivation: Why do you think this is important?

Flyte allows executing one task at a time.
Pyflyte run does not support this.

For example in a workflow

from flytekit import workflow, task
from typing import List, Dict

@task
def t1(l: str) -> List[str]:
    return [l]


@workflow
def wf(l: str = "") -> List[str]:
    return t1(l=l)


@task
def t2(i: Dict[str, int]) -> Dict[str, int]:
    return i

@workflow
def wf2m(i: Dict[str, int]) -> Dict[str, int]:
    return t2(i=i)

Goal: What should the final outcome look like, ideally?

It should be possible to

pyflyte run --remote test2.py t1 --l hello

and help should show

➜ pyflyte run test2.py --help

Usage: pyflyte run test2.py [OPTIONS] COMMAND [ARGS]...

  Run a [workflow|task] in a file using script mode

Options:
  --help  Show this message and exit.

Commands:
  wf    Run test2.wf in script mode
  wf2m  Run test2.wf2m in script mode
  t1    Run test2.t1 in script mode
  t2    Run test2.t2 in script mode

Describe alternatives you've considered

Jupyter notebook

Propose: Link/Inline OR Additional context

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@kumare3 kumare3 added enhancement New feature or request untriaged This issues has not yet been looked at by the Maintainers labels May 10, 2022
@wild-endeavor wild-endeavor added flytekit FlyteKit Python related issue and removed untriaged This issues has not yet been looked at by the Maintainers labels May 11, 2022
@wild-endeavor wild-endeavor modified the milestones: 1.0.1, 1.0.2 May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request flytekit FlyteKit Python related issue
Projects
None yet
Development

No branches or pull requests

3 participants