Skip to content

Keeping a Worker alive 'forever' / managing long running processes #3972

Answered by lihaoyi
roman-mibex-2 asked this question in Q&A
Discussion options

You must be logged in to vote

Mill currently times out after 5 minutes

https://github.com/com-lihaoyi/mill/blob/main/runner/src/mill/runner/MillServerMain.scala#L27

You should be able to increase it with a system property that you can put in .mill-jvm-opts. We could also increase the default; IIRC Bazel has a 30min server timeout

Making runBackground work for non-JVM processes is a TODO. We don't have that yet but I'd like to get there at some point. However, note that while runBackground processes will not stop when Mill shuts down, they will be restarted when Mill starts again next time and you run the command. Not sure if that behavior is acceptable for your use case?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roman-mibex-2
Comment options

Answer selected by roman-mibex-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants