Hi, I need to run specific dbt snapshots as part o...
# troubleshooting
s
Hi, I need to run specific dbt snapshots as part of a scheduled job like “dbt-postgres:snapshot -s some.folder”. This doesn’t work. Seems likeit is not intended to pass args to dbt snapshot. 🤷🏻‍♂️ I can run “meltano invoke dbt-postgres snapshot -s some.folder” with the cli, which works perfectly. Does anyone know how to achieve this with scheduled jobs?
Just found out that one can specify commands for the a plugin like:
Copy code
plugins:
  utilities:
    - name: dbt-snowflake
    variant: dbt-labs
    pip_url: dbt-core~=1.3.0 dbt-snowflake~=1.3.0 git+<https://github.com/meltano/dbt-ext.git@c6a30cac299184bae9424ccf9db8f41b30b27314>
    commands:
      run_views: run --select config.materialized:view
This command may then be used in a task:
Copy code
tasks:
— dbt-snowflake:run_views
…
p
@sebastian_baringer thats right! I was about to suggest what you linked
s
@pat_nadolny thank you anyway. 👍🏻