Support the ongoing development of Laravel.io →
posted 9 years ago
Queues

Hi

I have a Job that needs to trigger a new Laravel Job when it has finished. Which method should it use?

$this->dispatch(new ProcessReport($this->report));

Queue::push('SendEmail', array('message' => $message));

The first method is what I would guess from the docs, but this then runs the second Job inside the first Job Object, it looks like from the logs.

Thanks.

tristan

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.