Skip to content

Give linked server pulls a 3 hour timeout and time the UCPath pulls - #155

Merged
rmartinsen-ucd merged 1 commit into
mainfrom
rpm/linked-server-timeout
Dec 1, 2026
Merged

rmartinsen-ucd merged 1 commit into
mainfrom
rpm/linked-server-timeout

Conversation

@rmartinsen-ucd

Copy link
Copy Markdown
Contributor

Why

The first import after #154 failed at the UCPath transactions stage with an execution timeout. The trace shows SQL Server waiting on Oracle for the first rows of one of the two payroll pulls for the full 3,600 seconds. Earlier runs of the whole stage took 49 to 62 minutes, so adding purpose 40 made one pull much slower to start returning rows.

What changed

  • Linked server reads and their bulk copies use a new LinkedServerCommandTimeoutSeconds of 3 hours. The shared ImportCommandTimeoutSeconds stays at 1 hour because the Expense Review and Project List queries also use it.
  • The salary and fringe pulls each log a start line and a line with rows copied and elapsed seconds, so a slow or timed out run shows which pull it was.

Things to know

  • This applies to every linked server stage, not only UCPath.
  • The UCPath stage can now run up to about 6 hours in the worst case before failing, since each pull has its own limit.
  • If the rerun is still too slow, the next step is narrowing the purpose 40 arm to rows that have a PPM project.

Testing

Server suite passes (666 tests). Not yet run against the real linked servers.

🤖 Generated with Claude Code

The UCPath stage timed out waiting on Oracle for the first rows once
purpose 40 was added. Linked server reads and bulk copies get their own
longer timeout, and the salary and fringe pulls log rows and elapsed
time so a slow run shows which pull it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bedb21d2-4c50-4d18-bdc2-a8810533f895
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@rmartinsen-ucd
rmartinsen-ucd merged commit 5c75d12 into main Dec 1, 2026
2 checks passed
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