illinois-cs241 / broadway

A distributed systems framework used running distributable workloads.
Other
18 stars 0 forks source link

Add endpoint to fetch queue length for course. #26

Closed ezhang887 closed 3 years ago

ezhang887 commented 4 years ago

This diff adds an endpoint for clients to fetch how long the queue is for a given course. This way, on-demand can now use this endpoint to show students an estimate of how many jobs are currently queued before they click grade.

I've also added some tests for this (and ran the linting/test commands in the travis.yml).

Related issue: https://github.com/illinois-cs241/broadway-on-demand/issues/80

Xiangmingchen commented 4 years ago

I'm not very familiar with how broadway stores information in its queue. is there a way to fetch how many jobs are scheduled before a certain job? I think that will be much more useful than just knowing the total jobs scheduled for a course.