@joystick.js/node-canary 0.0.0-canary.314 → 0.0.0-canary.316
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/dist/app/queues/index.js +2 -0
- package/package.json +1 -1
package/dist/app/queues/index.js
CHANGED
|
@@ -86,6 +86,7 @@ class Queue {
|
|
|
86
86
|
const okayToRunJobs = await this._checkIfOkayToRunJobs();
|
|
87
87
|
if (okayToRunJobs && !process.env.HALT_QUEUES) {
|
|
88
88
|
const nextJob = await this.db.getNextJobToRun();
|
|
89
|
+
console.log(nextJob);
|
|
89
90
|
this.handleNextJob(nextJob);
|
|
90
91
|
}
|
|
91
92
|
}, 300);
|
|
@@ -109,6 +110,7 @@ class Queue {
|
|
|
109
110
|
return this._handleDeleteJob(nextJob?._id);
|
|
110
111
|
}
|
|
111
112
|
}
|
|
113
|
+
console.log(nextJob);
|
|
112
114
|
await this._logAttempt(nextJob?._id);
|
|
113
115
|
await job_definition.run(nextJob?.payload, {
|
|
114
116
|
...nextJob,
|