HomePhabricator

only connect on init when needed

Description

only connect on init when needed

Summary:
nit pick feedback on D5982,

this connect call has a cost (depending on network distance to DBs), at least in the non-dagit code paths when pooling isn't on so only do it when needed

Test Plan: bk

Reviewers: dgibson

Reviewed By: dgibson

Differential Revision: https://dagster.phacility.com/D5996

Details

Provenance
alangenfeldAuthored on Jan 14 2021, 4:01 PM
Reviewer
dgibson
Differential Revision
D5996: only connect on init when needed
Parents
R1:7131e16629de: Disable gRPC watch threads for 0.10.0
Branches
Unknown
Tags
Unknown