Nabil Koroghli
02/15/2024, 9:57 AM@task(requests=Resources(cpu="1", mem="500Mi"), limits=Resources(cpu="2", mem="1Gi"))
def say_hello() -> str:
for i in range(60):
print("writing some log", i)
time.sleep(5)
return "Hello, World!"
I run the task with:
pyflyte run --remote ./long_task.py long_wf
Ketan (kumare3)
Nabil Koroghli
02/15/2024, 3:22 PMKetan (kumare3)
Nabil Koroghli
02/15/2024, 3:27 PMKetan (kumare3)
Ketan (kumare3)
Nabil Koroghli
02/15/2024, 4:15 PMNabil Koroghli
02/16/2024, 8:25 AM