@punks/backend-entity-manager 0.0.302 → 0.0.305

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,
@@ -40121,6 +40113,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40121
40113
  ? [clientBatch.PlatformCapability.EC2]
40122
40114
  : [clientBatch.PlatformCapability.FARGATE],
40123
40115
  containerProperties: {
40116
+ privileged: definition.infrastructureParams.privileged ?? false,
40124
40117
  command: definition.invocationParams.startCommand,
40125
40118
  image: definition.infrastructureParams.dockerImage,
40126
40119
  executionRoleArn: this.awsSettings.batchExecutionRole,
@@ -40160,6 +40153,18 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40160
40153
  },
40161
40154
  }));
40162
40155
  }
40156
+ async ensureJobLogDriver(jobName, definition) {
40157
+ const logGroup = definition.infrastructureParams.logGroupName
40158
+ ? {
40159
+ name: `/aws/batch/job-${definition.infrastructureParams.logGroupName}`,
40160
+ }
40161
+ : undefined;
40162
+ if (!logGroup) {
40163
+ return;
40164
+ }
40165
+ await ensureJobLogGroup(logGroup.name, this.awsSettings);
40166
+ return logGroup;
40167
+ }
40163
40168
  async getLatestJobDefinition(jobName) {
40164
40169
  const jobs = await this.getActiveJobDefinitions(jobName);
40165
40170
  this.logger.debug(`AWS JOB -> latest job definition`, {