Make storing a run not wait until storage is complete #1306
Labels
API change 📄
Content of patch changes API!
database 🗄️
Issues related to the database schema.
enhancement 🌟
server 🖥️
Milestone
With the added statelessness and the complexity of parsing a report ZIP it should be done so that this parsing does not hang one thread of the web server pool, and neither does keep a socket open. The user could time out while the server is generating the return value of
massStoreRun
, which could have unforeseen consequences.Ideas:
massStoreRun
should start a direct, detached subprocess which is internal to the server host. This subprocess could independently handle the parsing and storing of the result ZIP. This way the user's connection is closed once the ZIP is dispatched, and instead of waiting for the reply in the same connection, it could be made so that the client actively pings the server to tell them when the build is successfully stored, or failed. This would require a change on the API and handling, and also to introduce a little bit of interprocess communication, or saving intermittent state data to the database (presumably into a new table which is recommended to be in theMEMORY
backend).The text was updated successfully, but these errors were encountered: