illinois-cs241 / broadway-on-demand

Webapp that facilitates on-demand assignment autograding via Broadway.
Other
11 stars 4 forks source link

Migrate query request to Broadway endpoints to be direct #132

Closed Xiangmingchen closed 3 years ago

Xiangmingchen commented 3 years ago

Before adding the integration for broadway job position SSE, I wanted to migrate our existing query requests.

Before this migration

Any status query request (such as grading job status or queue position) must use on-demand server as a middle man to avoid leaking tokens.

This slows down performance by half and is especially slow for queue position query (which need to make 2 such trips).

After this migration

Now the on-demand client can use query tokens to make direct requests

TODO

Testing

Tested with a local on-demand and broadway cluster.