© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Al

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
--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)
->job(ImportTasksJob::class)
. However, this modification also had no impact.

In the
beforeFill
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.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Import action trigger job after import
FilamentFFilament / ❓┊help
2y ago
Problem with Import Action - Import job never completes
FilamentFFilament / ❓┊help
2y ago
Import Action Job Batch not Running
FilamentFFilament / ❓┊help
3y ago
How to disable previous action
FilamentFFilament / ❓┊help
15mo ago