Skip to content
Discussion options

You must be logged in to vote

Hi @ssillaots-boku - When using dbt assets, the run launched by Dagster is leveraging a dbt CLI invocation with the --select flag, which means that a single Dagster run selecting multiple dbt assets will always be invoked with a command like dbt run --select some_model another_model last_model.

To break your run statement in three, you'll need to create your own asset selections and jobs to launched individual Dagster runs. You can use schedules and sensors to orchestrate everything:

@dbt_assets(manifest=manifest)
def my_dbt_assets(...):
    yield from dbt.cli(...)

# Create the asset selections and jobs
some_model_job = define_asset_job(
    name="some_model_job",
    selection=build_dbt…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ssillaots-boku
Comment options

Answer selected by garethbrickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
integration: dbt Related to dagster-dbt
2 participants