Check out this one
Feb 9, 2017
2
Level 22
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?
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.