@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/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
|
};
|
|
@@ -40023,10 +40023,14 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40023
40023
|
jobQueue: queue.jobQueueArn,
|
|
40024
40024
|
jobDefinition: jobDefinition.jobDefinitionArn,
|
|
40025
40025
|
jobName,
|
|
40026
|
-
|
|
40027
|
-
|
|
40028
|
-
|
|
40029
|
-
|
|
40026
|
+
...(input.overrides?.command || jobDefinition.containerProperties?.command
|
|
40027
|
+
? {
|
|
40028
|
+
containerOverrides: {
|
|
40029
|
+
command: input.overrides?.command ??
|
|
40030
|
+
jobDefinition.containerProperties.command,
|
|
40031
|
+
},
|
|
40032
|
+
}
|
|
40033
|
+
: {}),
|
|
40030
40034
|
};
|
|
40031
40035
|
this.logger.info(`AWS JOB -> submitting job ${jobName} ${queue.jobQueueArn}`, {
|
|
40032
40036
|
request: submitJobRequest,
|
|
@@ -40038,12 +40042,25 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40038
40042
|
}
|
|
40039
40043
|
async ensureJobDefinition(definition) {
|
|
40040
40044
|
const jobName = jobDefinitionName(definition.jobUid);
|
|
40045
|
+
this.logger.debug(`AWS JOB -> ensuring job definition ${jobName}`, {
|
|
40046
|
+
definition,
|
|
40047
|
+
});
|
|
40041
40048
|
const jobs = await this.getActiveJobDefinitions(jobName);
|
|
40042
40049
|
for (const job of jobs) {
|
|
40050
|
+
this.logger.debug(`AWS JOB -> unregistering job definition`, {
|
|
40051
|
+
job,
|
|
40052
|
+
});
|
|
40043
40053
|
await this.unregisterJobDefinition(job.jobDefinitionArn);
|
|
40044
40054
|
}
|
|
40055
|
+
this.logger.debug(`AWS JOB -> registering job definition`, {
|
|
40056
|
+
definition,
|
|
40057
|
+
});
|
|
40045
40058
|
await this.registerJobDefinition(jobName, definition);
|
|
40046
|
-
|
|
40059
|
+
const updatedDefinition = await this.getLatestJobDefinition(jobName);
|
|
40060
|
+
this.logger.debug(`AWS JOB -> job definition updated`, {
|
|
40061
|
+
updatedDefinition,
|
|
40062
|
+
});
|
|
40063
|
+
return updatedDefinition;
|
|
40047
40064
|
}
|
|
40048
40065
|
async unregisterJobDefinition(jobDefinitionArn) {
|
|
40049
40066
|
await this.client().send(new clientBatch.DeregisterJobDefinitionCommand({
|