Skip to content

Commit

Permalink
prevent job retry
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Oct 7, 2024
1 parent 53b9967 commit f937f2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Filament/Imports/PointImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Models\Point;
use App\Models\PointGroup;
use App\Models\ServiceType;
use Carbon\CarbonInterface;
use Filament\Actions\Imports\ImportColumn;
use Filament\Actions\Imports\Importer;
use Filament\Actions\Imports\Models\Import;
Expand Down Expand Up @@ -143,6 +144,11 @@ public static function getColumns(): array
];
}

public function getJobRetryUntil(): ?CarbonInterface
{
return null;
}

public function resolveRecord(): ?Point
{
$this->data['location'] = new PointObject((float) $this->data['latitude'], (float) $this->data['longitude']);
Expand Down

0 comments on commit f937f2f

Please sign in to comment.