Comments (4)
Is there a way to check if there are any tasks in the event loop? Ideally, we kill the worker if a response is returned and there are no pending tasks in the event loop. If there are pending tasks, we terminate after the timeout specified.
from edge-runtime.
@inian I think all tasks should be awaited before a response is given. Bottom linea would be if an HTTP response is sent, execution should end.
Though, how would we handle this with long serving serverless functions or SSE? Any proposals ? @inian @laktek
from edge-runtime.
This should be fixed with the changes in #63
from edge-runtime.
We want to reuse workers for multiple requests. So the user worker will run till the specified timeout. However, after each request socket between main and user worker is dropped after a request and need to be established again (it uses Unix sockets so less overhead compared to a TCP socket connection).
from edge-runtime.
Related Issues (20)
- event loop error HOT 5
- FunctionsFetchError: Failed to send a request to the Edge Function - effecting 1% of invocations HOT 10
- When I try importing directly from NPM via any of the following: HOT 2
- Transformers Regression and Swallowed console.errors
- event loop error: Error: unreachable HOT 5
- Feature Request: Handle gracefully shutting down server HOT 9
- how to deploy JS not TS? HOT 4
- Neither old (experimental) decorators nor new (stage 3) decorators work since upgrading to Deno 1.40 HOT 11
- ReferenceError: Status is not defined when using Hocuspocus NPM package HOT 9
- TypeError: upgradeHttpRaw may only be used with Deno.serve | Connecting to websocket provided by NPM package HOT 4
- Unable to deploy edge function (with axios) after upgrading the CLI HOT 3
- Local Edge Functions no longer working after upgrading to supabase CLI v1.153.1 HOT 9
- console.warn logged as error | want help with fixing this bug HOT 8
- Error loading supabase-js while deploying edge function HOT 2
- Hi i have an edge function deployed, till yesterday i was getting 200 but today i am only getting 500 when i am hitting the url. so it happening with anyone too?? HOT 3
- optimise gen function to use single memory allocation instead of 30+ currently
- Support private EC key signing
- Latest version of Oak (> 14.1.1) doesn't work on Edge Runtime HOT 2
- Set allowRemoteModules=false can not prevent load remote npm packages with "npm:" specifier HOT 2
- Requests to edge function fails on the server but works locally, please help HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edge-runtime.