@punks/backend-entity-manager 0.0.308 → 0.0.310
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 +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +1 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/plugins/jobs/aws-batch/settings/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -40012,8 +40012,8 @@ const ensureJobLogGroup = async (logGroupName, awsSettings) => {
|
|
|
40012
40012
|
};
|
|
40013
40013
|
|
|
40014
40014
|
var AwsBatchService_1;
|
|
40015
|
-
const jobDefinitionName = (jobUid) =>
|
|
40016
|
-
const jobInstanceName = (jobUid, instanceId) =>
|
|
40015
|
+
const jobDefinitionName = (jobUid) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}`;
|
|
40016
|
+
const jobInstanceName = (jobUid, instanceId) => `${awsBatchSettings.value.batchResourcesPrefix}-job-${jobUid}-${instanceId}`;
|
|
40017
40017
|
let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
40018
40018
|
constructor() {
|
|
40019
40019
|
this.logger = backendCore.Log.getLogger(AwsBatchService_1.name);
|
|
@@ -40194,6 +40194,8 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
|
|
|
40194
40194
|
this.logger.debug(`AWS JOB -> creating queue ${queueName}`);
|
|
40195
40195
|
await this.createQueue(queueName);
|
|
40196
40196
|
this.logger.debug(`AWS JOB -> queue created ${queueName}`);
|
|
40197
|
+
// Wait for the queue to be active
|
|
40198
|
+
await backendCore.sleep(10000);
|
|
40197
40199
|
const currentQueue = await this.getQueue(queueName);
|
|
40198
40200
|
if (!currentQueue) {
|
|
40199
40201
|
throw new Error(`Queue not created -> ${queueName}`);
|