@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/esm/index.js
CHANGED
|
@@ -40001,6 +40001,7 @@ const ensureJobLogGroup = async (logGroupName, awsSettings) => {
|
|
|
40001
40001
|
var AwsBatchService_1;
|
|
40002
40002
|
const jobDefinitionName = (jobUid) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}`;
|
|
40003
40003
|
const jobInstanceName = (jobUid, instanceId) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}-${instanceId}`;
|
|
40004
|
+
const jobQueueName = (jobUid) => `${awsBatchSettings.value.batchResourcesPrefix}-queue-${jobUid}`;
|
|
40004
40005
|
let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
40005
40006
|
constructor() {
|
|
40006
40007
|
this.logger = Log.getLogger(AwsBatchService_1.name);
|
|
@@ -40024,7 +40025,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40024
40025
|
const jobName = jobInstanceName(input.jobUid, input.instanceId);
|
|
40025
40026
|
this.logger.info(`AWS JOB -> fetching job ${jobName}`);
|
|
40026
40027
|
const result = await this.client().send(new ListJobsCommand({
|
|
40027
|
-
jobQueue:
|
|
40028
|
+
jobQueue: jobQueueName(input.jobUid),
|
|
40028
40029
|
maxResults: 1,
|
|
40029
40030
|
filters: [
|
|
40030
40031
|
{
|
|
@@ -40039,7 +40040,7 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40039
40040
|
this.logger.info(`AWS JOB -> submitting job triggered`, {
|
|
40040
40041
|
input,
|
|
40041
40042
|
});
|
|
40042
|
-
const queue = await this.ensureQueue(
|
|
40043
|
+
const queue = await this.ensureQueue(jobQueueName(input.jobUid));
|
|
40043
40044
|
const jobDefName = jobDefinitionName(input.jobUid);
|
|
40044
40045
|
const jobDefinition = await this.getLatestJobDefinition(jobDefName);
|
|
40045
40046
|
const jobName = jobInstanceName(input.jobUid, input.instanceId);
|