Open rob-safi opened 1 month ago
Hi, any update on this, it's definetly a blocker for us using Prefect...
Hi @rob-safi thanks for filing this, apologies for the delayed response! Unfortunately I am not able to reproduce this issue with your example. I ran it a number of times and wasn't able to reproduce the hanging behavior:
(demo-flows310) ➜ demo-flows git:(main) ✗ python my_flow.py
09:51:42.659 | INFO | prefect.engine - Created flow run 'platinum-curassow' for flow 'test'
09:51:42.662 | INFO | Flow run 'platinum-curassow' - View at https://app.prefect.cloud/account/3cf6b38f-5244-474a-9554-302144506e43/workspace/ce8b1412-01b7-4700-a508-8dbd1f43f623/flow-runs/flow-run/d922ab9b-29d5-42f8-bd0e-e84f2936fc80
09:51:43.028 | INFO | Flow run 'platinum-curassow' - Created task run 'small_task-0' for task 'small_task'
09:51:43.030 | INFO | Flow run 'platinum-curassow' - Executing 'small_task-0' immediately...
09:51:43.288 | INFO | Task run 'small_task-0' - start: pool.close()
09:51:43.289 | INFO | Task run 'small_task-0' - end: pool.close()
09:51:43.290 | INFO | Task run 'small_task-0' - start: pool.join()
a-00
a-01
a-02
a-03
a-04
a-05
a-06
a-07
a-08
a-09
09:51:45.044 | INFO | Task run 'small_task-0' - end: pool.join()
09:51:45.170 | INFO | Task run 'small_task-0' - Finished in state Completed()
09:51:45.298 | INFO | Flow run 'platinum-curassow' - Finished in state Completed()
Does this crash every time for you? Theres unfortunately not much we can do here without a working MRE.
First check
Bug summary
I have seen several people have similar issues but non of their solutions are adapted to me. When runnnig the snippet below the code hangs. A modified version of this code runs in the v7labs darwin api and is needed for us.
Any ideas on when this type of hanging will be solved? (or maybe it already is and I didn't find it :) )
Reproduction