Skip to content

Keep late output from recreating culled task results - #1060

Open
Boulea7 wants to merge 1 commit into
ipython:mainfrom
Boulea7:fix-culled-result-records
Open

Boulea7 wants to merge 1 commit into
ipython:mainfrom
Boulea7:fix-culled-result-records

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 3, 2026

Copy link
Copy Markdown

Late stdout can recreate a task record after the Hub has discarded its result. A client retrieving that record then hits TypeError: 'NoneType' object is not subscriptable in result_status(..., status_only=False).

This change keeps discarded records out of the database and lets the Hub explain when it knows a task finished but its result is unavailable. Status-only queries still report completion.

On 9.0.0 with Python 3.11, the submitting client reproduced the reported traceback with one engine and nine tasks that printed and returned a square. The same incomplete records occur on 9.2.0 and main. With DictDB.record_limit=4 and cull_fraction=0.5, the patched Hub returned the three retained results and a remote KeyError naming each of the six discarded tasks. I also checked stdout arriving after an explicit purge with both DictDB and SQLiteDB.

Refs #937. Developed with assistance from OpenAI Codex.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T05:50:29.338348Z
We couldn’t complete this review. Comment @codex review to try again.
5f99bc5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
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