-
Notifications
You must be signed in to change notification settings - Fork 440
Open
Labels
API change 📄Content of patch changes API!Content of patch changes API!database 🗄️Issues related to the database schema.Issues related to the database schema.enhancement 🌟server 🖥️
Milestone
Description
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:
- Make the Webserver process pooled instead of thread pool. This could be a big help in alleviating for the GIL.
massStoreRunshould 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 theMEMORYbackend).
Metadata
Metadata
Assignees
Labels
API change 📄Content of patch changes API!Content of patch changes API!database 🗄️Issues related to the database schema.Issues related to the database schema.enhancement 🌟server 🖥️