Comments (2)
Basically as it is done here:
Anubis/api/anubis/k8s/pipeline.py
Lines 175 to 241 in a075c56
Just need to lock the IDE resource as the submissions are locked here. We may want to formalize the way the locks are done here a bit. Maybe make a single function for creating the lock and releasing the lock. There is also a syncronize
function in pottery. Maybe a decorator like this with argument based locking (like hash the values of the arguments to create the key).
>>> from pottery import synchronize
>>> @synchronize(key='synchronized-func', masters={redis}, auto_release_time=1.5, blocking=True, timeout=-1)
... def func():
... # Only one thread can execute this function at a time.
... return True
...
>>> func()
True
>>>
from anubis.
from anubis.
Related Issues (20)
- ADD resume to live autograde assignments HOT 1
- ADD new user injest HOT 1
- CLN optimize number of images HOT 1
- ADD image aware scheduling with node affinity
- ADD volume backup interface for students
- Question - "congratulations" but still displayed incomplete HOT 2
- BUG Project Task Boards Not Public HOT 3
- BUG color map for get_usage_plot exausted HOT 1
- BUG ordering of commits in a single should be preserved
- Forum Database
- Forum seed debug data
- Forum public post endpoints
- Forum admin endpoints
- Forum web components HOT 4
- Forum wire web
- Forum email notifications
- FIX 404 page not found with make debug HOT 4
- Overflow on post page
- Question - Link Github Account Error HOT 2
- BUG - Github OAuth Connection Failure HOT 5
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 anubis.