Fix and accelerate LLM tabular background runs - #1178
Merged
Paul Lizer (paullizer) merged 3 commits intoAug 10, 2026
Conversation
Contributor
Author
|
Added retry capability for failed tabular generated exports:
Validation rerun:
|
Paul Lizer (paullizer)
merged commit Aug 10, 2026
7f15e05
into
microsoft:feature/tabular-unbounded-analysis
2 checks passed
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.
Summary - Fixes streaming direct source-backed tabular queue calls by passing required model and settings arguments with explicit keywords. - Automatically retries LLM row-count/schema/source-token validation failures, then preserves manual Continue from durable checkpoints after automatic retries are exhausted. - Keeps every row-level answer LLM-generated while increasing independent model-call concurrency through adaptive 4/16/64/128 tiers; explicit administrator concurrency still overrides the tier. - Sizes source batches from selected-model metadata or optional input/output token-limit fields in the local model capability catalog, with bounded fallback budgets, 50% input and 60% output targets, and a 180k soft input cap for contexts over 500k tokens. - Calculates ETA from recent wall-clock rows/minute across parallel windows instead of summing concurrent request durations as serial work. - Persists progress once per completed parallel window and exposes throughput, configured concurrency, and effective concurrency on the chat status card. - Bumps the application to 0.250.136 and updates feature/test documentation. ## Production evidence - The 30,000-row source staged as 909 batches of about 33 rows under the prior 60k-character budget. - Runtime used concurrency 3 and reported about 35 hours remaining because concurrent request durations were serialized in ETA math. - At the observed roughly 155 seconds per 33-row model call, 100-128 effective asynchronous calls project the same LLM-only workload into roughly the 18-25 minute range before validation retries. Actual time remains model- and output-volume-dependent. ## Validation -
python -m py_compile application/single_app/config.py application/single_app/functions_tabular_generated_exports.py functional_tests/test_tabular_row_orchestration_scale.py ui_tests/test_chat_background_generated_export_status.py-python functional_tests/test_tabular_row_orchestration_scale.py-node --check application/single_app/static/js/chat/chat-messages.js-python -m json.tool application/single_app/static/json/model_capabilities.json-python -m pytest ui_tests/test_chat_background_generated_export_status.py -q(5 skipped locally because authenticated UI target variables are not configured) - VS Code diagnostics: clean for all changed code/test files -git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --checkRefs #1031