I have been trying to build a mathematical model of chemotherapy drug dose scheduling as part of my thesis. Firstly, I did the logic in MATLAB and then implemented it in Python. Then I tried using Django. While the app runs fine on localhost, it fails when I host it. Mainly because of the time it takes to calculate the whole process. On my localhost, it takes around 40 seconds to 1 minute to calculate, but I get the result. When I host it in railway it gives up after the first iteration. It is based on Fuzzy Logic. Also, I didn't follow software development principles when creating this, so the code is a mess.
I do not know what I should include for reference. I am adding the GitHub link- FES Tool
The error I get from the railway is application failed to respond.
\
Here are the server logs.
Not Found: /favicon.ico
14
[2023-08-23 08:12:18 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:264)
capi_return is NULL
Call-back cb_f_in_lsoda__user__routines failed.
[2023-08-23 08:12:18 +0000] [264] [INFO] Worker exiting (pid: 264)
[2023-08-23 08:12:18 +0000] [1] [ERROR] Worker (pid:264) exited with code 1
[2023-08-23 08:12:18 +0000] [1] [ERROR] Worker (pid:264) exited with code 1.
[2023-08-23 08:12:18 +0000] [327] [INFO] Booting worker with pid: 327
Any suggestion is appreciated.
I tried to host a Django project that takes a lot of time to calculate in the backend, and I failed.