You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'].
The text was updated successfully, but these errors were encountered:
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']
.The text was updated successfully, but these errors were encountered: