@punks/backend-entity-manager 0.0.474 → 0.0.476

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.
@@ -1,6 +1,8 @@
1
+ import { BatchJobVariables } from "../../../../plugins/jobs/aws-batch/manager/types";
1
2
  export type JobTriggerInput = {
2
3
  jobUid: string;
3
4
  scheduleUid?: string;
4
5
  payload?: any;
5
6
  commandPlaceholders?: Record<string, string>;
7
+ variables?: BatchJobVariables;
6
8
  };
@@ -8,6 +8,7 @@ export type AwsBatchInfrastructureParams = {
8
8
  vcpu: number;
9
9
  memory: number;
10
10
  gpu?: number;
11
+ ephemeralStorageGB?: number;
11
12
  dockerImage: string;
12
13
  environmentVariables?: AwsJobEnvironmentVariable[];
13
14
  computePlatformType?: AwsJobComputePlatformType;
package/dist/esm/index.js CHANGED
@@ -34812,6 +34812,7 @@ let JobsService = class JobsService {
34812
34812
  runType: JobRunType.OnDemand,
34813
34813
  payload: input.payload,
34814
34814
  commandPlaceholders: input.commandPlaceholders,
34815
+ variables: input.variables,
34815
34816
  }));
34816
34817
  };
34817
34818
  this.updateJob = async (input) => {
@@ -41656,6 +41657,11 @@ let AwsBatchService = AwsBatchService_1 = class AwsBatchService {
41656
41657
  command: definition.invocationParams.startCommand,
41657
41658
  image: definition.infrastructureParams.dockerImage,
41658
41659
  executionRoleArn: this.awsSettings.batchExecutionRole,
41660
+ ephemeralStorage: definition.infrastructureParams.ephemeralStorageGB
41661
+ ? {
41662
+ sizeInGiB: definition.infrastructureParams.ephemeralStorageGB,
41663
+ }
41664
+ : undefined,
41659
41665
  resourceRequirements: [
41660
41666
  {
41661
41667
  type: ResourceType.MEMORY,