diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 6745a82..9d9dde0 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: exporter-trigger description: A Helm chart for exporter-trigger service type: application -version: 2.17.4 -appVersion: 2.17.4 +version: 2.17.5 +appVersion: 2.17.5 diff --git a/src/clients/jobManagerWrapper.ts b/src/clients/jobManagerWrapper.ts index 7ac5780..4a5cd5d 100644 --- a/src/clients/jobManagerWrapper.ts +++ b/src/clients/jobManagerWrapper.ts @@ -280,6 +280,10 @@ export class JobManagerWrapper extends JobManagerClient { cleanupExpirationTimeUTC: newExpirationDate, directoryPath: job.parameters.relativeDirectoryPath, }, + callbackParams: { + ...job.parameters.callbackParams, + expirationTime: newExpirationDate, + }, }, }); } else { diff --git a/tests/unit/clients/jobManagerClient.spec.ts b/tests/unit/clients/jobManagerClient.spec.ts index 344b93b..a254aac 100644 --- a/tests/unit/clients/jobManagerClient.spec.ts +++ b/tests/unit/clients/jobManagerClient.spec.ts @@ -136,6 +136,7 @@ describe('JobManagerClient', () => { parameters: { ...completedJob.parameters, cleanupData: { ...completedJob.parameters.cleanupData, cleanupExpirationTimeUTC: testExpirationDate }, + callbackParams: { ...completedJob.parameters.callbackParams, expirationTime: testExpirationDate }, }, }); @@ -145,8 +146,11 @@ describe('JobManagerClient', () => { expect(putFun).toHaveBeenCalledTimes(1); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access const expirationParamCall: Date = putFun.mock.calls[0][1].parameters.cleanupData.cleanupExpirationTimeUTC; + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access + const expirationCallbackParams: Date = putFun.mock.calls[0][1].parameters.callbackParams.expirationTime; expirationParamCall.setSeconds(0, 0); expect(JSON.stringify(expirationParamCall)).toBe(JSON.stringify(expectedNewExpirationDate)); + expect(JSON.stringify(expirationCallbackParams)).toBe(JSON.stringify(expectedNewExpirationDate)); }); /**