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
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
觸發觸發器器,那個你可能不熟的 Apache Airflow 元件
Lee Wei
December 24, 2025
More Decks by Lee Wei
See All by Lee Wei
Orchestration Still Matters: Apache Airflow in the Age of AI
leew
0
81
Asset Partitions: Matching Workflow to the Right Data
leew
0
79
Your Al Is Only As Good As Your Data Pipeline
leew
0
32
20251127 開源菜雞的隨意雜談
leew
0
65
住手啊,這樣用 Python 寫程式沒有人會獲得幸福的
leew
0
130
Unlocking the Future of Data Pipeline
leew
0
290
Hold on! You have a data team in PyCon Taiwan!
leew
0
72
朝聖之路
leew
0
160
20250328 Airflow 3.0 The First Glance
leew
0
470
Other Decks in Programming
See All in Programming
Simple Storage Service(S3) is not simple
iwatsukayura
0
110
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
320
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
140
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
260
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
4
460
iOSDCのペンライトを自動制御したい!
akkeylab
0
330
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
130
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
310
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
420
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
650
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
480
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
A better future with KSS
kneath
240
18k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Mobile First: as difficult as doing things right
swwweet
225
10k
Transcript
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