@punks/backend-entity-manager 0.0.313 → 0.0.315
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 +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +0 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -40016,6 +40016,7 @@ const ensureJobLogGroup = async (logGroupName, awsSettings) => {
|
|
|
40016
40016
|
var AwsBatchService_1;
|
|
40017
40017
|
const jobDefinitionName = (jobUid) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}`;
|
|
40018
40018
|
const jobInstanceName = (jobUid, instanceId) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}-${instanceId}`;
|
|
40019
|
+
const jobQueueName = (jobUid) => `${awsBatchSettings.value.batchResourcesPrefix}-queue-${jobUid}`;
|
|
40019
40020
|
let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
40020
40021
|
constructor() {
|
|
40021
40022
|
this.logger = backendCore.Log.getLogger(AwsBatchService_1.name);
|
|
@@ -40039,7 +40040,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40039
40040
|
const jobName = jobInstanceName(input.jobUid, input.instanceId);
|
|
40040
40041
|
this.logger.info(`AWS JOB -> fetching job ${jobName}`);
|
|
40041
40042
|
const result = await this.client().send(new clientBatch.ListJobsCommand({
|
|
40042
|
-
jobQueue:
|
|
40043
|
+
jobQueue: jobQueueName(input.jobUid),
|
|
40043
40044
|
maxResults: 1,
|
|
40044
40045
|
filters: [
|
|
40045
40046
|
{
|
|
@@ -40054,7 +40055,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40054
40055
|
this.logger.info(`AWS JOB -> submitting job triggered`, {
|
|
40055
40056
|
input,
|
|
40056
40057
|
});
|
|
40057
|
-
const queue = await this.ensureQueue(
|
|
40058
|
+
const queue = await this.ensureQueue(jobQueueName(input.jobUid));
|
|
40058
40059
|
const jobDefName = jobDefinitionName(input.jobUid);
|
|
40059
40060
|
const jobDefinition = await this.getLatestJobDefinition(jobDefName);
|
|
40060
40061
|
const jobName = jobInstanceName(input.jobUid, input.instanceId);
|