Skip to content

add a timeout for waiting on the lockfile. Set defaults for max jobs - #209

Merged
vbharadwaj-bk merged 2 commits into
mainfrom
torch-jit-build-enhanced-defaults
Aug 9, 2026
Merged

add a timeout for waiting on the lockfile. Set defaults for max jobs #209
vbharadwaj-bk merged 2 commits into
mainfrom
torch-jit-build-enhanced-defaults

Conversation

@asglover

Copy link
Copy Markdown
Collaborator

This adds the timeout for the JIT build lock, and puts a default limit for the number of ninja jobs. I've tested it and it worked as expected in a CUDA environment

@asglover
asglover marked this pull request as ready for review July 26, 2026 21:18
@asglover asglover added the ci-ready Triggers CI checks for a pull request label Jul 26, 2026

@vbharadwaj-bk vbharadwaj-bk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vbharadwaj-bk vbharadwaj-bk added ci-ready Triggers CI checks for a pull request and removed ci-ready Triggers CI checks for a pull request labels Aug 9, 2026
@vbharadwaj-bk
vbharadwaj-bk merged commit 606655b into main Aug 9, 2026
2 checks passed
@vbharadwaj-bk
vbharadwaj-bk deleted the torch-jit-build-enhanced-defaults branch August 9, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-ready Triggers CI checks for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import-time cpp_extension JIT can hang forever on a stale build lock (FileBaton spin-wait); please add a timeout or lock-staleness check

2 participants