Skip to content

Commit

Permalink
Merge pull request #1695 from dandi/increase-task-timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Oct 3, 2023
2 parents 0a6a660 + 2b299dd commit aaf10ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dandiapi/api/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def calculate_sha256(blob_id: str) -> None:
asset_blob.save()


@shared_task(soft_time_limit=60)
@shared_task(soft_time_limit=180)
@atomic
def write_manifest_files(version_id: int) -> None:
version: Version = Version.objects.get(id=version_id)
Expand Down
2 changes: 1 addition & 1 deletion dandiapi/api/tasks/scheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def throttled_iterator(iterable: Iterable, max_per_second: int = 100) -> Iterabl
time.sleep(1 / max_per_second)


@shared_task(soft_time_limit=10)
@shared_task(soft_time_limit=60)
def aggregate_assets_summary_task(version_id: int):
version = Version.objects.get(id=version_id)
version_aggregate_assets_summary(version)
Expand Down

0 comments on commit aaf10ba

Please sign in to comment.