Fix concurrency handling in order to avoid that some workers get the same task at the same time.
Merge pull request #346 from dokime7/master

Fix concurrency handling in order to avoid that some workers get the same task at the same time.