@punks/backend-entity-manager 0.0.287 → 0.0.288

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
@@ -33867,7 +33867,7 @@ exports.JobsService = class JobsService {
33867
33867
  }));
33868
33868
  };
33869
33869
  this.updateJob = async (input) => {
33870
- this.commandBus.execute(new JobDefinitionUpdateCommand({
33870
+ await this.commandBus.execute(new JobDefinitionUpdateCommand({
33871
33871
  job: input,
33872
33872
  }));
33873
33873
  };
@@ -40038,12 +40038,25 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
40038
40038
  }
40039
40039
  async ensureJobDefinition(definition) {
40040
40040
  const jobName = jobDefinitionName(definition.jobUid);
40041
+ this.logger.debug(`AWS JOB -> ensuring job definition ${jobName}`, {
40042
+ definition,
40043
+ });
40041
40044
  const jobs = await this.getActiveJobDefinitions(jobName);
40042
40045
  for (const job of jobs) {
40046
+ this.logger.debug(`AWS JOB -> unregistering job definition`, {
40047
+ job,
40048
+ });
40043
40049
  await this.unregisterJobDefinition(job.jobDefinitionArn);
40044
40050
  }
40051
+ this.logger.debug(`AWS JOB -> registering job definition`, {
40052
+ definition,
40053
+ });
40045
40054
  await this.registerJobDefinition(jobName, definition);
40046
- return await this.getLatestJobDefinition(jobName);
40055
+ const updatedDefinition = await this.getLatestJobDefinition(jobName);
40056
+ this.logger.debug(`AWS JOB -> job definition updated`, {
40057
+ updatedDefinition,
40058
+ });
40059
+ return updatedDefinition;
40047
40060
  }
40048
40061
  async unregisterJobDefinition(jobDefinitionArn) {
40049
40062
  await this.client().send(new clientBatch.DeregisterJobDefinitionCommand({