@scz/queue-job-worker-pool 0.0.1 → 0.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scz/queue-job-worker-pool",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -134,6 +134,11 @@ class JobQueueThreadPool extends EventEmitter {
134
134
  getWorkerCount() {
135
135
  return Object.keys(this.#workers).length;
136
136
  }
137
+
138
+ // ================================================================
139
+ getWaitingJobCount() {
140
+ return this.#jobs_queue.getJobQueueLength();
141
+ }
137
142
  }
138
143
 
139
144
  module.exports = JobQueueThreadPool;