esl/jobs — pull request #12 by jlouis (2012-03-12 20:21:46+00:00)
Title: Eqc queue

Fix `jobs_queue`'s timeout/1,2 calls. Provide EQC model for doing it.

I implemented an EQC model to test `jobs_queue` and `jobs_queue_list`. Everything worked, sans the `jobs_queue` module timedout out from the tail (in) end and not the head (out) end. This is now fixed and we pass 1000 tests routinely. Also while here, fix the calculation of the `oldest_job` value which was also wrong. We can simply ask for it since it is always the head element. A single lookup after evicting a large amount of elements is probably not going to kill us more than to maintain the OJ parameter in `find_expired/N`.

While here, make it possible to observe the queues. And also provide a TODO file for what needs more work.