Earlopain / FoxTrove

E6 Upload Helper
GNU General Public License v3.0
6 stars 3 forks source link

Add manual IQDB queries to the front of the queue #64

Closed faucetlol closed 1 year ago

faucetlol commented 1 year ago

Would it be possible to add manual IQDB queries to the front of the queue when hitting the UREV button? Sometimes I have a few thousand things in the queue and it's not very fun waiting for them to all complete before I can update a single image.

Earlopain commented 1 year ago

That's a reasonable request, and I had the same though previously as well. From what I can remember it was not trivial when using sidekiq, but goodjob seems to suport a priority keyword when adding to queues (or it's just a ActiveJob thing, not sure). Either way, it should be easy to add now.

Earlopain commented 1 year ago

Job adapters can choose to support the priority parameter on a per queue or job basis, or not at all. Sidekiq does per queue, GoodJob per job which helps immensely for this. Learned something new about ActiveJob backends, I though it's a universal interface, but job adapters can choose to implement what they want.

This feels incredibly good to use, thanks for requesting!