Skip to content

Commit

Permalink
fix: do not abort function reqs after 200s (#2879)
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek authored Nov 13, 2024
2 parents b497d18 + d3d0e8e commit 2185b1c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions internal/functions/serve/templates/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,7 @@ Deno.serve({
maybeEntrypoint
});

const controller = new AbortController();
const { signal } = controller;

// Note: Requests are aborted after 200s (same config as in production)
// TODO: make this configuarable
setTimeout(() => controller.abort(), 200 * 1000);

return await worker.fetch(req, { signal });
return await worker.fetch(req);
} catch (e) {
console.error(e);

Expand Down

0 comments on commit 2185b1c

Please sign in to comment.