Yeah so, I want to run a prediction model for spare parts in a native R script. There could be over 1000 spare parts.
So I built an API that would start a "forecast" instance in the DB and endless while loop in the native script would repeatedly check for a new "forecast" instance and once the value of the key is "start" through the API hit, it will forecast in backend while the single-thread API is free to take other requests.
I just would like to know how to keep this script running the while loop, what sort of container (don't know what would be the appropriate technology here) could be used to host this script