Comments (2)
There is one scenario in the websocket version of the protocol that's currently problematic:
When API restarts, graders will be interrupted with a disconnection exception. If there are ongoing jobs in graders in the restarting period, API will think the grader is still working on the original job (since in the http protocol graders would still continue the job and submit in this case). The "running" flag of such grader is not cleared in API once the restart is done.
I think we should probably:
- add reconnecting mechanism in the websocket version of grader instead of relying entirely on docker (and try to preserve the status of an on-going job as long as possible)
- add some kind of draining mechanism in API to temporarily block incoming grading requests when we are expecting a restart to happen (e.g. deploying new version)
from broadway.
Nice idea. We would need to drain the queue before we can shutdown the API.
from broadway.
Related Issues (16)
- Eventual Jepsen Testing
- Nice to Have: Deploy script
- Separate runner logic from grader HOT 2
- Can we get rid of the need to run as root? HOT 1
- Improve Testing
- Adding Tests + CI HOT 7
- Improve Linter Checks HOT 2
- Specify Worker ID HOT 1
- Merge broadway-api and broadway-grader into one repository and tag releases HOT 4
- No load-balancing for websocket workers
- Worker stats are reset when workers reconnect through websocket
- Starvation may occur when scheduling with multiple courses
- Moving to docker swarm
- Grader dies while running job
- Add feature to block a grader from getting jobs or force a job to a grader HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadway.