Skip to content

Commit

Permalink
added arguements
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Jun 28, 2024
1 parent f746a21 commit f68ecc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions echo-side/dags/monitor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from airflow import DAG
# from airflow.operators.docker_operator import DockerOperator
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
from airflow.utils.dates import days_ago
from airflow.models import Variable
from datetime import timedelta
Expand All @@ -26,7 +26,8 @@
list_csv_files = KubernetesPodOperator(
task_id='list_csv_files',
image='ghcr.io/lsst-uk/csd3-echo-somerville:latest',
cmds=['python', 'csd3-echo-somerville/scripts/list_backup_csvs.py', '--bucket_name', 'LSST-IR-FUSION-Butlers'],
cmds=['python'],
arguments=['csd3-echo-somerville/scripts/list_backup_csvs.py', '--bucket_name', 'LSST-IR-FUSION-Butlers'],
env_vars={
'ECHO_S3_ACCESS_KEY': Variable.get("ECHO_S3_ACCESS_KEY"),
'ECHO_S3_SECRET_KEY': Variable.get("ECHO_S3_SECRET_KEY"),
Expand Down

0 comments on commit f68ecc6

Please sign in to comment.