@punks/backend-entity-manager 0.0.473 → 0.0.474

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.
@@ -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
@@ -34912,7 +34912,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
34912
34912
  return result.result;
34913
34913
  }
34914
34914
  async dispatchJob(command) {
34915
- const { input: { job, schedule, runType, payload, commandPlaceholders }, } = command;
34915
+ const { input: { job, schedule, runType, payload, commandPlaceholders, variables, }, } = command;
34916
34916
  const instanceId = newUuid$1();
34917
34917
  try {
34918
34918
  this.logger.info(`JOB DISPATCH -> dispatching started job ${job.uid} -> ${instanceId}`);
@@ -34928,6 +34928,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
34928
34928
  instanceId,
34929
34929
  payload,
34930
34930
  commandPlaceholders,
34931
+ variables,
34931
34932
  });
34932
34933
  await this.instances.updateInstance(instanceId, {
34933
34934
  status: JobStatus.Ready,