Skip to content

[Fix] TestClusterExecutor wait for futures with dependencies#912

Closed
jan-janssen wants to merge 1 commit intomainfrom
TestClusterExecutorDependencies
Closed

[Fix] TestClusterExecutor wait for futures with dependencies#912
jan-janssen wants to merge 1 commit intomainfrom
TestClusterExecutorDependencies

Conversation

@jan-janssen
Copy link
Member

@jan-janssen jan-janssen commented Feb 14, 2026

Summary by CodeRabbit

Bug Fixes

  • Improved task cleanup during shutdown to ensure pending tasks are properly flushed even when certain wait conditions are disabled, preventing unresolved task entries from remaining in the system.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 14, 2026

📝 Walkthrough

Walkthrough

The shutdown logic in execute_tasks_h5 now includes an additional cleanup loop that refreshes the memory dictionary when either per-task or global wait flags are disabled, ensuring pending tasks are flushed before termination rather than breaking out immediately.

Changes

Cohort / File(s) Summary
Shutdown Cleanup Enhancement
src/executorlib/task_scheduler/file/shared.py
Added conditional memory-dictionary refresh loop in execute_tasks_h5's shutdown handler to flush pending tasks when wait flags are disabled, replacing immediate termination with exhaustive cleanup.

Possibly related PRs

Poem

🐰 A rabbit hops through shutdown's maze,
Refreshing dicts in morning's haze,
No task left pending, clean and bright—
Memory flushed before the night! ✨


🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions 'TestClusterExecutor' and 'dependencies', but the actual change modifies memory-dictionary refresh logic in execute_tasks_h5 shutdown handling, which is more specific than what the title conveys. Revise the title to reflect the actual change, such as: '[Fix] ensure memory-dict cleanup during execute_tasks_h5 shutdown when waiting is disabled' or similar.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch TestClusterExecutorDependencies

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jan-janssen jan-janssen marked this pull request as draft February 14, 2026 10:53
@jan-janssen jan-janssen deleted the TestClusterExecutorDependencies branch February 14, 2026 11:06
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