ZhangZhihui's Blog  
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 116 下一页

2025年12月15日

摘要: from __future__ import annotations import logging from datetime import datetime from airflow.sdk import dag, task log = logging.getLogger(__name__) @d 阅读全文
posted @ 2025-12-15 10:27 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0)

2025年12月12日

摘要: ✅ 1. Operators (Classic style) Tasks are created explicitly using Operator classes like BashOperator, PythonOperator, ShortCircuitOperator, etc. Examp 阅读全文
posted @ 2025-12-12 21:48 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0)
 
摘要: """ Example DAG demonstrating the EmptyOperator and a custom EmptySkipOperator which skips by default. """ from __future__ import annotations import d 阅读全文
posted @ 2025-12-12 21:12 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0)
 
摘要: """Example DAG demonstrating the usage of the ShortCircuitOperator.""" from __future__ import annotations import pendulum from airflow.providers.stand 阅读全文
posted @ 2025-12-12 20:28 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0)
 
摘要: from __future__ import annotations import pendulum from airflow.providers.standard.operators.empty import EmptyOperator from airflow.sdk import DAG, c 阅读全文
posted @ 2025-12-12 20:12 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0)
 
摘要: """ Example DAG demonstrating the usage of setup and teardown tasks. """ from __future__ import annotations import pendulum from airflow.providers.sta 阅读全文
posted @ 2025-12-12 16:31 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0)
 
摘要: t2 = TimeSensor( task_id='timeout_after_second_date_in_the_future', timeout=1, soft_fail=True, target_time=(datetime.datetime.now(tz=datetime.timezone 阅读全文
posted @ 2025-12-12 15:17 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0)
 
摘要: t0a = TimeDeltaSensor( task_id='wait_some_seconds_async', delta=datetime.timedelta(seconds=2), deferrable=True ) What's the purpose of 'deferrable=Tru 阅读全文
posted @ 2025-12-12 15:02 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0)
 
摘要: @task.sensor( poke_interval=60, timeout=3600, mode='reschedule' ) def wait_for_upstream() -> PokeReturnValue: return PokeReturnValue(is_done=True, xco 阅读全文
posted @ 2025-12-12 11:49 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0)
 
摘要: 🌬️ What Is Jinja Templating in Airflow? Jinja templating in Airflow lets you write dynamic, runtime-rendered text inside operators, SQL files, script 阅读全文
posted @ 2025-12-12 10:40 ZhangZhihuiAAA 阅读(8) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 116 下一页