Skip to content

Commit

Permalink
fix(infra): updating db version (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Mar 1, 2024
1 parent 1b7235a commit 28e9490
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 58 deletions.
2 changes: 1 addition & 1 deletion infra/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ const redashDb = new aws.rds.Instance(
allocatedStorage: 20,
maxAllocatedStorage: 20,
engine: "postgres",
engineVersion: "13.10",
engineVersion: "13.13",
instanceClass: "db.t3.micro",
dbName: redashDbName,
password: redashDbPassword,
Expand Down
116 changes: 59 additions & 57 deletions infra/prod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ const redashDb = new aws.rds.Instance(
allocatedStorage: 20,
maxAllocatedStorage: 20,
engine: "postgres",
engineVersion: "13.10",
engineVersion: "13.13",
instanceClass: "db.t3.micro",
dbName: redashDbName,
password: redashDbPassword,
Expand Down Expand Up @@ -1314,63 +1314,65 @@ export const frequentAlloScorerDataDumpTaskDefinition = createScheduledTask(
envConfig
);

export const frequentScorerDataDumpTaskDefinitionForScorer_335 = createScheduledTask(
"frequent-allo-scorer-data-dump-335",
{
...baseScorerServiceConfig,
securityGroup: secgrp,
command: [
"python",
"manage.py",
"scorer_dump_data",
"--config",
"'" +
JSON.stringify([
{
name: "registry.Score",
filter: { community_id: 335 },
select_related: ["passport"],
},
]) +
"'",
`--s3-uri=s3://${publicDataDomain}/passport_scores/335/`,
// "--summary-extra-args",
// JSON.stringify({ ACL: "public-read" }),
].join(" "),
scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min
alertTopic: pagerdutyTopic,
},
envConfig
);
export const frequentScorerDataDumpTaskDefinitionForScorer_335 =
createScheduledTask(
"frequent-allo-scorer-data-dump-335",
{
...baseScorerServiceConfig,
securityGroup: secgrp,
command: [
"python",
"manage.py",
"scorer_dump_data",
"--config",
"'" +
JSON.stringify([
{
name: "registry.Score",
filter: { community_id: 335 },
select_related: ["passport"],
},
]) +
"'",
`--s3-uri=s3://${publicDataDomain}/passport_scores/335/`,
// "--summary-extra-args",
// JSON.stringify({ ACL: "public-read" }),
].join(" "),
scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min
alertTopic: pagerdutyTopic,
},
envConfig
);

export const frequentScorerDataDumpTaskDefinitionForScorer_6608 = createScheduledTask(
"frequent-allo-scorer-data-dump-6608",
{
...baseScorerServiceConfig,
securityGroup: secgrp,
command: [
"python",
"manage.py",
"scorer_dump_data",
"--config",
"'" +
JSON.stringify([
{
name: "registry.Score",
filter: { community_id: 6608 },
select_related: ["passport"],
},
]) +
"'",
`--s3-uri=s3://${publicDataDomain}/passport_scores/6608/`,
// "--summary-extra-args",
// JSON.stringify({ ACL: "public-read" }),
].join(" "),
scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min
alertTopic: pagerdutyTopic,
},
envConfig
);
export const frequentScorerDataDumpTaskDefinitionForScorer_6608 =
createScheduledTask(
"frequent-allo-scorer-data-dump-6608",
{
...baseScorerServiceConfig,
securityGroup: secgrp,
command: [
"python",
"manage.py",
"scorer_dump_data",
"--config",
"'" +
JSON.stringify([
{
name: "registry.Score",
filter: { community_id: 6608 },
select_related: ["passport"],
},
]) +
"'",
`--s3-uri=s3://${publicDataDomain}/passport_scores/6608/`,
// "--summary-extra-args",
// JSON.stringify({ ACL: "public-read" }),
].join(" "),
scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min
alertTopic: pagerdutyTopic,
},
envConfig
);

const exportVals = createScoreExportBucketAndDomain(
publicDataDomain,
Expand Down

0 comments on commit 28e9490

Please sign in to comment.