Fix bug in DeploymentState.get_or_create

1 job for deployment-mode in 1 minute and 24 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #298394
test

00:01:24

96.0%