F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Executing workflow with pyflyte run

Summary

The user inquires about executing a file that defines a workflow with the command pyflyte run, while passing arguments. They note that for an imperative workflow, it should work, but the module load must yield the workflow, necessitating that arguments be set as environment variables. Alternatively, they suggest using Flyte remote.

Status
resolved
Tags
    Source
    #ask-the-community
      d

      denis.shvetsov

      10/18/2024

      Ok, I think I started to understand the problem

      d

      denis.shvetsov

      10/18/2024

      > It should work, but module load should result in the workflow. So the arguments will have to env vars You mean I need to pass arguments as environment variable, and not through argparse.ArgumentParser ?

      k

      kumare

      10/18/2024

      Else use Flyte remote

      k

      kumare

      10/18/2024

      You want imperative workflow? It should work, but module load should result in the workflow. So the arguments will have to env vars

      d

      denis.shvetsov

      10/18/2024

      Hi, if I have a file that takes some arguments, and defines a workflow. Am I able to run it with pyflyte run and pass these arguments there?