A
A
Antonio Solo2018-07-27 11:31:49
Laravel
Antonio Solo, 2018-07-27 11:31:49

How to get task ID when queuing Laravel?

put the task in the queue

$job = (new \App\Jobs\DataProcessing($filename))->onQueue('q1');
        app(Dispatcher::class)->dispatch($job);

after that, the task is already physically present in the queue (in the mySQL table)
is it possible to find out the task number using some standard Laravel tools?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vism, 2018-07-27
@solotony

Ok, you know how to use the search :)
And now please print out what app(Dispatcher::class)->dispatch($job);
Wardump returns to you please!

M
mShpakov, 2018-07-27
@mShpakov

Try this
and this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question