1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-23 20:19:16 +01:00

add more logs

This commit is contained in:
Bishal Prasad 2023-03-23 16:59:47 +05:30 committed by GitHub
parent eff27e646c
commit 938b484130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28387,6 +28387,7 @@ class Batch {
*/ */
parallelExecute() { parallelExecute() {
const local_index = this.index++; const local_index = this.index++;
console.log(`parallelExecute ${local_index} Active count: ${this.actives} Completed count: ${this.completed} total: ${this.operations.length}`);
if (this.state === BatchStates.Error) { if (this.state === BatchStates.Error) {
return; return;
} }
@ -28397,9 +28398,8 @@ class Batch {
while (this.actives < this.concurrency) { while (this.actives < this.concurrency) {
const operation = this.nextOperation(); const operation = this.nextOperation();
if (operation) { if (operation) {
console.log(`parallelExecute ${local_index} starting execution of operation ${this.operation}. Active count: ${this.actives}`); console.log(`parallelExecute ${local_index} starting execution of operation ${this.offset}. Active count: ${this.actives}`);
operation(); operation();
console.log(`parallelExecute ${local_index} finished execution of operation ${this.operation}. Active count: ${this.actives}`);
} }
else { else {
return; return;