mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Decrease chunk size, log time taken
This commit is contained in:
@@ -95,6 +95,7 @@ import * as tus from "tus-js-client";
|
||||
cnf.error(cnf.error_file);
|
||||
return;
|
||||
}
|
||||
const startTime = performance.now();
|
||||
const file = file_data.file;
|
||||
const tusEndpoint = `${getAppRoot()}api/upload/resumable_upload`;
|
||||
const chunkSize = cnf.session.chunk_upload_size;
|
||||
@@ -114,7 +115,11 @@ import * as tus from "tus-js-client";
|
||||
cnf.progress(percentage);
|
||||
},
|
||||
onSuccess: function () {
|
||||
console.log("Download %s from %s", upload.file.name, upload.url);
|
||||
console.log(
|
||||
`Download ${upload.file.name} from ${upload.url} took ${
|
||||
(performance.now() - startTime) / 1000
|
||||
} seconds`
|
||||
);
|
||||
cnf.success({});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1704,12 +1704,12 @@ mapping:
|
||||
|
||||
chunk_upload_size:
|
||||
type: int
|
||||
default: 104857600
|
||||
default: 10485760
|
||||
required: false
|
||||
desc: |
|
||||
Galaxy can upload user files in chunks without using nginx. Enable the chunk
|
||||
uploader by specifying a chunk size larger than 0. The chunk size is specified
|
||||
in bytes (default: 100MB).
|
||||
in bytes (default: 10MB).
|
||||
|
||||
dynamic_proxy_manage:
|
||||
type: bool
|
||||
|
||||
Reference in New Issue
Block a user