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

Laravel 8 / Horizon 5 > "Class 'Laravel\Horizon\JobId' not found" when dispatching a Job #362

Closed
julien-viard-infomaniak opened this issue Sep 19, 2020 · 2 comments
Assignees

Comments

@julien-viard-infomaniak
Copy link

julien-viard-infomaniak commented Sep 19, 2020

  • Laravel 8.5
  • RabbitMQ 3.8.8
  • Package version: 11

Describe the bug

Simple job dispatch is not working:
DummyJob::dispatch(['dispatch' => 'dispatch']);

Same with a queue push:
Queue::push(new DummyJob(['push' => 'push']));

Steps To Reproduce

What steps needed, to reproduce this bug.

Current behavior

"Class 'Laravel\Horizon\JobId' not found"
vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Queue/RabbitMQQueue.php(536): VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue->getRandomId()

Expected behavior

With horizon 5 JobId class has gone, was here with horizon 4

How to fix

Adding class JobId and put an alias of App\Library\Horizon\JobId is class does not exist.

@nathan-io
Copy link

We're also experiencing this issue.

vladimir-yuldashev/laravel-queue-rabbitmq v11.0.0
laravel/framework v8.4.0
RabbitMQ version: 3.8.7

@vyuldashev
Copy link
Owner

Fixed in 11.0.1

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

No branches or pull requests

3 participants