Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending Mail job stays queued status #75

Open
BasvanH opened this issue Oct 18, 2022 · 0 comments
Open

Sending Mail job stays queued status #75

BasvanH opened this issue Oct 18, 2022 · 0 comments

Comments

@BasvanH
Copy link

BasvanH commented Oct 18, 2022

Hello,

I wish to track mail sending using Illuminate\Mail\Mailable. I do get an entry for the job in the job_statuses table, but the status remains queued while the job is executed. I use database as queue driver.

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Imtigger\LaravelJobStatus\Trackable;

class SendMail extends Mailable
{
    use Queueable, SerializesModels, Trackable;

    public function __construct()
    {
        $this->onQueue('default');
        $this->prepareStatus();
    }

    public function build() {
        $this->subject('Test)->view('emails.test_view');
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant