long-task-queue-reader 0.8.0-alpha.1 → 0.8.0-alpha.3
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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# [0.8.0-alpha.
|
|
1
|
+
# [0.8.0-alpha.3](https://github.com/Parsimotion/long-task-queue-reader/compare/v0.8.0-alpha.2...v0.8.0-alpha.3) (2026-02-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* finish after run once ([026faea](https://github.com/Parsimotion/long-task-queue-reader/commit/026faeaf8977dbfb529d495a721bd11c8bac1ba7))
|
|
@@ -15,7 +15,15 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
OnceExecutionMode.prototype.start = function(reader) {
|
|
18
|
-
return this.executeOnce(reader)
|
|
18
|
+
return this.executeOnce(reader).tap((function(_this) {
|
|
19
|
+
return function() {
|
|
20
|
+
return reader.emit("job-finish");
|
|
21
|
+
};
|
|
22
|
+
})(this)).tap((function(_this) {
|
|
23
|
+
return function() {
|
|
24
|
+
return process.exit(0);
|
|
25
|
+
};
|
|
26
|
+
})(this));
|
|
19
27
|
};
|
|
20
28
|
|
|
21
29
|
return OnceExecutionMode;
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"job-finish-messages": function() {
|
|
27
27
|
return logger.info("Finalizo la ejecucion de mensajes");
|
|
28
28
|
},
|
|
29
|
+
"job-finish": function() {
|
|
30
|
+
return logger.info("Finalizo la ejecucion");
|
|
31
|
+
},
|
|
29
32
|
"message-start": function(message) {
|
|
30
33
|
return logger.info("Iniciando el proceso de un mensaje", message);
|
|
31
34
|
},
|
|
@@ -57,11 +57,6 @@
|
|
|
57
57
|
return this;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
LongTaskQueueReaderBuilder.prototype.withExecutionMode = function(executionMode) {
|
|
61
|
-
this.executionMode = executionMode;
|
|
62
|
-
return this;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
60
|
LongTaskQueueReaderBuilder.prototype.withExecutionMode = function(mode) {
|
|
66
61
|
var ExecutionMode;
|
|
67
62
|
ExecutionMode = executionModes[mode] || executionModes.continuous;
|