Skip to content

Still trying to fix Turso - it's unbelievably slow - #3600

Merged
alexey-milovidov merged 1 commit into
mainfrom
launch-honor-timeout-seconds
Nov 26, 2026
Merged

alexey-milovidov merged 1 commit into
mainfrom
launch-honor-timeout-seconds

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

run-benchmark.sh takes the time limit from <system>/timeout-seconds when timeout is empty (added in #1159 for Turso), but the launch action always called it with timeout="${timeout:-36000}". For every workflow launch the variable was therefore already set, and the file was never read.

That is why the Turso run of #1009 on 2026-11-25 was killed by timeout 36000 after 32 of 43 queries, although turso/timeout-seconds says 72000 (cloud-init log, benchmark log).

The action now passes the empty timeout through. run-benchmark.sh already falls back to 36000 if the system has no such file, and an explicit timeout input still wins. The JSONBench launcher is not affected.

Dry run of the action's shell step with a stubbed aws, the time limit in the rendered cloud-init.sh:

action system timeout input result
before turso empty timeout 36000 ./benchmark.sh
after turso empty timeout 72000 ./benchmark.sh
after clickhouse empty timeout 36000 ./benchmark.sh
after turso 86400 timeout 86400 ./benchmark.sh
after clickhouse 7200 timeout 7200 ./benchmark.sh

Related: #1159
Related: #1009

🤖 Generated with Claude Code

`run-benchmark.sh` takes the time limit from `<system>/timeout-seconds`
when `timeout` is empty, but the launch action always called it with
`timeout="${timeout:-36000}"`, so for every workflow launch the variable
was already set and the file was never read. The Turso run of
#1009 on 2026-11-25 was
therefore killed by `timeout 36000` after 32 of 43 queries, although
`turso/timeout-seconds` says 72000.

Pass the empty `timeout` through; `run-benchmark.sh` already falls back
to 36000 if the system has no such file. An explicit `timeout` input
still wins.

Dry run of the action's shell step with a stubbed `aws`, time limit in
the rendered `cloud-init.sh`:

    before: turso, no timeout input      -> timeout 36000 ./benchmark.sh
    after:  turso, no timeout input      -> timeout 72000 ./benchmark.sh
    after:  clickhouse, no timeout input -> timeout 36000 ./benchmark.sh
    after:  turso, timeout input 86400   -> timeout 86400 ./benchmark.sh

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@alexey-milovidov
alexey-milovidov merged commit 21c4c33 into main Nov 26, 2026
3 checks passed
@alexey-milovidov alexey-milovidov changed the title Let the launch action honor a system's timeout-seconds file Still trying to fix Turso - it's unbelievably slow Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant