-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make /suite requests async #1
Comments
@dikwickley FastAPI's background tasks run after the request is completed, so I'm not sure if they would work well here. Thinking about this more, I'm not sure we even need a queue (though if we do,
So a client like pulpito-ng can poll the appropriate endpoint. If we want or need to be fancier in the future, we can look to websockets. As for the "somewhere" - this could be something as big as a postgres database, or as small as shelve. |
@zmc that sounds perfect! We are already using multiprocessing in t-api's scheduling (though only when
I think that it's necessary that we send logs to pulpito-ng as results - especially when 1) if the schedule fails, 2) when user has The flow would look like:
In case we do need to check the actual status of scheduling - we can query paddles about the run. |
Refer Zack's comment here: VallariAg#3 (review)
Current behavior: API waits for scheduling process to be completed and then sends a response, which can be too long of a response time and it might timeout.
Desired behavior: API immediately sends a response. Users can check their scheduling status in some queue.
The text was updated successfully, but these errors were encountered: