spinther
spinther
FFilament
Created by spinther on 4/21/2024 in #❓┊help
How to debug failed rows in an Exporter?
I can't find a way to figure out why some rows are failing to export. Export has a getFailedRowsCount that counts the failed rows but there is no way to debug the issue that is causing the failure. Nothing is being logged in laraverl.log or in the queue job process.
2 replies
FFilament
Created by spinther on 1/27/2024 in #❓┊help
How to disable import action job retries?
I'm relatively new to handling jobs and queues in Laravel. Despite my efforts, the jobs related to the import action repeatedly fail and continue retrying. I attempted to limit retries by using --tries=1 on the worker, but this didn't change the outcome. Additionally, I modified the default job class as follows:
<?php

namespace App\Jobs;

use Carbon\CarbonInterface;
use Filament\Actions\Imports\Jobs\ImportCsv;

class ImportTasksJob extends ImportCsv
{
public function getJobRetryUntil(): ?CarbonInterface
{
return now()->addSecond(1);
}
}
<?php

namespace App\Jobs;

use Carbon\CarbonInterface;
use Filament\Actions\Imports\Jobs\ImportCsv;

class ImportTasksJob extends ImportCsv
{
public function getJobRetryUntil(): ?CarbonInterface
{
return now()->addSecond(1);
}
}
Added ->job(ImportTasksJob::class). However, this modification also had no impact. In the beforeFill method:
protected function beforeFill(): void
{
try {
// do something
} catch (\Exception $e) {
// The job keeps retrying endlessly when an error occur
throw $e;
}
}
protected function beforeFill(): void
{
try {
// do something
} catch (\Exception $e) {
// The job keeps retrying endlessly when an error occur
throw $e;
}
}
The issue persists where the job endlessly retries in the event of an error.
2 replies
FFilament
Created by spinther on 4/22/2023 in #❓┊help
Custom notifications service provider clarification
Hi everyone, I've created a custom notification view and I'm trying to send a custom notification in a CreateResource inside the create() function. I'm confused about where to include Notification::configureUsing(). It's mentioned in the documentation that it should be included in a service provider but I'm not sure where exactly since I want to only show it in a specific CreateResource page. Any clarification would be greatly appreciated.
5 replies