摘要:
dag3 = DAG( dag_id="example_branch_datetime_operator_3", start_date=pendulum.datetime(2021, 1, 1, tz="UTC"), catchup=False, tags=["example"], schedule
阅读全文
posted @ 2025-12-10 21:50
ZhangZhihuiAAA
阅读(2)
推荐(0)
摘要:
Short answer: ✔ from airflow.sdk import DAG is better for Airflow 3 (and later). ✔ from airflow import DAG is the old import style for Airflow 2.x. ✅
阅读全文
posted @ 2025-12-10 21:02
ZhangZhihuiAAA
阅读(2)
推荐(0)
摘要:
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this w
阅读全文
posted @ 2025-12-10 16:54
ZhangZhihuiAAA
阅读(1)
推荐(0)
摘要:
str.split() and str.partition() both split strings, but they behave very differently and are used for different purposes. Here’s the clearest comparis
阅读全文
posted @ 2025-12-10 10:36
ZhangZhihuiAAA
阅读(8)
推荐(0)
摘要:
📌 Most Useful Airflow Template Variables 🧩 Task Instance Context VariableMeaning ti The TaskInstance object. Commonly used. task_instance Same as ti
阅读全文
posted @ 2025-12-10 09:59
ZhangZhihuiAAA
阅读(3)
推荐(0)
摘要:
✅ Why Airflow Needs an EmptyOperator 1. To define branching / joins cleanly When you branch or fan out tasks, you often need a join task that doesn’t
阅读全文
posted @ 2025-12-10 09:30
ZhangZhihuiAAA
阅读(2)
推荐(0)
摘要:
✅ Disable Windows PATH injection completely WSL automatically appends Windows paths unless you turn it off. 1. Edit /etc/wsl.conf 2. Add this: [intero
阅读全文
posted @ 2025-12-09 20:39
ZhangZhihuiAAA
阅读(2)
推荐(0)
摘要:
1. Install WSL extension in Windows VSCode 2. Make sure Windows VSCode bin path is in $PATH export CODE_HOME='/mnt/c/Programs/Microsoft VS Code' PATH=
阅读全文
posted @ 2025-12-09 11:15
ZhangZhihuiAAA
阅读(1)
推荐(0)
摘要:
https://airflow.apache.org/docs/apache-airflow/stable/start.html (airflow-venv) frank@ZZHPC:~$ which python /home/frank/airflow-venv/bin/python (airfl
阅读全文
posted @ 2025-12-09 09:08
ZhangZhihuiAAA
阅读(3)
推荐(0)
摘要:
agent1.ts: import {createAgent} from 'langchain'; import 'dotenv/config' const agent = createAgent( {model: 'claude-sonnet-4-5-20250929'} ); const res
阅读全文
posted @ 2025-12-08 19:12
ZhangZhihuiAAA
阅读(7)
推荐(0)