saurabhnanda / odd-jobs

Haskell job queue with admin UI and loads of other features.
https://www.haskelltutorials.com/odd-jobs/
BSD 3-Clause "New" or "Revised" License
75 stars 29 forks source link

Add test for testing the ordering of failures #77

Closed jappeace closed 3 years ago

jappeace commented 3 years ago

This test will ensure that previous failed attempts get pushed to the back of the queue.

Related to #75

saurabhnanda commented 3 years ago

It might be simpler to test the results of executing jobPollingSql directly after creating a few jobs and changing their attempts count in the DB. (No need to start the job-monitor) in the test for this scenario.

saurabhnanda commented 3 years ago

Thanks for the PR @jappeace . Merged!