Skip to content

Commit

Permalink
Update news_flash.py
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Mar 25, 2024
1 parent 16d6633 commit 2221804
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion airflow_server/dags/news_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,21 @@
task_id='update-news-flash'
)

with DAG('update-all-news-flash', **dag_kwargs, schedule_interval=None,
with DAG('update-all-news-flash-location-only', **dag_kwargs, schedule_interval=None,
description='Update all news flash') as update_all_news_flash_dag:
CliBashOperator(
cmd='anyway-etl anyway-kubectl-exec python3 main.py '
'update-news-flash update --update_cbs_location_only',
task_id='update-all-news-flash'
)

with DAG('update-all-news-flash', **dag_kwargs, schedule_interval=None,
description='Update all news flash') as update_all_news_flash_dag:
CliBashOperator(
cmd='anyway-etl anyway-kubectl-exec python3 main.py '
'update-news-flash update',
task_id='update-all-news-flash'
)

with DAG('test-anyway-kubectl-exec', **dag_kwargs, schedule_interval=None) as test_anyway_kubectl_Exec:
CliBashOperator(
Expand Down

0 comments on commit 2221804

Please sign in to comment.