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

First time i open tinker, i have to dispatch a job twice to get it pushed to queue #168

Closed
ekstremedia opened this issue Oct 9, 2023 · 1 comment

Comments

@ekstremedia
Copy link

ekstremedia commented Oct 9, 2023

Tinker Version

2.5

Laravel Version

8.83

PHP Version

8.2

Database Driver & Version

No response

Description

I have noticed that if i open php artisan tinker, to dispatch a job to test it, every first time i dispatch a job like this:

\App\Jobs\CreateDailyFamacStatistics::dispatch();

Nothing happens.
If I do it one more time, the job is dispatched and added to queue. Right now this is happening on my reported versions but also on laravel 10 on other projects.

Subsequently they are dispatched every time i run the command. Its only the first time i start tinker i have to do it twice.

Steps To Reproduce

php artisan tinker
dispatch a job

@driesvints
Copy link
Member

Please see the docs here: https://laravel.com/docs/10.x/artisan#usage

Screenshot 2023-10-09 at 11 18 04

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

2 participants