Skip to content

Commit

Permalink
Clear EM when field changes exists
Browse files Browse the repository at this point in the history
- fix oom during 2nd api step run
  • Loading branch information
dxops committed Aug 18, 2022
1 parent 0b720f4 commit b0a3266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ImportExport/Writer/AsyncWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ private function createFieldsChanges(int $jobId, array &$data, string $key): boo
->getRepository(FieldsChanges::class)
->findOneBy(['entityId' => $jobId, 'entityClass' => Job::class]);
if ($fieldsChanges) {
$em->clear(FieldsChanges::class);

return false;
}

Expand Down

0 comments on commit b0a3266

Please sign in to comment.