Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nagavinod424's avatar

how to check cron queue:work command working or not?

I have created a Queue to send Emails to the subscribers

class NotifySubscriber extends Notification implements ShouldQueue {

use Queueable;

protected $post;

/**
 * Create a new notification instance.
 * @param Post $post
 */

public function __construct(Post $post)
{

    $this->post = $post;

}

/**
 * Get the mail representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return \Illuminate\Notifications\Messages\MailMessage
 */

public function toMail($notifiable)
{
    //sending mail
}

}

created a cron job on a godaddy shared hosting

***** php path/artisan schedule:run >> /dev/null 2>&1

then added queue:work command in App\Console\Kernel

$schedule->command('queue:work')->timezone('Asia/Kolkata')->everyFiveMinutes();

but jobs are not working can any one help?

0 likes
2 replies
nagavinod424's avatar
nagavinod424
OP
Best Answer
Level 22

I am using cron jobs for the first time but now i solved my problem i haven't

give the path to the php executable in hosting that's why it did not worked

now it is working fine Thank u All.

Please or to participate in this conversation.