-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[du] add backoff for duckdb connections #26408
[du] add backoff for duckdb connections #26408
Conversation
@@ -111,6 +125,8 @@ To refactor `taxi_trips` to use the `database` resource, we had to: | |||
conn.execute(query) | |||
``` | |||
|
|||
Notice that we no longer need to use the `backoff` function. The Dagster `DuckDBResource` handles this functionality for us. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for calling this out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seconded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Be sure to links this or comment in the original GitHub issue once this is merged. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some small copyediting suggestions, otherwise LGTM
docs/dagster-university/pages/dagster-essentials/lesson-4/loading-data-into-a-database.md
Outdated
Show resolved
Hide resolved
@@ -111,6 +125,8 @@ To refactor `taxi_trips` to use the `database` resource, we had to: | |||
conn.execute(query) | |||
``` | |||
|
|||
Notice that we no longer need to use the `backoff` function. The Dagster `DuckDBResource` handles this functionality for us. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seconded
## Summary & Motivation Update code snippets for sections 4 and 6 to wrap DuckDB connection in backoff to prevent race conditions when materializing all assets (Not an issue after these assets switch to using resources). ## How I Tested These Changes ## Changelog > Insert changelog entry or delete this section.
Summary & Motivation
Update code snippets for sections 4 and 6 to wrap DuckDB connection in backoff to prevent race conditions when materializing all assets (Not an issue after these assets switch to using resources).
How I Tested These Changes
Changelog