Skip to content

Commit

Permalink
Merge branch 'EH-1578' into qa
Browse files Browse the repository at this point in the history
  • Loading branch information
tomikat committed Nov 17, 2023
2 parents 06cbd48 + 45b1ff2 commit dae4fb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cdk/lib/tpk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ export class HeratepalveluTPKStack extends HeratepalveluStack {
schedule: events.Schedule.expression(
`cron(5,25,45 0-5 ? JUN,DEC MON,THU *)`
),
enabled: false,
targets: [new targets.LambdaFunction(tpkNiputusHandler)]
});
new events.Rule(this, "TPKNiputusHandlerJanuaryFirstScheduleRule", {
schedule: events.Schedule.expression(
`cron(5,25,45 0-5 1 JAN ? *)`
),
enabled: false,
targets: [new targets.LambdaFunction(tpkNiputusHandler)]
});

Expand All @@ -112,12 +114,14 @@ export class HeratepalveluTPKStack extends HeratepalveluStack {
schedule: events.Schedule.expression(
`cron(5,25,45 6-18 ? JUN,DEC MON,THU *)`
),
enabled: false,
targets: [new targets.LambdaFunction(tpkArvoCallHandler)]
});
new events.Rule(this, "TPKArvoCallHandlerJanuaryFirstScheduleRule", {
schedule: events.Schedule.expression(
`cron(5,25,45 6-18 1 JAN ? *)`
),
enabled: false,
targets: [new targets.LambdaFunction(tpkArvoCallHandler)]
});

Expand Down

0 comments on commit dae4fb0

Please sign in to comment.