@punks/backend-entity-manager 0.0.312 → 0.0.313
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 +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40036,7 +40036,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40036
40036
|
return result.jobSummaryList?.[0];
|
|
40037
40037
|
}
|
|
40038
40038
|
async submitJob(input) {
|
|
40039
|
-
this.logger.info(`AWS JOB -> submitting job`, {
|
|
40039
|
+
this.logger.info(`AWS JOB -> submitting job triggered`, {
|
|
40040
40040
|
input,
|
|
40041
40041
|
});
|
|
40042
40042
|
const queue = await this.ensureQueue(this.awsSettings.defaultQueueName);
|
|
@@ -40056,7 +40056,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40056
40056
|
}
|
|
40057
40057
|
: {}),
|
|
40058
40058
|
};
|
|
40059
|
-
this.logger.info(`AWS JOB ->
|
|
40059
|
+
this.logger.info(`AWS JOB -> invoking job ${jobName} ${queue.jobQueueArn}`, {
|
|
40060
40060
|
request: submitJobRequest,
|
|
40061
40061
|
});
|
|
40062
40062
|
const result = await this.client().send(new SubmitJobCommand(submitJobRequest));
|
|
@@ -40144,7 +40144,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40144
40144
|
async ensureJobLogDriver(jobName, definition) {
|
|
40145
40145
|
const logGroup = definition.infrastructureParams.logGroupName
|
|
40146
40146
|
? {
|
|
40147
|
-
name: `/aws/batch
|
|
40147
|
+
name: `/aws/batch/${awsBatchSettings.value.batchResourcesPrefix}-job-${definition.infrastructureParams.logGroupName}`,
|
|
40148
40148
|
}
|
|
40149
40149
|
: undefined;
|
|
40150
40150
|
if (!logGroup) {
|
|
@@ -40241,12 +40241,13 @@ let AwsJobsProvider = class AwsJobsProvider {
|
|
|
40241
40241
|
}
|
|
40242
40242
|
async dispatch(input) {
|
|
40243
40243
|
const { definition, schedule, instanceId, payload, commandPlaceholders } = input;
|
|
40244
|
-
const awsInvocationParams = schedule?.invocationOverrides
|
|
40244
|
+
const awsInvocationParams = schedule?.invocationOverrides ??
|
|
40245
|
+
definition.invocationParams;
|
|
40245
40246
|
await this.awsBatchService.submitJob({
|
|
40246
40247
|
instanceId,
|
|
40247
40248
|
jobUid: definition.uid,
|
|
40248
40249
|
overrides: {
|
|
40249
|
-
command: awsInvocationParams
|
|
40250
|
+
command: awsInvocationParams.startCommand?.map((x) => replacePlaceholders(replacePayload(x, payload), commandPlaceholders)),
|
|
40250
40251
|
},
|
|
40251
40252
|
});
|
|
40252
40253
|
}
|