﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32872	Parallel Unit tests fail to clone DBs with TimescaleDB	Kenneth Fortner	nobody	"If you use a TimescaleDB and run your unit tests in parallel Django will fail to clone the first test database to the additional databases.
{{{
Cloning test database for alias 'foo' ('foo_testDB')...Got an error creating the test database: source database ""foo_testDB"" is being accessed by other users
DETAIL: There is 1 other session using the database.

#### DB Section
DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'HOST': 'timescale',
            'USER': ""user"",
            'NAME': 'fooDB',
            'PASSWORD': ""pwd"",
            'PORT': '5432',
            'TEST': {
               'NAME': foo_testDB
            }
 }


#### Test call
python manage.py test --parallel 4
}}}"	New feature	closed	Database layer (models, ORM)	3.2	Normal	needsinfo	Timescale		Unreviewed	0	0	0	0	0	0
