Skip to content

Commit

Permalink
#1086 Add message for no data alert
Browse files Browse the repository at this point in the history
  • Loading branch information
chmnata committed Dec 3, 2024
1 parent b3df6d9 commit 0fe86f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/bluetooth_check_readers_temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def blip_pipeline():
pipeline_check = SQLCheckOperatorWithReturnValue(
task_id = 'pipeline_check',
conn_id = 'bt_bot',
sql = '''SELECT (COUNT(*) > 0) AS "_check"
sql = '''SELECT (COUNT(*) > 0) AS "_check",
'There are no data inserted for '|| '{{ ds }}' AS msg
FROM bluetooth.aggr_5min
WHERE datetime_bin >='{{ ds }}' and datetime_bin < '{{ tomorrow_ds }}'
LIMIT 1'''
Expand Down

0 comments on commit 0fe86f1

Please sign in to comment.