Skip to content

Commit

Permalink
use chain_linear for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Aug 16, 2024
1 parent b5c615a commit 5f7483b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions echo-side/dags/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from airflow.models import Variable
from datetime import timedelta, datetime
from kubernetes.client import models as k8s
from airflow.models.baseoperator import chain_linear

# Create k8s storage mount

Expand Down Expand Up @@ -118,8 +119,10 @@ def get_new_csvs(bucket_name):
)

# Set the task sequence
list_csv_files
compare_csv_file_lists
get_new_csvs_task
check_uploads
chain_linear(
list_csv_files,
compare_csv_file_lists,
get_new_csvs_task,
check_uploads
)

0 comments on commit 5f7483b

Please sign in to comment.