@punks/backend-entity-manager 0.0.473 → 0.0.475
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/command.d.ts +2 -0
- package/dist/cjs/types/platforms/nest/extensions/jobs/services/jobs-service/types.d.ts +2 -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/command.d.ts +2 -0
- package/dist/esm/types/platforms/nest/extensions/jobs/services/jobs-service/types.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BatchJobVariables } from "../../../../plugins/jobs/aws-batch/manager/types";
|
|
1
2
|
import { JobDefinition, JobRunType, JobSchedule } from "../../abstractions";
|
|
2
3
|
export interface JobDispatchCommandInput {
|
|
3
4
|
job: JobDefinition<unknown, unknown>;
|
|
@@ -5,6 +6,7 @@ export interface JobDispatchCommandInput {
|
|
|
5
6
|
runType: JobRunType;
|
|
6
7
|
payload?: unknown;
|
|
7
8
|
commandPlaceholders?: Record<string, string>;
|
|
9
|
+
variables?: BatchJobVariables;
|
|
8
10
|
}
|
|
9
11
|
export declare class JobDispatchCommand {
|
|
10
12
|
readonly input: JobDispatchCommandInput;
|
package/dist/esm/index.js
CHANGED
|
@@ -34812,6 +34812,7 @@ let JobsService = class JobsService {
|
|
|
34812
34812
|
runType: JobRunType.OnDemand,
|
|
34813
34813
|
payload: input.payload,
|
|
34814
34814
|
commandPlaceholders: input.commandPlaceholders,
|
|
34815
|
+
variables: input.variables,
|
|
34815
34816
|
}));
|
|
34816
34817
|
};
|
|
34817
34818
|
this.updateJob = async (input) => {
|
|
@@ -34912,7 +34913,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
|
|
|
34912
34913
|
return result.result;
|
|
34913
34914
|
}
|
|
34914
34915
|
async dispatchJob(command) {
|
|
34915
|
-
const { input: { job, schedule, runType, payload, commandPlaceholders }, } = command;
|
|
34916
|
+
const { input: { job, schedule, runType, payload, commandPlaceholders, variables, }, } = command;
|
|
34916
34917
|
const instanceId = newUuid$1();
|
|
34917
34918
|
try {
|
|
34918
34919
|
this.logger.info(`JOB DISPATCH -> dispatching started job ${job.uid} -> ${instanceId}`);
|
|
@@ -34928,6 +34929,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
|
|
|
34928
34929
|
instanceId,
|
|
34929
34930
|
payload,
|
|
34930
34931
|
commandPlaceholders,
|
|
34932
|
+
variables,
|
|
34931
34933
|
});
|
|
34932
34934
|
await this.instances.updateInstance(instanceId, {
|
|
34933
34935
|
status: JobStatus.Ready,
|