potiuk commented on issue #52270:
URL: https://github.com/apache/airflow/issues/52270#issuecomment-3262926437

   > I think the root cause is [this upstream 
bug](https://github.com/Kludex/uvicorn/issues/2506) in uvicorn because 
downgrading it to 0.29.0 makes processes to stop dying.
   
   It does look like this. Reading the details on the upstream issue:
   
   * in uvicorn 0.30.0 - uvicorn had implemented new multi-processor way of 
running the workers and they are using `spawn` instead of `fork`
   * there is a timeout of 5 seconds for the workers to start and import things 
- this timeout is not configurable
   * on slower machines apparently our imports are taking longer than that and 
uvicorn kills the child processes
   
   We have a few options I think:
   
   * downgrade to uvicorn 0.29.0  (though it's not very good due to security 
etc.)
   * optimize our imports
   * find a way how we can maybe switch to fork or increase the timeout (we 
could work with uvicorn)
   
   @pierrejeambrun @ashb @kaxil -> I think that one is rather serious to solve 
(for 3.1.0 and likely maybe for 3.0.7) ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to