From 41c261240e23b72b79ae4d81a92230d3fd77824e Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:52:54 +0100 Subject: [PATCH 1/2] chore: update cli reference doc (#30487) --- apps/docs/spec/cli_v1_commands.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yaml index 553fe3008b6..9a9589100e9 100644 --- a/apps/docs/spec/cli_v1_commands.yaml +++ b/apps/docs/spec/cli_v1_commands.yaml @@ -1,7 +1,7 @@ clispec: '001' info: id: cli - version: 1.219.2 + version: 1.223.7 title: Supabase CLI language: sh source: https://github.com/supabase/cli From a37c91c9e59845123a4bf9772c8c6a7e77389a9d Mon Sep 17 00:00:00 2001 From: Lakshan Perera Date: Sat, 16 Nov 2024 04:54:45 +1100 Subject: [PATCH 2/2] chore: update background tasks guide (#30481) --- apps/docs/content/guides/functions/background-tasks.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/docs/content/guides/functions/background-tasks.mdx b/apps/docs/content/guides/functions/background-tasks.mdx index 7eb79415be5..fbc1f2aebf8 100644 --- a/apps/docs/content/guides/functions/background-tasks.mdx +++ b/apps/docs/content/guides/functions/background-tasks.mdx @@ -8,7 +8,11 @@ tocVideo: 'rSKBTJxG9VA' Edge Function instances can process background tasks outside of the request handler. Background tasks are useful for asynchronous operations like uploading a file to Storage, updating a database, or sending events to a logging service. You can respond to the request immediately and leave the task running in the background. -A background task can run until the Edge Function instance hits its [wall-clock limit](/docs/guides/functions/limits). +### How long a background task can run + +A background task can run until the Edge Function instance hits its wall-clock limit or reaches CPU/Memory limit. Check [limits](/docs/guides/functions/limits) for current caps. + +### Example Here's an example of defining a background task using a custom event.