@joystick.js/node-canary 0.0.0-canary.295 → 0.0.0-canary.297
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 +4 -1
- package/package.json +1 -1
package/dist/app/queues/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
1
|
import fs from "fs";
|
|
3
2
|
import os from "os";
|
|
4
3
|
import generateId from "../../lib/generateId";
|
|
@@ -143,6 +142,10 @@ class Queue {
|
|
|
143
142
|
return this.db.setJobCompleted(jobId);
|
|
144
143
|
}
|
|
145
144
|
_handleJobFailed(nextJob = {}, job_definition = {}, error = "") {
|
|
145
|
+
console.log({
|
|
146
|
+
nextJob,
|
|
147
|
+
job_definition
|
|
148
|
+
});
|
|
146
149
|
if (job_definition?.requeueOnFailure) {
|
|
147
150
|
return this._handleRequeueJob(nextJob?._id, timestamps.get_future_time("seconds", 10));
|
|
148
151
|
}
|