Skip to content

Commit

Permalink
Fix one case of Item 1 on pantsbuild#11618.
Browse files Browse the repository at this point in the history
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
  • Loading branch information
stuhood committed Apr 16, 2021
1 parent 8648207 commit 22c631a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/pants/pantsd/pants_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ def run_sync(self):
while self._core.is_valid():
time.sleep(self.JOIN_TIMEOUT_SECONDS)

# We're exiting: join the server to avoid interrupting ongoing runs.
# We're exiting: purge our metadata to prevent new connections, then join the server
# to avoid interrupting ongoing runs.
self.purge_metadata(force=True)
self._logger.info("Waiting for ongoing runs to complete before exiting...")
native_engine.nailgun_server_await_shutdown(self._server)
# Then shutdown the PantsDaemonCore, which will shut down any live Scheduler.
Expand Down

0 comments on commit 22c631a

Please sign in to comment.