Skip to content

Commit 3509993

Browse files
committed
attempt to fix dags for airflow 3
1 parent be5d6e6 commit 3509993

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

demos/argo-cd/dags/date_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
with DAG(
88
dag_id='date_demo',
9-
schedule_interval='0-59 * * * *',
9+
schedule='0-59 * * * *',
1010
start_date=datetime(2021, 1, 1),
1111
catchup=False,
1212
dagrun_timeout=timedelta(minutes=5),

demos/argo-cd/dags/pyspark_pi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def poke(self, context: Dict) -> bool:
132132

133133
with DAG(
134134
dag_id='sparkapp_dag',
135-
schedule_interval=None,
135+
schedule=None,
136136
start_date=datetime(2022, 1, 1),
137137
catchup=False,
138138
dagrun_timeout=timedelta(minutes=60),
@@ -147,7 +147,7 @@ def load_body_to_dict(body):
147147
raise AirflowException(f"Exception when loading resource definition: {e}\n")
148148
return body_dict
149149

150-
yaml_path = os.path.join(os.environ.get('AIRFLOW__CORE__DAGS_FOLDER'), '../manifests/spark-k8s/pyspark_pi.yaml')
150+
yaml_path = os.path.join(os.environ.get('AIRFLOW__CORE__DAGS_FOLDER'), 'pyspark_pi.yaml')
151151

152152
with open(yaml_path, 'r') as file:
153153
crd = file.read()

0 commit comments

Comments
 (0)