MCPcopy Create free account
hub / github.com/aws-samples/remote-swe-agents / handler

Function handler

cdk/lib/constructs/lambda-warmer/lambda/handler.ts:4–14  ·  view source on GitHub ↗
(event, context)

Source from the content-addressed store, hash-verified

2import { LambdaWarmerPayload } from './type';
3
4export const handler: Handler<LambdaWarmerPayload> = async (event, context) => {
5 const { url, concurrency } = event;
6
7 console.log(`warming ${url} with concurrency ${concurrency}...`);
8
9 await Promise.all(
10 new Array(concurrency).fill(0).map(async () => {
11 await fetch(url);
12 })
13 );
14};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected