https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-breakfast-49010

11/15/2019, 1:18 AM
if I need to persist something to disk that isn't part of a rule, can I just write it to a subdir of
$WORKSPACE/.pants.d
?
context here is that we'd like to persist async workunits to disk so we can replay them in case pants crashes
so I'd like
AsyncWorkunitHandler
to have a well-known location to look for a log file from a previous pants run, and I think
.pants.d
is the right place for that sort of thing?
a

aloof-angle-91616

11/15/2019, 5:11 AM
yes, absolutely!
.pants.d/workunits/
would be my first attempt
👍 2