[CI] fix invalid 'when' key in cache

3 jobs for polymorphic-worker in 14 minutes and 48 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #14062
build

00:07:36

 
  Unit Tests
passed #14063
unit-tests

00:03:37

 
  Integration Tests
failed #14064
integration-tests

00:03:34

 
Name Stage Failure
failed
integration-tests Integration Tests
        Use -p '/can process two jobs/' to rerun this test only.
after job with error, continue with another one: FAIL (1.09s)
uncaught exception: SomePostgreSqlException
SqlError {sqlState = "23505", sqlExecStatus = FatalError, sqlErrorMsg = "duplicate key value violates unique constraint \"pg_namespace_nspname_index\"", sqlErrorDetail = "Key (nspname)=(pgmq) already exists.", sqlErrorHint = ""}
Use -p '/after job with error, continue with another one/' to rerun this test only.

12 out of 13 tests failed (1.99s)
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1