luceos it appears it's still not working...
I created an extender:
use Flarum\Extend\ExtenderInterface;
use Flarum\Extension\Extension;
use Illuminate\Contracts\Container\Container;
use Illuminate\Database\ConnectionResolverInterface;
use Illuminate\Queue\Failed\DatabaseFailedJobProvider;
class BindQueueFailer implements ExtenderInterface
{
public function extend(Container $container, Extension $extension = null)
{
$container->bind('queue.failer', function () use ($container) {
return new DatabaseFailedJobProvider(
$container->make(ConnectionResolverInterface::class),
'flarum',
'queue_failed'
);
});
}
}
Which I'm pretty sure is executed because with my advanced PHP skills I put a die()
and it did die 🙂
The migration was run and the queue_failed
table is there.
I run php flarum queue:work
and made a job fail:
[2021-02-25 13:21:49][jaNSua02JCkpUeEP30Usn4bPJqZ2mGxl] Processing: Flarum\Notification\Job\SendNotificationsJob
[2021-02-25 13:21:49][jaNSua02JCkpUeEP30Usn4bPJqZ2mGxl] Processed: Flarum\Notification\Job\SendNotificationsJob
[2021-02-25 13:21:49][NqDgK5eQotXESgiS1qToWFhNfQ2CKIpz] Processing: Flarum\Notification\Job\SendEmailNotificationJob
[2021-02-25 13:21:49][NqDgK5eQotXESgiS1qToWFhNfQ2CKIpz] Failed: Flarum\Notification\Job\SendEmailNotificationJob
[2021-02-25 13:21:49][7WzqpIpXQe4KRPWLWdc6d6PFfJONWYOH] Processing: Flarum\Subscriptions\Job\SendReplyNotification
[2021-02-25 13:21:49][7WzqpIpXQe4KRPWLWdc6d6PFfJONWYOH] Processed: Flarum\Subscriptions\Job\SendReplyNotification
The table is still empty. Something I could look at? 😅
Thanks! 😃