Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
觸發觸發器器,那個你可能不熟的 Apache Airflow 元件
Search
Lee Wei
December 24, 2025
Programming
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
觸發觸發器器,那個你可能不熟的 Apache Airflow 元件
Lee Wei
December 24, 2025
Transcript
153 slides
wei-lee.me 觸發觸發器器 那個你可能不熟的 Apache Airflow 元件
wei-lee.me Triggerer 已知 Trigger 是觸發器 那 Triggerer 應該是什麼?
wei-lee.me Apache Airflow 3.1.3 Trigger 是觸發器,Triggerer 也是觸發器
wei-lee.me 這樣不會搞混嗎 🤔
wei-lee.me 社群的 力 量 💪 • 觸發器主管 • 觸發器長 •
觸發總管 • 觸發器 人 • 觸發器管理員 • 觸發王 • 觸發強者 • 觸發 大 師 • 非同步觸發魔法棒 • 板機者
wei-lee.me Triggerer 👉 觸發者
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 為什麼會有繁體中 文
wei-lee.me Airflow 3.1+
wei-lee.me 如何使 用 Airflow 3.1+ 👀
wei-lee.me 自行 架設 Apache Airlfow
wei-lee.me Astronom...
wei-lee.me Astronomy 天 文 學
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 🛝 Slide deck
wei-lee.me 溫馨提醒 前 方 可能有晶晶體 4
wei-lee.me 觸發者 那個你可能不熟的 Apache Airflow 元件
wei-lee.me Airflow 架構 (< 2.2)
wei-lee.me
wei-lee.me Airflow 架構 (2.2+)
wei-lee.me 為什麼要使 用 觸發器!
wei-lee.me 一 般的任務操作器 (Operator) from: https://www.astronomer.io/docs/learn/deferrable-operators
wei-lee.me 可延後任務操作器 (Deferrable Operator) from: https://www.astronomer.io/docs/learn/deferrable-operators
wei-lee.me 現成的可延後任務操作器
wei-lee.me 如何使 用 可延後任務操作器
wei-lee.me 如何使 用 可延後任務操作器
wei-lee.me 如果我有很多任務操作器 不就要 一 個 一 個改 🤯
wei-lee.me default_deferrable - 一 鍵全開
wei-lee.me 可延後任務操作器如何運作
wei-lee.me
wei-lee.me 排程器指派任務給 Worker
wei-lee.me
wei-lee.me Worker 延後任務,轉交給觸發者
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 完成非同步操作,通知排程器
wei-lee.me
wei-lee.me
wei-lee.me 重新排程,並完成任務
wei-lee.me 不過現在不建議 用 AirflowException
wei-lee.me 如何實作可延後任務操作器
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 完全非同步的執 行 任務
wei-lee.me 排程器直接跟觸發者溝通
wei-lee.me
wei-lee.me StartTriggerArgs
wei-lee.me BaseTaskEndEvent
wei-lee.me 限制 • start_from_trigger • 不 支 援動態任務映射 (Dynamic Task
Mapping) • 整個 __init__ 階段被跳過 • end_from_trigger • 不 支 援 listener
wei-lee.me
wei-lee.me
wei-lee.me HITL (Human in the Loop) • 人 類在圈圈裡 •
圓環之理 (Airflow 也要簽訂契約成為魔法少女了嗎)
wei-lee.me 人 類參與流程 (HITL)
wei-lee.me 為什麼需要 HITL?
wei-lee.me 為什麼需要 HITL? • 🤖 AI / ML Workflow •
模型預測結果 人工 審核、 高 風險推論確認 • 🛡 內容審核 • ✅ 審批流程
wei-lee.me HITL 任務運作流程
wei-lee.me 範例 Dag
wei-lee.me
wei-lee.me 待回應的任務實例 (Required Actions)
wei-lee.me 待回應的任務實例 (Required Actions)
wei-lee.me HITLOperator
wei-lee.me HITLOperator
wei-lee.me HITLEntryOperator
wei-lee.me HITLEntryOperator
wei-lee.me ApprovalOperator
wei-lee.me ApprovalOperator
wei-lee.me HITLBranchOperator
wei-lee.me HITLBranchOperator
wei-lee.me
wei-lee.me
wei-lee.me Airflow providers "JSCZUF "MJCBCB "NB[PO "QQSJTF "TBOB "SBOHP%# "QBDIF4QBSL
"QBDIF1JOPU "QBDIF1JH "QBDIF-JWZ "QBDIF,ZMJO "QBDIF,BGLB "QBDIF)JWF "QBDIF)%'4 "QBDIF'MJOL "QBDIF%SVJE "QBDIF%SJMM "QBDIF$BTTBOESB "QBDIF#FBN %PDLFS %JTDPSE %JOHEJOH ECU %BUBEPH %BUBCSJDLT $PNNPO42- $PIFSF ,VCFSOFUFT $FMFSZ +JSB *#.$MPVEBOU )551 )BTIJDPSQ H31$ (PPHMF 'BDFCPPL '51 'BDFCPPL &YBTPM &MBTUJDTFBSDI 0QFO-JOFBHF 0QFO"* 0QFO'BB4 0%#$ /FPK .Z42- .POHP%# 8JO3. .442- 1431 .JDSPTPGU1PXFS4IFMM .JDSPTPGU"[VSF +FOLJOT +%#$ *."1 *OGMVY%# 1BQFSNJMM 1BHFSEVUZ 0SBDMF 0QTHFOJF 0QFO4FBSDI 4FHNFOU 4BNCB 4BMFTGPSDF 3FEJT 1SFTUP 1PTUHSF42- 1JOFDPOF 1H7FDUPS 5BCMFBV 5BCVMBS 44) 42-JUF 4OPXGMBLF 4.51 4MBDL 4JOHVMBSJUZ 4'51 4FOEHSJE 7FSUJDB 5SJOP 5FMFHSBN ;FOEFTL :BOEFY 8FBWJBUF
wei-lee.me Provider 還沒被翻譯 絕贊徵求中
wei-lee.me 與 AI 相關的 Airflow Providers • apache-airflow-providers-weaviate • apache-airflow-providers-pinecone
• apache-airflow-providers-pgvector • apache-airflow-providers-cohere • apache-airflow-providers-openai
wei-lee.me Weaviate - vector database
wei-lee.me pinecone - vector database
wei-lee.me pgvector Open-source vector similarity search for Postgres
wei-lee.me cohere NLP platform for accessing LLM
wei-lee.me openai
wei-lee.me
wei-lee.me
wei-lee.me 直接 支 援 async def ?
wei-lee.me 鼓 勵"正確的"使 用 AI 貢獻
wei-lee.me AI 原 生 的 Airflow?
wei-lee.me Airflow 官 方 MCP ?
wei-lee.me 依據系統架構執 行 任務?
wei-lee.me Airflow 開發郵件群組
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me ⚒ 開發者
wei-lee.me 開源啟蒙
wei-lee.me 2013 - 第 一 個 OSS 貢獻(?)
wei-lee.me 2015 - 第 一 個有意義的貢獻
wei-lee.me 一 些零零碎碎的 小 貢獻
wei-lee.me 2019 - 第 一 個 commitizen PR
wei-lee.me 都 5202 年了 聽說還有 人 覺得這系列很實 用 ...
wei-lee.me 2020 - 成為 commitizen 維護者
wei-lee.me 2020 ~ - commitizen 傳教 士
wei-lee.me 2020 ~ - 我差不多在這加入的
wei-lee.me 2022 - 第 一 個 Apache Airflow PR
wei-lee.me 2024 成為 Apache Airlfow Committer
wei-lee.me 2025 成為 Apache Airlfow PMC 成員
wei-lee.me 暗がりの中 一方 通 行 に ただただ
wei-lee.me
wei-lee.me 🤝 社群的 一 份 子
wei-lee.me Python 社群
wei-lee.me Apache Airflow 社群
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 用 善意去交換善意
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 雖然有時候...會出現 一 些快樂寶 貝
wei-lee.me
wei-lee.me
wei-lee.me 而 我希望 這令 人 無 言 的理想世界中...
wei-lee.me 有台灣
wei-lee.me
wei-lee.me
wei-lee.me 我也許無法...
wei-lee.me 離開營地前,讓營地比使 用 前更加乾淨
wei-lee.me 現在才開始來得及嗎?
wei-lee.me
wei-lee.me 種樹最好的時間點
wei-lee.me 是 十 年前
wei-lee.me 跟現在
__name__ = 李唯 / Wei Lee __what_i_am_doing__ = [ PMC
Member @ Apache Airflow, Maintainer @ commitizen-tools, Volunteer @ PyCon Taiwan, Member @ Python Asia Organization, Meme Bot @ OpenSource4You, Mentor @ OpenSource4You, Software Engineer @ Astronomer, ] __github__ = Lee-W __linkedin__ = clleew __site__ = https://wei-lee.me $ cat weilee.py
File "weilee.py", line 1 __name__ = 李唯 / Wei Lee
^^^ SyntaxError: invalid syntax $ 𝜋 thon weilee.py
wei-lee.me
wei-lee.me Q & A 30
wei-lee.me
wei-lee.me 是英 文 不好,但不是因為英 文 不好
wei-lee.me
wei-lee.me 國際化跟在地化
wei-lee.me
wei-lee.me
wei-lee.me
wei-lee.me 參考資料 • 進擊的巨 人 • BanG Dream! It's MyGO!!!!!
• BanG Dream! Ave Mujica • BLUE GIANT SUPREME藍 色 巨星 歐 洲篇 • 地。-關於地球的運動 • JOJO 的奇妙冒險 • 我推的孩 子 • 金 牌得主
wei-lee.me
wei-lee.me
wei-lee.me
More Decks by Lee Wei
See All by Lee Wei
Apache Airflow Introduction
leew
1
100
Airflow Beyond Python: New Languages for Tasks and Workflows
leew
0
40
Orchestration Still Matters: Apache Airflow in the Age of AI
leew
0
99
Asset Partitions: Matching Workflow to the Right Data
leew
0
100
Your Al Is Only As Good As Your Data Pipeline
leew
0
47
20251127 開源菜雞的隨意雜談
leew
0
110
住手啊,這樣用 Python 寫程式沒有人會獲得幸福的
leew
0
180
Unlocking the Future of Data Pipeline
leew
0
300
Hold on! You have a data team in PyCon Taiwan!
leew
0
95
Other Decks in Programming
See All in Programming
Datadog を OTel にするメリットを考察する — Datadog との併用を実アプリで確かめる / Examining the Benefits of Moving Datadog to OTel — Testing OTel Alongside Datadog in a Real App
seike460
PRO
1
130
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
260
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
470
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
120
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
200
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
220
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
1
1.3k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
250
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
130
protojson における文字化けの扱い
kazuki1023
0
470
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
140
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Product Roadmaps are Hard
iamctodd
55
13k
The Cost Of JavaScript in 2023
addyosmani
56
10k
Unsuck your backbone
ammeep
672
58k
Side Projects
sachag
456
43k
Speed Design
sergeychernyshev
33
2.3k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
How to Talk to Developers About Accessibility
jct
2
630
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
The Invisible Side of Design
smashingmag
301
52k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k