Skip to content

Commit

Permalink
fix insert-elk-sirene dag
Browse files Browse the repository at this point in the history
  • Loading branch information
MKCG committed Nov 22, 2023
1 parent 23b171c commit 3c1ea79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DAG-insert-elk-sirene.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@
python_callable=fill_elastic_siren_index,
)

fill_elastic_siren_index.set_upstream(get_colors)
create_elastic_index.set_upstream(get_colors)
fill_elastic_siren_index.set_upstream(create_elastic_index)
4 changes: 2 additions & 2 deletions task_functions/get_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


def get_colors(**kwargs):
kwargs["ti"].xcom_push(key="next_color", value="20231122")
kwargs["ti"].xcom_push(key="current_color", value="green")
kwargs["ti"].xcom_push(key="next_color", value="20231123")
kwargs["ti"].xcom_push(key="current_color", value="20231122")

# try:
# with urlopen(COLOR_URL, timeout=5) as url:
Expand Down

0 comments on commit 3c1ea79

Please sign in to comment.