@punks/backend-entity-manager 0.0.287 → 0.0.289
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 +23 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +23 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -33852,7 +33852,7 @@ let JobsService = class JobsService {
|
|
|
33852
33852
|
}));
|
|
33853
33853
|
};
|
|
33854
33854
|
this.updateJob = async (input) => {
|
|
33855
|
-
this.commandBus.execute(new JobDefinitionUpdateCommand({
|
|
33855
|
+
await this.commandBus.execute(new JobDefinitionUpdateCommand({
|
|
33856
33856
|
job: input,
|
|
33857
33857
|
}));
|
|
33858
33858
|
};
|
|
@@ -40008,10 +40008,14 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40008
40008
|
jobQueue: queue.jobQueueArn,
|
|
40009
40009
|
jobDefinition: jobDefinition.jobDefinitionArn,
|
|
40010
40010
|
jobName,
|
|
40011
|
-
|
|
40012
|
-
|
|
40013
|
-
|
|
40014
|
-
|
|
40011
|
+
...(input.overrides?.command || jobDefinition.containerProperties?.command
|
|
40012
|
+
? {
|
|
40013
|
+
containerOverrides: {
|
|
40014
|
+
command: input.overrides?.command ??
|
|
40015
|
+
jobDefinition.containerProperties.command,
|
|
40016
|
+
},
|
|
40017
|
+
}
|
|
40018
|
+
: {}),
|
|
40015
40019
|
};
|
|
40016
40020
|
this.logger.info(`AWS JOB -> submitting job ${jobName} ${queue.jobQueueArn}`, {
|
|
40017
40021
|
request: submitJobRequest,
|
|
@@ -40023,12 +40027,25 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40023
40027
|
}
|
|
40024
40028
|
async ensureJobDefinition(definition) {
|
|
40025
40029
|
const jobName = jobDefinitionName(definition.jobUid);
|
|
40030
|
+
this.logger.debug(`AWS JOB -> ensuring job definition ${jobName}`, {
|
|
40031
|
+
definition,
|
|
40032
|
+
});
|
|
40026
40033
|
const jobs = await this.getActiveJobDefinitions(jobName);
|
|
40027
40034
|
for (const job of jobs) {
|
|
40035
|
+
this.logger.debug(`AWS JOB -> unregistering job definition`, {
|
|
40036
|
+
job,
|
|
40037
|
+
});
|
|
40028
40038
|
await this.unregisterJobDefinition(job.jobDefinitionArn);
|
|
40029
40039
|
}
|
|
40040
|
+
this.logger.debug(`AWS JOB -> registering job definition`, {
|
|
40041
|
+
definition,
|
|
40042
|
+
});
|
|
40030
40043
|
await this.registerJobDefinition(jobName, definition);
|
|
40031
|
-
|
|
40044
|
+
const updatedDefinition = await this.getLatestJobDefinition(jobName);
|
|
40045
|
+
this.logger.debug(`AWS JOB -> job definition updated`, {
|
|
40046
|
+
updatedDefinition,
|
|
40047
|
+
});
|
|
40048
|
+
return updatedDefinition;
|
|
40032
40049
|
}
|
|
40033
40050
|
async unregisterJobDefinition(jobDefinitionArn) {
|
|
40034
40051
|
await this.client().send(new DeregisterJobDefinitionCommand({
|