romanzipp / Laravel-Queue-Monitor

Monitoring Laravel Jobs with your Database
https://packagist.org/packages/romanzipp/laravel-queue-monitor
MIT License
696 stars 92 forks source link

New Job is not creating when using isMonitored #26

Closed KasparWe closed 4 years ago

KasparWe commented 4 years ago

Hey,

just got following issue:

when dispatching a new job with ExampleJob::dispatch() while using use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, IsMonitored; in the job class, the job is not getting created in the database. There is no error in the log.

When removing IsMonitored from use inside job class it's working.

Any ideas?

Thank you!

pamekar commented 4 years ago

Same problem here. Exact scenario.

romanzipp commented 4 years ago

Could you set up a bare-bone Laravel application for reproduction purposes?

romanzipp commented 4 years ago

Is the job created when using ExampleJob::dispatchNow() or dispatching the job via the dispatch(new ExampleJob) helper?

romanzipp commented 4 years ago

Are you implementing the Illuminate\Contracts\Queue\ShouldQueue interface? I was able to reproduce this issue when the dispatched job does not implement the queue contract.