@punks/backend-entity-manager 0.0.312 → 0.0.313

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 CHANGED
@@ -40051,7 +40051,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40051
40051
  return result.jobSummaryList?.[0];
40052
40052
  }
40053
40053
  async submitJob(input) {
40054
- this.logger.info(`AWS JOB -> submitting job`, {
40054
+ this.logger.info(`AWS JOB -> submitting job triggered`, {
40055
40055
  input,
40056
40056
  });
40057
40057
  const queue = await this.ensureQueue(this.awsSettings.defaultQueueName);
@@ -40071,7 +40071,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40071
40071
  }
40072
40072
  : {}),
40073
40073
  };
40074
- this.logger.info(`AWS JOB -> submitting job ${jobName} ${queue.jobQueueArn}`, {
40074
+ this.logger.info(`AWS JOB -> invoking job ${jobName} ${queue.jobQueueArn}`, {
40075
40075
  request: submitJobRequest,
40076
40076
  });
40077
40077
  const result = await this.client().send(new clientBatch.SubmitJobCommand(submitJobRequest));
@@ -40159,7 +40159,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40159
40159
  async ensureJobLogDriver(jobName, definition) {
40160
40160
  const logGroup = definition.infrastructureParams.logGroupName
40161
40161
  ? {
40162
- name: `/aws/batch/job-${definition.infrastructureParams.logGroupName}`,
40162
+ name: `/aws/batch/${awsBatchSettings.value.batchResourcesPrefix}-job-${definition.infrastructureParams.logGroupName}`,
40163
40163
  }
40164
40164
  : undefined;
40165
40165
  if (!logGroup) {
@@ -40256,12 +40256,13 @@ let AwsJobsProvider = class AwsJobsProvider {
40256
40256
  }
40257
40257
  async dispatch(input) {
40258
40258
  const { definition, schedule, instanceId, payload, commandPlaceholders } = input;
40259
- const awsInvocationParams = schedule?.invocationOverrides;
40259
+ const awsInvocationParams = schedule?.invocationOverrides ??
40260
+ definition.invocationParams;
40260
40261
  await this.awsBatchService.submitJob({
40261
40262
  instanceId,
40262
40263
  jobUid: definition.uid,
40263
40264
  overrides: {
40264
- command: awsInvocationParams?.startCommand?.map((x) => replacePlaceholders(replacePayload(x, payload), commandPlaceholders)),
40265
+ command: awsInvocationParams.startCommand?.map((x) => replacePlaceholders(replacePayload(x, payload), commandPlaceholders)),
40265
40266
  },
40266
40267
  });
40267
40268
  }