Skip to content
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

dbt should reset adapters in handle_and_check #1138

Closed
beckjake opened this issue Nov 16, 2018 · 1 comment
Closed

dbt should reset adapters in handle_and_check #1138

beckjake opened this issue Nov 16, 2018 · 1 comment
Milestone

Comments

@beckjake
Copy link
Contributor

Issue

dbt does not reset adapters during handle_and_check and multiple invocations result in an invalid cache.

Issue description

if you import dbt and used it to run multiple invocations in a row from the same process space, the adapters (and therefore cache) will be re-used. The cache makes some optimizations about what to track based on dbt's run ordering guarantees, and those guarantees aren't valid across multiple invocations.

Results

dbt made wrong assertions about the state of the world and crashed.

System information

dbt 0.12.1, all OSes

Steps to reproduce

  • from dbt.main import handle_and_check
  • handle_and_check(args1)
  • handle_and_check(args2)

Where args1/args2 are things like ['run'] and ['archive'].

@beckjake beckjake added this to the Grace Kelly milestone Nov 16, 2018
beckjake added a commit that referenced this issue Nov 20, 2018
…y-issues

Fix run repeatability/caching issues (#1138, #1139, #1140)
@beckjake
Copy link
Contributor Author

Fixed in #1144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant