Repository navigation
fix(runtime): el código de execute puede correr hasta 60 minutos - #22
Merged
Merged
Conversation
Raise DEFAULT_TIMEOUT_MS from five to sixty minutes in the dynamic-worker, QuickJS, Deno and workerd runtimes, so a script that waits on a long job finishes in one execute call. Callers can still pass a shorter timeoutMs. Claude-Session: https://claude.ai/code/session_018KRLKV5j8vbaAyH3UgPVtw
fforres
force-pushed
the
fforres/execute-timeout-60m
branch
from
October 13, 2026 22:31
0c4ee71 to
e682f46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
Un script que corre con
executeahora tiene 60 minutos antes de que se corte, en vez de 5. Así un script que espera un trabajo largo (consultar una ejecución en una máquina, una llamada lenta a otra API) termina en una sola llamada, sin que quien lo usa tenga que partirlo en pedazos de menos de 5 minutos.Detalles
DEFAULT_TIMEOUT_MSpasa de 5 a 60 minutos en los cuatro runtimes: dynamic-worker (el que usaexecutor-cloudflareconLOADER), QuickJS (el respaldo sinLOADER), Deno y workerd. Quien pase untimeoutMsmás corto lo sigue teniendo.execute-one-hour.md. Los tests de los cuatro runtimes pasan (28, 76, 19 y 12).Límites que quedan
limits.cpu_ms, hasta 5 min en el plan pago). Esperar I/O, como llamadas a herramientas osleep, no cuenta, así que un script que mayormente espera puede correr los 60 minutos.PAUSED_APPROVAL_TIMEOUT_MS) sigue en 4 minutos; es aparte.https://claude.ai/code/session_018KRLKV5j8vbaAyH3UgPVtw