spiral / roadrunner-bridge

🌉 RoadRunner bridge to Spiral Framework
https://spiral.dev/docs/packages-roadrunner-bridge
MIT License
12 stars 6 forks source link

How to push job to certain queue with certain priority? #60

Open gam6itko opened 1 year ago

gam6itko commented 1 year ago

I need something like this

$this->queue(
  name: 'job_name',
  options: Options::onQueue('legacy_pull')->withProperty(10)
);

This Options class has queue property but hasn't priority property https://github.com/spiral/framework/blob/c2de74fd7e5cc3d72232d9b74fd28c528d81fb49/src/Queue/src/Options.php

This Options class has priority property but queue property is missing. Also it's not implements Spiral\Queue\OptionsInterface https://github.com/spiral/roadrunner-jobs/blob/master/src/Options.php

How can I take benefits from both?