Skip to content

Commit

Permalink
fix: generally increase timeout for package_revise
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 22, 2024
1 parent 8943f16 commit 0e4965f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.16.1
- fix: generally increase timeout for package_revise
0.16.0
- feat: check for updates when starting the DCOR-Aid GUI
- fix: when checking resource existence for a dataset, do not call
Expand Down
6 changes: 3 additions & 3 deletions dcoraid/api/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def resource_add(dataset_id, path, api, resource_name=None,
resource_name=resource_name,
monitor_callback=monitor_callback,
logger=logger,
timeout=27.9
timeout=500,
)

# If we are here, then the upload was successful
Expand All @@ -270,7 +270,7 @@ def resource_add(dataset_id, path, api, resource_name=None,
revise_dict = {
"match__id": dataset_id,
f"update__resources__{res_dict['id']}": resource_dict}
api.post("package_revise", revise_dict)
api.post("package_revise", revise_dict, timeout=500)

return srv_time, etag

Expand Down Expand Up @@ -355,7 +355,7 @@ def resource_add_upload_direct_s3(
}
]
}
api.post("package_revise", revise_dict)
api.post("package_revise", revise_dict, timeout=500)
return etag


Expand Down

0 comments on commit 0e4965f

Please sign in to comment.