Keeping a Worker alive 'forever' / managing long running processes #3972
-
Background: I've integrated Webpack into my build as a Mill worker. Mill does the incremental build and the the Webpack worker runs a webpack server so that things show up in the Browser. So, my question is how to solve this better:
PS: Was the timeout longer in 0.11? I remember it working well in 0.11, but I'm encountering it more in 0.12. Or maybe it was an accident in 0.11, that it was kept alive by BSP requests etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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 |
Beta Was this translation helpful? Give feedback.
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 timeoutMaking 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?