toniq icon indicating copy to clipboard operation
toniq copied to clipboard

Job Priority

Open tlvenn opened this issue 8 years ago • 3 comments

Hi,

Would it be possible to add a notion of job priority when enqueuing a job ? There are many use cases where this would be very useful.

Thanks.

tlvenn avatar Jun 02 '16 12:06 tlvenn

That would be a nice feature to have.

I'll certainly accept a pull request that adds it :)

As for how to do it, I don't know exactly. It would be somewhere in JobRunner.run_job.

joakimk avatar Jun 17 '16 20:06 joakimk

Now that we have Erlang queue to deal with jobs, couldnt we just plug something like this https://github.com/okeuday/pqueue ?

tlvenn avatar Jun 18 '16 07:06 tlvenn

That could work. The tests should ensure adding such a thing does not break anything else.

I don't need it myself right now and I'm working on other projects on my spare time, but as I said, I will accept pull requests for this if anyone feels like adding it.

joakimk avatar Sep 25 '16 09:09 joakimk