Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Access vars outside
  • Loading branch information
amishas157 committed Dec 13, 2024
1 parent ab8be7a commit 2461095
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dags/external_data_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,22 @@
},
)

retool_start_time = "{{ subtract_data_interval(dag, data_interval_start).isoformat() }}"
retool_end_time = "{{ subtract_data_interval(dag, data_interval_end).isoformat() }}"
RETOOL_API_KEY = "{{ var.value.retool_api_key }}"

retool_export_task = build_export_task(
dag,
RETOOL_EXPORT_TASK_ID,
command="export-retool",
cmd_args=[
"--start-time",
"{{ subtract_data_interval(dag, data_interval_start).isoformat() }}",
retool_start_time,
"--end-time",
"{{ subtract_data_interval(dag, data_interval_end).isoformat() }}",
retool_end_time,
],
use_gcs=True,
env_vars={"RETOOL_API_KEY": "{{ var.value.retool_api_key }}"},
env_vars={"RETOOL_API_KEY": RETOOL_API_KEY},
)


Expand Down

0 comments on commit 2461095

Please sign in to comment.