Open sebastianjanisch opened 2 weeks ago
I just came across this so this might be a multiprocessing issue in the way that the gunicorn workers are started: https://docs.pola.rs/user-guide/misc/multiprocessing/
I've been playing around with this more. It looks like this issue is caused if polars is touched on module level.
That is, if the module level pl.read_csv
is removed the code will work.
Describe the bug When starting reflex in production mode below example freezes inside the
pd.read_csv
call until the guniorn workers time out and with below message:To Reproduce Steps to reproduce the behavior:
start reflex in production mode:
reflex run --env prod
Expected behavior A clear and concise description of what you expected to happen. code in
on_load
runs to completion and workers don't time outScreenshots If applicable, add screenshots to help explain your problem.
Specifics (please complete the following information):
Additional context Add any other context about the problem here.