Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gam6itko opened this issue Jan 11, 2023 · 0 comments
Open

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

gam6itko opened this issue Jan 11, 2023 · 0 comments
Assignees

Comments

@gam6itko
Copy link

gam6itko commented Jan 11, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants