Merge branch '1576-db-before-signing-in' into 'master'

Retry database tasks after signing in

Closes #1576

See merge request !1131
Status Job ID Name Coverage
  Test
canceled #3646
test

 
  Check Reproducibility
canceled #3647
test_reproducible