mirror of
https://gitea.com/actions/cache.git
synced 2024-11-22 12:22:31 +08:00
Test disabling concurrency
This commit is contained in:
parent
aced43a650
commit
6efe05572d
6
dist/restore/index.js
vendored
6
dist/restore/index.js
vendored
|
@ -2403,7 +2403,8 @@ function uploadFile(httpClient, cacheId, archivePath) {
|
|||
core.debug("Awaiting all uploads");
|
||||
let offset = 0;
|
||||
try {
|
||||
yield Promise.all(parallelUploads.map(() => __awaiter(this, void 0, void 0, function* () {
|
||||
// await Promise.all(
|
||||
// parallelUploads.map(async () => {
|
||||
while (offset < fileSize) {
|
||||
const chunkSize = Math.min(fileSize - offset, MAX_CHUNK_SIZE);
|
||||
const start = offset;
|
||||
|
@ -2416,7 +2417,8 @@ function uploadFile(httpClient, cacheId, archivePath) {
|
|||
autoClose: false
|
||||
}), start, end);
|
||||
}
|
||||
})));
|
||||
// })
|
||||
// );
|
||||
}
|
||||
finally {
|
||||
fs.closeSync(fd);
|
||||
|
|
6
dist/save/index.js
vendored
6
dist/save/index.js
vendored
|
@ -2403,7 +2403,8 @@ function uploadFile(httpClient, cacheId, archivePath) {
|
|||
core.debug("Awaiting all uploads");
|
||||
let offset = 0;
|
||||
try {
|
||||
yield Promise.all(parallelUploads.map(() => __awaiter(this, void 0, void 0, function* () {
|
||||
// await Promise.all(
|
||||
// parallelUploads.map(async () => {
|
||||
while (offset < fileSize) {
|
||||
const chunkSize = Math.min(fileSize - offset, MAX_CHUNK_SIZE);
|
||||
const start = offset;
|
||||
|
@ -2416,7 +2417,8 @@ function uploadFile(httpClient, cacheId, archivePath) {
|
|||
autoClose: false
|
||||
}), start, end);
|
||||
}
|
||||
})));
|
||||
// })
|
||||
// );
|
||||
}
|
||||
finally {
|
||||
fs.closeSync(fd);
|
||||
|
|
|
@ -342,8 +342,8 @@ async function uploadFile(
|
|||
let offset = 0;
|
||||
|
||||
try {
|
||||
await Promise.all(
|
||||
parallelUploads.map(async () => {
|
||||
// await Promise.all(
|
||||
// parallelUploads.map(async () => {
|
||||
while (offset < fileSize) {
|
||||
const chunkSize = Math.min(
|
||||
fileSize - offset,
|
||||
|
@ -367,8 +367,8 @@ async function uploadFile(
|
|||
end
|
||||
);
|
||||
}
|
||||
})
|
||||
);
|
||||
// })
|
||||
// );
|
||||
} finally {
|
||||
fs.closeSync(fd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user