Can I run multiple instances of DJ, one on each server and still have queued jobs run one at a time? I.e. if i deploy my rails app with DJ to two servers, and each of them point to the same db, and i have only one queue, what happens? My *hope* is:
1) there are 2 items in the dj queue
2) worker from server 1 polls the db, sees that nothing is running, locks the first job, and starts running it
3) now worker from server 2 polls the db. it sees that there is already 1 job running (and locked), so it *does nothing*. just waits.
4) when the worker from server 1 is done running the first job, then the second job can be picked up by one of the workers
Is this how it works?