cloudcms-server 3.2.329 → 3.2.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util/workqueue.js +4 -2
package/package.json
CHANGED
package/util/workqueue.js
CHANGED
|
@@ -40,7 +40,7 @@ module.exports = function(maxSize)
|
|
|
40
40
|
// increment active count
|
|
41
41
|
activeCount++;
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
console.log("Active work items: " + activeCount);
|
|
44
44
|
|
|
45
45
|
// define execution function and splice/bind to 0th element from pending list
|
|
46
46
|
var executionFn = function(workFn) {
|
|
@@ -50,7 +50,7 @@ module.exports = function(maxSize)
|
|
|
50
50
|
// decrement active count
|
|
51
51
|
activeCount--;
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
console.log("Active work items: " + activeCount);
|
|
54
54
|
|
|
55
55
|
// process more work on timeout
|
|
56
56
|
window.setTimeout(processWork);
|
|
@@ -71,6 +71,8 @@ module.exports = function(maxSize)
|
|
|
71
71
|
return function(workFn) {
|
|
72
72
|
pendingWorkFns.push(workFn);
|
|
73
73
|
|
|
74
|
+
console.log("PENDING WORK FUNCTIONS: " + pendingWorkFns.length);
|
|
75
|
+
|
|
74
76
|
// execute on timeout
|
|
75
77
|
window.setTimeout(processWork);
|
|
76
78
|
};
|