[#552] Fix scheduler not changing databases on linux

This commit is contained in:
Théophile Diot 2023-07-05 15:28:42 -04:00
parent 845364b2b6
commit 9eec9e26c9
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ if __name__ == "__main__":
logger.info(
f"Found custom conf env var {'for service ' + custom_conf[0] if custom_conf[0] else 'without service'} with type {custom_conf[1]} and name {custom_conf[2]}"
)
db = Database(logger, config_files.get("DATABASE_URI", None))
else:
docker_client = DockerClient(
base_url=getenv("DOCKER_HOST", "unix:///var/run/docker.sock")