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

Document thread_id context var #3614

Closed
1 task done
NiallRees opened this issue Jun 25, 2023 · 1 comment · Fixed by #3729
Closed
1 task done

Document thread_id context var #3614

NiallRees opened this issue Jun 25, 2023 · 1 comment · Fixed by #3729
Assignees
Labels
dbt-core v1.6 Docs impact for the v1.6 release (July 2023) enhancement Use to add new features to the docs

Comments

@NiallRees
Copy link
Contributor

Contributions

  • I have read the contribution docs, and understand what's expected of me.

What page(s) or areas on docs.getdbt.com are affected?

https://docs.getdbt.com/reference/dbt-jinja-functions

What changes are you suggesting?

Add page for new thread_id context var dbt-labs/dbt-core#7942

Additional information

No response

@NiallRees NiallRees added the engineering improvement that requires site engineering help or back up label Jun 25, 2023
@jtcohen6 jtcohen6 added idea Proposes an idea for new content blocked_by_dev Awaiting merge of PR with associated functionality dbt-core v1.6 Docs impact for the v1.6 release (July 2023) labels Jun 25, 2023
@dbeatty10 dbeatty10 added enhancement Use to add new features to the docs and removed blocked_by_dev Awaiting merge of PR with associated functionality engineering improvement that requires site engineering help or back up labels Jun 28, 2023
@dbeatty10 dbeatty10 changed the title Document thread_id context var Document thread_id context var Jul 13, 2023
@dbeatty10 dbeatty10 self-assigned this Jul 13, 2023
@dbeatty10
Copy link
Contributor

The new documentation page for thread_id would be similar to invocation_id or run_started_at.

dbeatty10 added a commit that referenced this issue Jul 14, 2023
resolves #3614


[Preview](https://deploy-preview-3729--docs-getdbt-com.netlify.app/reference/dbt-jinja-functions/thread_id)

## What are you changing in this pull request and why?

dbt-labs/dbt-core#7942 /
dbt-labs/dbt-core#7941

This new `thread_id` context variable works in query tags because it's
set by the (Python) worker thread.

### Utility

[Comment](dbt-labs/dbt-core#7942 (comment)):
> @NiallRees you're my hero.
> 
> https://getdbt.slack.com/archives/C2JRRQDTL/p1656203829761049

## 🎩 

<img width="700" alt="image"
src="https://github.com/dbt-labs/docs.getdbt.com/assets/44704949/11ab64e8-f257-4981-b072-aac0b7b434ed">

## Checklist
- [x] Add versioning components, as described in [Versioning
Docs](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-entire-pages)
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/guides/migration/versions)
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [ ] Confirm that the bullet points are actually true
- [x] ~Add page to `website/sidebars.js`~ didn't do this because it
appeared unecessary
- [x] Provide a unique filename for the new page

---------

Co-authored-by: mirnawong1 <[email protected]>
@runleonarun runleonarun removed the idea Proposes an idea for new content label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt-core v1.6 Docs impact for the v1.6 release (July 2023) enhancement Use to add new features to the docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants