Skip to content

Commit

Permalink
Run oapen_metadata transform task on different queue (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdddog authored May 3, 2024
1 parent ae7fdde commit a14d6f5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ def download(release: dict, **context) -> None:
)
set_task_state(success, context["ti"].task_id, release=release)

@task()
@task(queue="queue-a10")
def transform(release: dict, **context) -> None:
"""Transform the oapen metadata XML file into a valid ONIX file"""
"""Transform the oapen metadata XML file into a valid ONIX file. This task runs on a different queue
because it uses more memory than other tasks."""

release = OapenMetadataRelease.from_dict(release)
# Download files from GCS
Expand Down

0 comments on commit a14d6f5

Please sign in to comment.