This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
test: is_pending() test holds the worker with SQL script SLEEP and proves the hold - #160
Merged
Merged
Conversation
…oves the hold (#159) The hold was SELECT sleep(1500), and ArcadeDB SQL has no sleep() function: the command failed on the async worker, the error was swallowed, and the test raced the drain (lost on CI's macOS Python 3.13 runner, run 37199978708). SLEEP 1500 in SQL script holds the worker, and the test now asserts the queue took at least 1.2 s to drain and stored all 50 rows, so a hold that stops holding fails here instead of turning back into a race. Checked: the fixed test passed 3 of 3 locally; the old hold drains in 0.085 s, which the new assertion fails. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DeKEhHXJTy1H1GgbfBZ8mL
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #159.
test_async_executor_is_pending_true_while_queuedheld the single async worker withSELECT sleep(1500), a function ArcadeDB SQL does not have, so nothing was held and the test raced the drain; only the fastest CI runner (macOS arm64, Python 3.13, run 37199978708) lost. It now holds the worker with SQL script'sSLEEP 1500and asserts the hold happened: the queue takes at least 1.2 s to drain and stores all 50 rows.Locally: the fixed test passed 3 of 3 (about 2.6-3.0 s each); the old hold drains in 0.085 s, which the new assertion fails.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DeKEhHXJTy1H1GgbfBZ8mL