Skip to content

Commit

Permalink
fix(submit-stac): modify retry behavior for API submission
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Jan 20, 2025
1 parent 771e582 commit 2930826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/veda_data_pipeline/groups/processing_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def remove_thumbnail_asset(ti):
payload.pop("assets")
return payload

@task(retries=1, retry_delay=timedelta(minutes=1))
# with exponential backoff enabled, retry delay is converted to seconds
@task(retries=2, retry_delay=60, retry_exponential_backoff=True, max_active_tis_per_dag=5)
def submit_to_stac_ingestor_task(built_stac: dict):
"""Submit STAC items to the STAC ingestor API."""
event = built_stac.copy()
Expand Down

0 comments on commit 2930826

Please sign in to comment.