GitHub user assadali007 added a comment to the discussion: Why does Airflow
BashOperator fetch multiple days of data when API URL has single-day date range?
it solve it
`fetch_events = BashOperator(
task_id="fetch_events",
bash_command=(
"mkdir -p /Users/asadali/data/events && "
"curl -o /Users/asadali/data/events/events.json "
"\"http://localhost:5000/events?start_date=2019-01-01&end_date=2019-01-02\""
),
dag=dag
)
`
GitHub link:
https://github.com/apache/airflow/discussions/60051#discussioncomment-15395213
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]