-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ReadChunk Job Still runs when all excel rows have been imported #4205
Comments
I'm facing this issue too in Laravel Excel 3.1.55, using Laravel 9.52 and PHP 8.3.8: class TestImport implements ToArray, WithStartRow, SkipsEmptyRows, WithMultipleSheets, WithChunkReading, ShouldQueue
{
public function __construct(private readonly User $user)
{
}
public function array(array $array): void
{
foreach ($array as $index => $row) {
ProcessExcelQuote::dispatch($row, $this->user, $index);
}
}
public function sheets(): array
{
return [
'0' => $this
];
}
public function startRow(): int
{
return 3;
}
public function chunkSize(): int
{
return 10;
}
} After reading a sheet with 3 rows it keeps on reading:
I believe it might have something to do with having created the |
how can we skip the empty rows? |
I'm facing this issue too in Laravel Excel 3.1.55, using Laravel 11.20.0 and PHP 8.3.11 But it's on a job named
I got this problem only while importing multiples files. |
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.30
What version of Laravel are you using?
9.19
What version of PHP are you using?
8.2.0
Describe your issue
Maatwebsite\Excel\Jobs\ReadChunk still runs when all excel rows have been imported
How can the issue be reproduced?
`class BulkConnectExcelImport implements WithMultipleSheets, ShouldQueue, WithChunkReading
{
}`
What should be the expected behaviour?
the job should stop when all rows are successfully uploaded
The text was updated successfully, but these errors were encountered: