Hi all :slightly_smiling_face: I couldn't find a g...
# general
b
Hi all 🙂 I couldn't find a good answer to this online, possibly because I don't know how to ask the question. Does Pants support "workers"? NX was slow for us because every typecheck task started a new process, which had to re-read $massive-3rd-party-dependency. Our current system can start a single "worker" process to handle $type-of-task, and pass tasks to it, so it can keep a warm cache of already-parsed files in between jobs (https://microsoft.github.io/lage/docs/cookbook/make-lint-fast). This was huge for us, and part of why I was looking at Bazel (https://bazel.build/remote/persistent). I was wondering if Pants had this or a similar capability
c
Pants by default uses the
pantsd
daemon. Said daemon will be the one that has parsed all the source file, inferred dependencies, etc. There isn't a general facility for tools run by pants to be daemonized. There is some Java specific stuff with nailgun (but nailgun itself is I think unmaintained?) but for example with Python, the python linters are not daemons.
b
That's good to know, thank you!