Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 552 Vote(s) - 3.46 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Queued Laravel jobs all fire simultaneously, and don't show up in the jobs table

#11
You can try again in the following way (I assume that you did instructions in Laravel docs but someday it's not working):

Step 1: drop table 'jobs' in your database.

Step 2: run command 'php artisan migrate' in console to create table 'jobs' again.

Step 3: run command 'php artisan queue:work' in console

Step 4: retry your app

Note that in .env file, you set up:

QUEUE_CONNECTION=database

QUEUE_DRIVER=database

P/s: It works for me!
Reply

#12
## Set `.env`
- `QUEUE_CONNECTION=database`
## Add Migrations
- `php artisan queue:table`
- `php artisan migrate
`
### If you use
- `dispatch(new YourJob($order))->onQueue('queue_name')`
## Finally Run This Command
- `php artisan queue:work --queue=queue_name`
Reply

#13
for use queue you should some work :

in .env file you should change queue_driver from sync to database,
so open .env and do the follow

queue_driver=database

after it you should create queue table in your database with artisan command :

php artisan queue:table
php artisan migrate

and for make sure that no config cached

php artisan config:clear

and finally you should run your queue with `php artisan queue:listen` or `php artisan queue:work`
Reply

#14
I had the same trouble, if you are using **`Laravel 5.7 or above`**, use this in .env file

QUEUE_CONNECTION=database


Next, clear config cache like this

php artisan config:clear

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through