@punks/backend-entity-manager 0.0.290 → 0.0.292
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/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/extensions/jobs/commands/job-dispatch/handler.d.ts +1 -1
- package/dist/cjs/types/types/pipelines.d.ts +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/extensions/jobs/commands/job-dispatch/handler.d.ts +1 -1
- package/dist/esm/types/types/pipelines.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2690,6 +2690,7 @@ exports.PipelineStatus = void 0;
|
|
|
2690
2690
|
|
|
2691
2691
|
const toPipelineOperationError = (error) => ({
|
|
2692
2692
|
message: error.message,
|
|
2693
|
+
stackTrace: error.stack,
|
|
2693
2694
|
exception: error,
|
|
2694
2695
|
});
|
|
2695
2696
|
const getStepOutput = (result) => {
|
|
@@ -33957,10 +33958,11 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
|
|
|
33957
33958
|
}
|
|
33958
33959
|
async execute(command) {
|
|
33959
33960
|
const { input: { job }, } = command;
|
|
33960
|
-
await this.lock.executeExclusive({
|
|
33961
|
+
const result = await this.lock.executeExclusive({
|
|
33961
33962
|
lockUid: `job-dispatch-${job.uid}`,
|
|
33962
33963
|
operation: async () => await this.dispatchJob(command),
|
|
33963
33964
|
});
|
|
33965
|
+
return result.result;
|
|
33964
33966
|
}
|
|
33965
33967
|
async dispatchJob(command) {
|
|
33966
33968
|
const { input: { job, schedule, runType, payload }, } = command;
|