Skip to content

fix(batch_runner): add discarded prompts to completed set on resume#9993

Closed
zhouhe-xydt wants to merge 1 commit into
NousResearch:mainfrom
zhouhe-xydt:fix/9950-batch-runner-discarded-resume
Closed

fix(batch_runner): add discarded prompts to completed set on resume#9993
zhouhe-xydt wants to merge 1 commit into
NousResearch:mainfrom
zhouhe-xydt:fix/9950-batch-runner-discarded-resume

Conversation

@zhouhe-xydt

Copy link
Copy Markdown

Summary

Fixes a bug where prompts discarded for having no reasoning (has_any_reasoning=False) were not added to completed_in_batch, causing --resume to retry them indefinitely.

What changed

In _process_batch_worker(), when a prompt is discarded due to zero reasoning across all turns, we now append its prompt_index to completed_in_batch before continuing. This ensures the checkpoint records the prompt as dispositioned and resume will not re-run it.

Related issue

Fixes #9950

Testing

  • Verified Python syntax with py_compile
  • Wrote a standalone regression test confirming the discarded prompt is now included in completed_prompts

Checklist

  • Bug fix (non-breaking change)
  • Minimal, focused change
  • Verified with standalone test logic

When a prompt was discarded due to has_any_reasoning=False, the
prompt index was never added to completed_in_batch. This caused
--resume to retry the same prompt indefinitely.

Fixes NousResearch#9950
@teknium1

Copy link
Copy Markdown
Contributor

Closed in favor of PR #12997 #12997 which fixes the same issue. Thanks @zhouhe-xydt!

@teknium1 teknium1 closed this Apr 20, 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.

batch_runner retries intentionally discarded no-reasoning prompts on every --resume

2 participants