Page MenuHomePhabricator

only connect on init when needed
ClosedPublic

Authored by alangenfeld on Jan 14 2021, 4:03 PM.

Details

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

Diff Detail

Repository
R1 dagster
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.