Trevor Kramer

10/19/2022, 7:51 PM
Can anyone explain why this never completes? I've also tried it with a dask runner and it also hangs. This is with Prefect 2
from prefect import flow, task

def task1(x: int) -> int:
    return x + 10

def task2(x: int) -> int:
    return -x

def run_my_flow(n: int):

if __name__ == "__main__":
    n = 500
👀 1

Jeff Hale

10/20/2022, 3:14 PM
Hi Trevor. I tried your code with n=5 and n=100 and it runs fine. With n=500 I observed the same hanging behavior as you. Adding a sleep timeout of .1 in the tasks doesn’t make it stop hanging, and neither does changing the log level to critical. I’ll ask my colleagues if they know why it’s hanging.
🙏 1

Trevor Kramer

10/24/2022, 12:36 PM
Hi @Jeff Hale Any update on this? Should I file a github issue on this

Jeff Hale

10/24/2022, 12:46 PM
Hi Trevor. I think opening an issue would be good. It’s next up on priorities for one of our engineers to investigate, but it would be nice to have it memorialized in an issue so none of the details of your case get lost.

Anna Geller

10/26/2022, 3:52 PM
can you link the issue here @Trevor Kramer?

Trevor Kramer

10/26/2022, 4:25 PM