Skip to content

Commit

Permalink
fix start_date
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Jul 2, 2024
1 parent fe19d63 commit 0d6f207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion echo-side/dags/cleanup_logs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from airflow import DAG
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
from datetime import timedelta
from datetime import timedelta, datetime
from kubernetes.client import models

# Create k8s storage mount
Expand All @@ -24,6 +24,7 @@
default_args=default_args,
description='List backup CSV files from S3 bucket',
schedule_interval=timedelta(days=2),
start_date=datetime(2024, 1, 1),
catchup=False,
)

Expand Down
3 changes: 2 additions & 1 deletion echo-side/dags/monitor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from airflow import DAG
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
from airflow.models import Variable
from datetime import timedelta
from datetime import timedelta, datetime
from kubernetes.client import models

# Create k8s storage mount
Expand All @@ -25,6 +25,7 @@
default_args=default_args,
description='List backup CSV files from S3 bucket',
schedule_interval=timedelta(hours=1),
start_date=datetime(2024, 1, 1),
catchup=False,
)

Expand Down

0 comments on commit 0d6f207

Please sign in to comment.