Skip to content

Commit

Permalink
Cleaner exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Nov 15, 2024
1 parent 77c82fd commit 2c52664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pdelfin/beakerpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,10 +785,11 @@ async def main():
await asyncio.gather(*worker_tasks, return_exceptions=True)

# Wait for server to stop
process_pool.shutdown(wait=False)

sglang_server.cancel()
metrics_task.cancel()
logger.info("Work done, force exitting...")
sys.exit(0)
logger.info("Work done")

if __name__ == "__main__":
asyncio.run(main(), debug=True)
Expand Down
2 changes: 1 addition & 1 deletion pdelfin/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
_MINOR = "1"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "18"
_PATCH = "19"
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
# https://semver.org/#is-v123-a-semantic-version for the semantics.
_SUFFIX = ""
Expand Down

0 comments on commit 2c52664

Please sign in to comment.