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

Problem in running scheduled jobs #15

Open
rightphp opened this issue Feb 11, 2021 · 0 comments
Open

Problem in running scheduled jobs #15

rightphp opened this issue Feb 11, 2021 · 0 comments

Comments

@rightphp
Copy link

I have used it all according to the documentation and videos on youtube. Found it all working on web but errors when I run scheduled tasks.

Following are the errors:

Illuminate\Contracts\Container\BindingResolutionException: Exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Target class [tenant] does not exist.' in /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:832
in Illuminate\Container\Container::build called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php (712)
in Illuminate\Container\Container::resolve called at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php (826)
in Illuminate\Foundation\Application::resolve called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php (651)
in Illuminate\Container\Container::make called at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php (811)
in Illuminate\Foundation\Application::make called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php (1354)
in Illuminate\Container\Container::offsetGet called at /var/www/html/app/Providers/TenancyProvider.php (40)
in App\Providers\TenancyProvider::App\Providers\{closure} called at ? (?)
in call_user_func called at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php (280)
in Illuminate\Queue\Queue::withCreatePayloadHooks called at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php (151)
in Illuminate\Queue\Queue::createObjectPayload called at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php (127)
in Illuminate\Queue\Queue::createPayloadArray called at /var/www/html/vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Queue/RabbitMQQueue.php (567)
in VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue::createPayloadArray called at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php (105)
in Illuminate\Queue\Queue::createPayload called at /var/www/html/vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Queue/RabbitMQQueue.php (125)
in VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue::push called at /var/www/html/vendor/vladimir-yuldashev/laravel-queue-rabbitmq/src/Horizon/RabbitMQQueue.php (44)
in VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue::push called at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Queue.php (57)
in Illuminate\Queue\Queue::pushOn called at /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php (244)
in Illuminate\Bus\Dispatcher::pushCommandToQueue called at /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php (227)
in Illuminate\Bus\Dispatcher::dispatchToQueue called at /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php (77)
in Illuminate\Bus\Dispatcher::dispatch called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Schedule.php (168)
in Illuminate\Console\Scheduling\Schedule::dispatchToQueue called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Schedule.php (140)
in Illuminate\Console\Scheduling\Schedule::Illuminate\Console\Scheduling\{closure} called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (36)
in Closure::__invoke called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (36)
in Illuminate\Container\BoundMethod::Illuminate\Container\{closure} called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php (40)
in Illuminate\Container\Util::unwrapIfClosure called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (93)
in Illuminate\Container\BoundMethod::callBoundMethod called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (37)
in Illuminate\Container\BoundMethod::call called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php (610)
in Illuminate\Container\Container::call called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Scheduling/CallbackEvent.php (79)
in Illuminate\Console\Scheduling\CallbackEvent::run called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php (143)
in Illuminate\Console\Scheduling\ScheduleRunCommand::runEvent called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php (102)
in Illuminate\Console\Scheduling\ScheduleRunCommand::handle called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (36)
in Illuminate\Container\BoundMethod::Illuminate\Container\{closure} called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php (40)
in Illuminate\Container\Util::unwrapIfClosure called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (93)
in Illuminate\Container\BoundMethod::callBoundMethod called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php (37)
in Illuminate\Container\BoundMethod::call called at /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php (610)
in Illuminate\Container\Container::call called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php (136)
in Illuminate\Console\Command::execute called at /var/www/html/vendor/symfony/console/Command/Command.php (256)
in Symfony\Component\Console\Command\Command::run called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php (121)
in Illuminate\Console\Command::run called at /var/www/html/vendor/symfony/console/Application.php (971)
in Symfony\Component\Console\Application::doRunCommand called at /var/www/html/vendor/symfony/console/Application.php (290)
in Symfony\Component\Console\Application::doRun called at /var/www/html/vendor/symfony/console/Application.php (166)
in Symfony\Component\Console\Application::run called at /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php (93)
in Illuminate\Console\Application::run called at /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php (129)
in Illuminate\Foundation\Console\Kernel::handle called at /var/www/html/artisan (37)

Please suggest what can be done to run scheduled jobs?

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

1 participant