FeatureFuel
1

Edge Function runtime events

Source: supabase/supabase#29052 · opened by @gc-ft
Hi, it would be extremely useful to have a system in place that sends a signal or such to an edge function when it reaches close to its lifetime. I can handle the wall clock limit easily with a timeout trigger, but the cpu time limit is harder to do considering I can not find any reliable source for cpu time used. There is a graceful shutdown feature in the edge-runtime for local dev, but there seems to be nothing at all on the actual edge functions system? I have tried the following: 1) ALL OS signals, not a single one is received during the lifetime of the edge function. 2) Deno.serve() does not throw an error when it gets shutdown. 3) the server returned by Deno does not resolve the server.finished promise when it gets shutdown. Am I missing something here? I read a comment from @GaryAustin1 saying that one should spawn a new edge function if the current one is working on things but is at end of life... all great that idea, but if we have no clue of safely knowing…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests