Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Job Priority #20

Open
tlvenn opened this issue Jun 2, 2016 · 3 comments
Open

Job Priority #20

tlvenn opened this issue Jun 2, 2016 · 3 comments

Comments

@tlvenn
Copy link

tlvenn commented Jun 2, 2016

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.

@joakimk
Copy link
Owner

joakimk commented Jun 17, 2016

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.

@tlvenn
Copy link
Author

tlvenn commented Jun 18, 2016

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

@joakimk
Copy link
Owner

joakimk commented Sep 25, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants