forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pantsd] Remove dead code around prefork graph warming (pantsbuild#8095)
**Implementation for pantsbuild#8002** Before removing forking from pantsd (pantsbuild#7596 ), we needed to warm up the v2 product graph of the daemon before forking into a pantsd-runner process (relevant code here). Now, however, this warming is not necessary (because we don't fork a process per run of pants anymore), so we can do some cleanup to that code: We can remove the concept of "warming" (here), which is invoked from scheduler_service.prefork (here). This probably means that we can remove the entire warm_product_graph function. We can reword the code around scheduler_service.prefork so that it doesn't mention forking at all. It was called prefork because that's what we did before pantsbuild#7596, but it can be called something different now. We can merge the try:except block in DaemonPantsRunner.create() (here) into the try:except block in DaemonPantsRunner.run() (here). The run() function aims to centralize and correctly handle all the exceptions that happen on a pants run, so the "prefork" logic should be integrated there as well. This will help a lot in correctly diagnosing pantsd problems, as this split and the wrangled exception handling that happen as a result have caused numerous issues.
- Loading branch information
1 parent
570fab8
commit 0760fe8
Showing
3 changed files
with
29 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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