@punks/backend-entity-manager 0.0.301 → 0.0.304

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
@@ -40104,16 +40104,8 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40104
40104
  jobDefinition: jobDefinitionArn,
40105
40105
  }));
40106
40106
  }
40107
- async ensureJobLogDriver(jobName, definition) { }
40108
40107
  async registerJobDefinition(jobName, definition) {
40109
- const logGroup = definition.infrastructureParams.logGroupName
40110
- ? {
40111
- name: `/aws/batch/job-${definition.infrastructureParams.logGroupName}`,
40112
- }
40113
- : undefined;
40114
- if (logGroup) {
40115
- await ensureJobLogGroup(logGroup.name, this.awsSettings);
40116
- }
40108
+ const logGroup = await this.ensureJobLogDriver(jobName, definition);
40117
40109
  await this.client().send(new clientBatch.RegisterJobDefinitionCommand({
40118
40110
  jobDefinitionName: jobName,
40119
40111
  type: clientBatch.JobDefinitionType.Container,
@@ -40160,6 +40152,18 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40160
40152
  },
40161
40153
  }));
40162
40154
  }
40155
+ async ensureJobLogDriver(jobName, definition) {
40156
+ const logGroup = definition.infrastructureParams.logGroupName
40157
+ ? {
40158
+ name: `/aws/batch/job-${definition.infrastructureParams.logGroupName}`,
40159
+ }
40160
+ : undefined;
40161
+ if (!logGroup) {
40162
+ return;
40163
+ }
40164
+ await ensureJobLogGroup(logGroup.name, this.awsSettings);
40165
+ return logGroup;
40166
+ }
40163
40167
  async getLatestJobDefinition(jobName) {
40164
40168
  const jobs = await this.getActiveJobDefinitions(jobName);
40165
40169
  this.logger.debug(`AWS JOB -> latest job definition`, {