https://dagster.io/ logo
Title
m

Max Rostron

03/24/2023, 2:30 PM
Hi - I'm new to dagster, so easy question, I'm just finding the docs hard to understand. I have a DBT query which currently produces a BigQuery table each day '`daily_status_table`'. Does anybody have a rough code snippet for an op which: • Triggers when
daily_status_table
is run successfully. • Takes the first row of data. • Posts this as a slack message to a channel. I can't find many docs around dagster-slack at the moment. I just need a nudge in the right direction. Thank you! 🙂
a

Andrea Giardini

03/24/2023, 2:54 PM
j

jamie

03/24/2023, 3:05 PM
yep! A sensor is the right thing here! You can set up the sensor to run whenever the dbt query completes, and within that sensor you could set up a connection to bigquery and make a slack post, or you could kick off a run of an op that does the same thing, whatever makes more sense to you. the dagster-slack library mainly contains sensors that will send a standard slack message if an asset/op fails, or has another user provided status
m

Max Rostron

03/24/2023, 3:11 PM
Ahhh that's grand! Thank you