zimapurple
If a DJANGO process is failing because of the workers
I do some maths in my django app on railway. It's complicated, and CPU bound. I have the current Developer account (the $5 one).
The maths fails once deployed on some runs with this error:
Similar to this SO
I'm not doing anything smart right now like managing workers, async things or using specific multi-threading libs.
I'm not sure how to solve this issue (without further reducing the data set size, which is already as small as possible). I currently have 2 possible ideas:
1) Follow the advice on the SO, to increase the allocated worker memory
2) Add a FastAPI service to the railway deployment and somehow offload the process to there
Can anyone share any suggestions to solve this, or assess the likelyhood of either of my plans working?
21 replies