diff --git a/backend/data/src/main/kotlin/io/tolgee/batch/BatchJobActionService.kt b/backend/data/src/main/kotlin/io/tolgee/batch/BatchJobActionService.kt index 8725d5dfe3..cba1f53ab3 100644 --- a/backend/data/src/main/kotlin/io/tolgee/batch/BatchJobActionService.kt +++ b/backend/data/src/main/kotlin/io/tolgee/batch/BatchJobActionService.kt @@ -85,15 +85,17 @@ class BatchJobActionService( savePointManager.rollbackSavepoint(savepoint) // we have rolled back the transaction, so no targets were actually successfull lockedExecution.successTargets = listOf() + entityManager.clear() rollbackActivity() } progressManager.handleProgress(lockedExecution) - entityManager.persist(lockedExecution) + entityManager.persist(entityManager.merge(lockedExecution)) if (lockedExecution.retry) { retryExecution = util.retryExecution entityManager.persist(util.retryExecution) + entityManager.flush() } logger.debug("Job ${batchJobDto.id}: ✅ Processed chunk ${lockedExecution.id}") diff --git a/e2e/cypress/e2e/projects/projectMembers.cy.ts b/e2e/cypress/e2e/projects/projectMembers.cy.ts index 6dcfa19184..eec1b6ff1c 100644 --- a/e2e/cypress/e2e/projects/projectMembers.cy.ts +++ b/e2e/cypress/e2e/projects/projectMembers.cy.ts @@ -113,7 +113,7 @@ describe('Project members', () => { ); }); - it.only('selects Translate role for the user', () => { + it('selects Translate role for the user', () => { visitProjectMembers(info.project.id); openMemberSettings('me@me.me'); permissionsMenuSelectRole('Translate', { languages: ['Czech'] });