Flyte wird nicht parallel laufenPython

Python-Programme
Anonymous
 Flyte wird nicht parallel laufen

Post by Anonymous »

Ich bin neu in Flyte und versuche im Moment, ziemlich einfache Dinge zu tun. geschätzt. < /p>
Danke im Voraus.

Code: Select all

from flytekit import map_task, task, workflow

@task
def do_something(value: str) -> str:
print(f"launched: {value}", flush=True)
time.sleep(60)  # fakes long process time
return f"{value}-processed"

@workflow
def do_multiple_things() -> list[str]:
values = ["foo", "bar", "baz"]
return map_task(do_something)(value=values)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post