Skip to content

fix: ATL-291: raise CommandTimeout for MatchPredictionContext - #1502

Merged
da-ikovalenko merged 1 commit into
rc/4.0.0from
atl-291-raise-matchprediction-commandtimeout
Aug 12, 2026
Merged

fix: ATL-291: raise CommandTimeout for MatchPredictionContext#1502
da-ikovalenko merged 1 commit into
rc/4.0.0from
atl-291-raise-matchprediction-commandtimeout

Conversation

@da-ikovalenko

@da-ikovalenko da-ikovalenko commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • CleanupOldParallelMatchPredictionBatches was timing out because the production MatchPredictionContext never overrode the SqlClient/EF Core default 30s CommandTimeout, while the same DELETE routinely needs longer as the batch-cleanup backlog grows.
  • Raise CommandTimeout to 10 minutes on MatchPredictionContext (Atlas.Functions/Startup.cs, RegisterMatchPredictionDatabase), matching the pattern already used by Atlas.MatchPrediction.Test.Verification.Data and Atlas.MatchPrediction.Test.Validation.Data's ContextFactorys.

See ATL-291 for the full root-cause writeup and the fix proposal this implements.

Test plan

  • dotnet build Atlas.Functions/Atlas.Functions.csproj --configuration Release — 0 errors
  • Deploy and confirm CleanupOldParallelMatchPredictionBatches completes and clears the backlog (watch App Insights execution duration + the "batch cleanup deleted {Count}" log line)

🤖 Generated with Claude Code


This change is Reviewable

CleanupOldParallelMatchPredictionBatches was failing because the DELETE
against ParallelMatchPredictionBatches/Runs exceeded the SqlClient/EF
Core default 30s CommandTimeout, which was never overridden for the
production MatchPredictionContext. Raise it to 10 minutes, matching the
existing pattern already used by the Test.Verification and
Test.Validation MatchPrediction contexts.
@da-ikovalenko
da-ikovalenko merged commit 9b5b1f9 into rc/4.0.0 Aug 12, 2026
2 checks passed
@da-ikovalenko
da-ikovalenko deleted the atl-291-raise-matchprediction-commandtimeout branch August 12, 2026 10:41
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.

2 participants