feat: User Job History & Cloud Run Worker Stability - #46
Merged
Merged
Conversation
…e file processing - Upgrade LLM model from gemini-2.5-flash to gemini-3.6-flash (65K output tokens) - Increase chunk size from 50-100 to 250-500 rows, producing fewer chunks - Fewer chunks = Pub/Sub push window can deliver them without throttling - Increase tenacity retry backoff (min 10s, max 120s) for concurrent chunk safety - Update test assertions for new chunk size formula
… synchronous threads
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR introduces the Extraction History Dashboard and resolves multiple critical performance and stability issues within the Cloud Run worker pipeline.
New Features
Critical Fixes & Worker Optimizations
async defto synchronousdefto prevent event loop deadlocks caused by blocking gRPC calls to Firestore and Cloud Storage.llm_engine.pyretry logic to instantly abort (fail-fast) on429Daily Quota limits and404API errors, preventing chunks from spinning redundantly for 13+ minutes.gemini-2.5-flashto escape restrictive 20 Requests-Per-Day experimental quota caps and utilize the 1,500 daily requests free tier..dockerignoreto successfully omit nested__pycache__&.pycbytecode files, eliminating ghost code execution in Cloud Run.created_atandcompleted_attimestamps to fix UI showing0s.Changelog Updated