摘要:
import sys print(sys.executable) # /home/frank/airflow-venv/bin/python
阅读全文
posted @ 2025-12-11 11:25
ZhangZhihuiAAA
阅读(2)
推荐(0)
摘要:
""" Example DAG demonstrating the usage of ``@task.branch`` TaskFlow API decorator with depends_on_past=True, where tasks may be run or skipped on alt
阅读全文
posted @ 2025-12-11 11:09
ZhangZhihuiAAA
阅读(3)
推荐(0)
摘要:
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
阅读(4)
推荐(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
阅读(3)
推荐(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)