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

RFC. Queue config. Set certain pipeline for one or group of jobs #1051

Open
gam6itko opened this issue Aug 5, 2022 · 0 comments
Open

RFC. Queue config. Set certain pipeline for one or group of jobs #1051

gam6itko opened this issue Aug 5, 2022 · 0 comments
Assignees
Milestone

Comments

@gam6itko
Copy link
Contributor

gam6itko commented Aug 5, 2022

In queue.php config we can set job_name to job_handler binding. This is very useful.

    'registry' => [
        'handlers' => [
            'app::ping' => Ping::class,
            'app::user:action' => UserActionJobHandler::class,
        ],
    ],

I suggest to make similar option which sets job_name to rr_pipeline binding.

Now i has many jobs like

$queue->push('foo.*')

But what if i need to send some of them to another pipeline?
Now I need to edit php code in many places.

$this->queue->push('foo.job', [...], Options::onQueue('amqp'));

We need some kind of config to set job_name to rr_pipeline binding.

for examplе

    'registry' => [
        'pipeline' => [
            'app::ping' => 'roadrunner.local',
            'app::user:action' => 'roadrunner.amqp',
        ],
    ],
@butschster butschster self-assigned this Sep 29, 2022
@butschster butschster transferred this issue from spiral/roadrunner-bridge Jan 3, 2024
@butschster butschster added this to the 4.0 milestone Jan 3, 2024
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