根据表更新何时启动DAG
我有一个10-15步骤的DAG流程,当天更新了一个BigQuery表之后,我需要启动。可以使用简单的选择SQL语句检查表:
select * from sample_table where update_date = current_date()
当查询返回值时,我们需要在气流/云作曲家中启动一系列任务。
I have a 10-15 step DAG process that I need to launch after one bigquery table is updated for the current day. The table can be checked with a simple select SQL statement:
select * from sample_table where update_date = current_date()
When that query returns values, then we need to launch a series of tasks in Airflow/Cloud composer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用传感器节点创建另一个DAG,该传感器节点检查BigQuery表格以获取当天的更新。
在更新表的地方,请使用TriggerDagrunoperator触发您的DAG。
如果您的大查询表的更新是不可预测的,则可以按计划运行此主管DAG
Create another DAG with a sensor node which checks the bigquery table for updates for the current day.
Where the table was updated, use the TriggerDagRunOperator to trigger your dag.
You can run this supervisor dag on schedule if the update to your big query table is not predictable