Skip to content

Commit 3bf3199

Browse files
authored
Patch20250130: fixup the on_success function recieve invalid parameter (#202)
* make the concurrency of uploading jobsbs configurable * also make upload_chunk_size configurable * remove the internal cache of the result of chunk upload. Instead, using active job count to ensure all jobs finish * bumpup version * update test cases to adopt new logic of chunk upload * fixup the on_success function recieve wrong parameter
1 parent b551211 commit 3bf3199

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/services/file_manager/file_upload/file_upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def simple_upload( # noqa: C901
242242
# the on_success api will be called after all chunk uploaded
243243
res = pool.apply_async(
244244
upload_client.on_succeed,
245-
args=(file_object),
245+
args=(file_object,),
246246
)
247247
on_success_res.append(res)
248248

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "app"
3-
version = "3.12.2"
3+
version = "3.12.3"
44
description = "This service is designed to support pilot platform"
55
authors = ["Indoc Systems"]
66

0 commit comments

Comments
 (0)