Skip to content

Commit

Permalink
update for 22.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientromp committed Feb 19, 2022
1 parent 17b882c commit e06b6cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/stats-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export class StatsBuilder {
return;
}

if (parseInt(message.buildNumber) > 130051) {
return;
}
// if (parseInt(message.buildNumber) > 130051) {
// return;
// }

if (verbose) {
console.log('sync', message);
Expand Down
6 changes: 3 additions & 3 deletions src/trigger-sync-reprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const sns = new Sns();
// [1]: https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/
export default async (event): Promise<any> => {
const mysql = await getConnection();
const startId = 189123703;
const endId = 189338884;
const startId = 199703340;
const endId = 199896855;
const query = `
SELECT * FROM replay_summary
where gameMode = 'ranked'
Expand All @@ -26,7 +26,7 @@ export default async (event): Promise<any> => {

const chunks = chunk(results, 200);
for (const chunk of chunks) {
console.log('sending chunk');
// console.log('sending chunk');
await Promise.all(chunk.map(reviewToNotify => sns.notifySyncReprocess(reviewToNotify)));
}

Expand Down
4 changes: 2 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: process-sync-stats.default
Runtime: nodejs10.x
Runtime: nodejs12.x
CodeUri: ./dist/process-sync-stats
Timeout: 60 # Because of BG games
MemorySize: 384 # Increase memory to be able to handle big games like BGS
Expand Down Expand Up @@ -81,7 +81,7 @@ Resources:
Properties:
Handler: sync-data-reprocess.default
# Runtime: nodejs8.10 # Used for dev
Runtime: nodejs10.x
Runtime: nodejs12.x
Timeout: 10
CodeUri: ./dist/sync-data-reprocess
MemorySize: 384 # Increase memory to be able to handle big games like BGS
Expand Down

0 comments on commit e06b6cb

Please sign in to comment.