@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.
@@ -3,7 +3,6 @@ export type AwsBatchSettings = {
3
3
  awsAccessKeyId?: string;
4
4
  awsSecretAccessKey?: string;
5
5
  region?: string;
6
- defaultQueueName: string;
7
6
  batchComputeEnvironment: string;
8
7
  batchExecutionRole: string;
9
8
  batchResourcesPrefix: string;
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: this.awsSettings.defaultQueueName,
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(this.awsSettings.defaultQueueName);
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);