maximos / maximus-web

BlitzMax module manager (website) - API docs at http://maximos.github.io/maximus-web - This project has been abandoned.
MIT License
25 stars 4 forks source link

Use locking so multiple workers can run on the same machine #138

Open Htbaa opened 11 years ago

Htbaa commented 11 years ago

Currently when running multiple workers a race condition can occur when both workers need access to the same repository. When working on a repository the worker should use some kind of locking mechanism that prevents other workers from accessing it. When locked the worker should just sleep and wait. Perhaps Gearman has some feature for denying a task so it can get queued again.