From 18253ec97030aacfdc76613890381e784b2364d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Sep 2025 16:58:35 +0000 Subject: [PATCH 1/2] docs: update code samples from OpenAPI --- snippets/openapi/get-deployments.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/snippets/openapi/get-deployments.mdx b/snippets/openapi/get-deployments.mdx index 7cfb64f..bb66cea 100644 --- a/snippets/openapi/get-deployments.mdx +++ b/snippets/openapi/get-deployments.mdx @@ -6,9 +6,10 @@ const client = new Kernel({ apiKey: 'My API Key', }); -const deployments = await client.deployments.list(); - -console.log(deployments); +// Automatically fetches more pages as needed. +for await (const deploymentListResponse of client.deployments.list()) { + console.log(deploymentListResponse.id); +} ``` @@ -18,7 +19,8 @@ from kernel import Kernel client = Kernel( api_key="My API Key", ) -deployments = client.deployments.list() -print(deployments) +page = client.deployments.list() +page = page.items[0] +print(page.id) ``` From 67131983bba3d7645b187760b8e65ee63e9969e3 Mon Sep 17 00:00:00 2001 From: Daniel Prevoznik Date: Fri, 5 Sep 2025 13:09:37 -0400 Subject: [PATCH 2/2] Async Invocation time out note Add info about timeout of 15 minutes for async invocations --- apps/invoke.mdx | 2 ++ reference/cli/apps.mdx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/invoke.mdx b/apps/invoke.mdx index 23cc925..b5576f8 100644 --- a/apps/invoke.mdx +++ b/apps/invoke.mdx @@ -17,6 +17,8 @@ You can invoke your app by making a `POST` request to Kernel's API or via the CL For long running jobs, use asynchronous invocations to trigger Kernel actions without waiting for the result. You can then poll its [status](/apps/status) for the result. +Asynchronous invocations time out after 15 minutes. + ## Via CLI diff --git a/reference/cli/apps.mdx b/reference/cli/apps.mdx index 23ae38c..0377583 100644 --- a/reference/cli/apps.mdx +++ b/reference/cli/apps.mdx @@ -21,7 +21,7 @@ Invoke a specific app action by its name. Generates an Invocation. | `--payload `, `-p` | Stringified JSON object (max 64 KB). Optional. | | `--sync`, `-s` | Invoke synchronously (default false). Optional. | -Synchronous invocations open a long-lived HTTP POST that times out after 60 seconds. Press `ctrl-c` to terminate a running invocation; associated browsers are destroyed. +Synchronous invocations open a long-lived HTTP POST that times out after 60 seconds. Asynchronous invocations time out after 15 minutes. Press `ctrl-c` to terminate a running invocation; associated browsers are destroyed. ## `kernel app list` List deployed application versions.