Skip to content

Commit

Permalink
optimize adapters schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Nov 22, 2024
1 parent 91ff94e commit e4d163e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ functions:
timeout: 900
memorySize: 10240
events:
- schedule: cron(32 * * * ? *)
- schedule: cron(10 * * * ? *)
checkStaleBridges:
handler: src/handlers/checkStaleBridges.default
timeout: 600
Expand All @@ -158,7 +158,7 @@ functions:
timeout: 900
memorySize: 1024
events:
- schedule: cron(0 * * * ? *)
- schedule: cron(0,15,30,45 * * * ? *)
runAdapterByName:
handler: src/handlers/runAdapterByName.default
timeout: 900
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/runAllAdaptersHistorical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function invokeLambda(functionName: string, event: any) {
const handler = async (_event: any) => {
await closeIdleConnections();
const now = Math.floor(Date.now() / 1000);
const fourHoursAgo = now - 60 * 60 * 4;
const fourHoursAgo = now - 60 * 60;

for (const bridge of bridgeNetworks) {
await invokeLambda("llama-bridges-prod-runAdapterFromTo", {
Expand Down

0 comments on commit e4d163e

Please sign in to comment.