Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Delay connection to Snowflake until needed #58

Merged
merged 4 commits into from
Jan 4, 2023
Merged

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Jan 3, 2023

User wanted to be able to use SnowflakeConnector purely to populate the dbt profile and then run dbt; however, in recent PRs, a connection started whenever SnowflakeConnector was instantiated.

This PR delays starting a connection until required.

Originally from https://prefect-community.slack.com/archives/CL09KU1K7/p1672777811532289?thread_ts=1671766851.641279&cid=CL09KU1K7

Example

Screenshots

Checklist

  • References any related issue by including "Closes #" or "Closes ".
    • If no issue exists and your change is not a small fix, please create an issue first.
  • Includes tests or only affects documentation.
  • Passes pre-commit checks.
    • Run pre-commit install && pre-commit run --all locally for formatting and linting.
  • Includes screenshots of documentation updates.
    • Run mkdocs serve view documentation locally.
  • Summarizes PR's changes in CHANGELOG.md

@ahuang11 ahuang11 changed the title Dont start connection Delay connection to Snowflake until needed Jan 3, 2023
@ahuang11 ahuang11 merged commit c6f54ad into main Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants