⚡ [Performance] Optimize N+1 query in reconcile pending attempts#5
Conversation
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
… /zenith skill (#5) * Update README added quick agentic Zenith installation instructions Added instructions agentic installation for Zenith, its requirements, and a /zenith global skill for both claude code and codex * Agentic Install Instructions now include hermess and future providers a note to check all harness providers in zenith/src/zenith_harness/providers.py was added so whenever a new harness provider is supperted, ie hermess, it would auto detect them, and install the /zenith skills for them
…-Internet#15) * chore: add Apache-2.0 license and package metadata Add the Apache License 2.0 at the repo root (code license; the technical report remains CC BY 4.0 per CITATION.cff) and fill in pyproject metadata: license, authors, keywords, classifiers, and project URLs. * fix: stale init-message assertion, message grammar, unused import The codex init test still asserted the pre-#5 next-steps wording. Align the CLI message grammar with the README phrasing and update the assertion. Drop an unused Task import flagged by ruff.
💡 What: Modified
_reconcile_pending_attemptsto batch load all mission attempts once instead of querying for each individual task's node_id.🎯 Why: To eliminate the N+1 query problem during task state reconciliation, significantly reducing overhead when scaling to many tasks and attempts.
📊 Measured Improvement: In a benchmark processing 500 tasks with 20000 total attempts, execution time improved from ~1.33 seconds down to ~0.03 seconds.
PR created automatically by Jules for task 2328689336126414086 started by @jnorthrup