Tested with Drupal 8.8.1, batch synchronization does not work and triggers a LogicException.

The error message is :
"LogicException : The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution."

I have added a patch to fix this.
Due to the use the dependency injection container, we need to use DependencySerializationTrait in addition of StringTranslationTrait

Comments

Valery Gouleau created an issue. See original summary.

gval’s picture

Issue summary: View changes
gval’s picture

Issue summary: View changes

  • sadashiv committed 7ea424a on 8.x-1.x authored by gval
    Issue #3112795 by gval: LogicException : The database connection is not...
sadashiv’s picture

Status: Patch (to be ported) » Fixed

Thanks for the patch, have pushed this to the branch.

Thanks,
Sadashiv

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.