Laravel-Queue-Monitor icon indicating copy to clipboard operation
Laravel-Queue-Monitor copied to clipboard

No purge and queued_at empty

Open bessone opened this issue 1 year ago • 1 comments

Hello,

the purge procedure does not delete anything, checking in the database I noticed that in my table the queued_at field is always empty.

I configured my job with the IsMonitored trait as written in the README, looking in the code I saw that my job is inserted into the queue monitor at this point: https://github.com/romanzipp/Laravel-Queue-Monitor/blob/9acafc2e6953e914f87b2be6b71c5e1d51296cf1/src/Services/QueueMonitor.php#L209

In this updateOrCreate the queued_at is not set, my model is created at this time, so the queued_at remains empty.

And the purge command relies on this date to delete, so nothing is ever deleted.

Am I doing something wrong in the configuration or do I need to correct the code to insert the queued_at also in this point?

Thanks!

bessone avatar Nov 27 '24 09:11 bessone

Probably related to https://github.com/laravel/framework/issues/52689

Apparently queues with database driver do not trigger JobQueued event

bessone avatar May 27 '25 09:05 bessone