Comments (2)
You're probably doing something like:
@dbt_assets(manifest=...)
def my_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource):
...
yield from dbt.cli(["source", "freshness"], raise_on_error=False).stream()
But we're not supposed to yield any events from dbt source freshness
anyways since those are related to dbt sources. We only want to yield events on dbt model materializations and dbt tests.
As a workaround, you could just call .wait()
instead. This way, your dbt command is still invoked, but no events are yielded.
@dbt_assets(manifest=...)
def my_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource):
...
dbt.cli(["source", "freshness"], raise_on_error=False).wait()
In the future, we still want the .stream()
to work with dbt source freshness
, even though it will do nothing. #20315 will resolve that.
from dagster.
Thanks Rex. I missed that and glad that was merged!
from dagster.
Related Issues (20)
- DagsterDbtTranslator.get_asset_key / get_group_name should be non-static HOT 1
- AttributeError: 'AssetLayer' object has no attribute 'assets_def_for_asset' HOT 2
- Error In Custom User Deployment Image Doesn't Print Source Code
- azureBlobComputeLogManager not working HOT 1
- Inability to use list of resources as field on resource
- Invalid k8s pod names generated when asset name contains uppercase characters
- Resource key for io_manager not found, despite being defined in resources HOT 3
- Handling of job timeout error HOT 1
- Job doesn't retry if code-location user code server temporarily unreachable HOT 1
- Job fails to retry without any hints as to why HOT 2
- Deployment Ops overview inconsistent source asset naming compared to asset HOT 1
- load_asset_checks_from_package_module() seems to be broken after ugrading HOT 3
- Pop up window shown below `view full message` window
- Reload the code location files without redeploying the code location repository HOT 2
- New additional DAG files in the code location repository are not visible in the Dagster Cloud UI. HOT 1
- [dagster-dbt] `dagster.log_column_level_metadata()` post-hook causes CI failure HOT 1
- Op_tags per partition HOT 1
- Broken Hyperlint Configuration
- Broken Hyperlint Configuration
- Broken Hyperlint Configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagster.