Hi, I'm use `pants run` on a `pex_binary` with `re...
# general
b
Hi, I'm use
pants run
on a
pex_binary
with
restartable
set to True. The pants run will create a sandbox environment in
/tmp/pants-sandbox-XYZ
which is fine, but my problem is, that it creates a new sandbox environment on every restart, which makes it very difficult to debug, because f.e. logs for my app (in this case Airflow) will be reset on every restart. Before setting a remote logging dir, I was wondering if the restart behaviour is normal or if there is a misconfiguration. And if the latter is the case, maybe a hint to where the configuration might be bad. If necessary I can provide the
BUILD
file, but the case is a bit more compley with an entrypoint script (see this [thread](https://pantsbuild.slack.com/archives/C046T6T9U/p1675956990568809?thread_ts=1675931408.722139&cid=C046T6T9U) ), so generel advice is appreciated before going into detail.
c
Yes a new sandbox is expected for each new run. No option around that I believe.
1
b
You might find better luck running your Python source directly, as the code gets loaded from your source code tree
👍 1