Skip to content

Commit

Permalink
fix(infra): fix prod scheduled task definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz committed Jul 25, 2023
1 parent 357f77f commit 8a4868d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/prod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -992,16 +992,19 @@ export const dockrRunCmd = pulumi.secret(
// ECS Scheduled Task
//////////////////////////////////////////////////////////////
const weeklyDataDump = new awsx.ecs.FargateTaskDefinition("weekly-data-dump", {
executionRole: dpoppEcsRole,
containers: {
web: {
image: dockerGtcPassportScorerImage,
cpu: 256,
memory: 2048,
secrets,
environment,
command: ["python", "manage.py", "dump_stamp_data"],
},
},
});
export const weeklyDataDumpTaskDefinition = weeklyDataDump.taskDefinition.id;

const scheduledEventRule = new aws.cloudwatch.EventRule("scheduledEventRule", {
scheduleExpression: "cron(0 12 ? * FRI *)", // Run the task every friday at 12 UTC
Expand Down

0 comments on commit 8a4868d

Please sign in to comment.