mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 17:25:23 +02:00
Some of the sbt scripted tests somewhat frequently hang in CI. I added a patch that printed a stack trace of the sbt process every 30 seconds. I discovered that the main thread was stuck in DefaultBackgroundJobService shutdown. To avoid the hangs, I updated the awaitTermination methods to take a timeout parameter and we timeout shutdown if 10 seconds have elapsed.