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

Fix: disabling tracking resets invocation ID (#2398) #2400

Merged

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented May 5, 2020

resolves #2398

Description

When dbt disabled tracking, it was creating a whole new User object, which in turn reset the invocation_id and the run_started_at. Instead, if there is an existing user object disable that one "live".

To do so, I added a new entry point, disable_tracking() - this way existing code in dbt.main will still reset the invocation ID as it already did.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label May 5, 2020
- re-use the same active user
- add disable_tracking method that does not reset invocation ID
@beckjake beckjake force-pushed the fix/disabling-tracking-resets-invocation-id branch from b0cfcfb to 869bdc4 Compare May 5, 2020 15:32
@beckjake beckjake requested a review from drewbanin May 5, 2020 15:32
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@beckjake beckjake merged commit 9de9335 into dev/octavius-catto May 5, 2020
@beckjake beckjake deleted the fix/disabling-tracking-resets-invocation-id branch May 5, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invocation_id not the same through the whole dbt run.
2 participants