https://pantsbuild.org/ logo
l

loud-laptop-17949

03/02/2022, 6:59 PM
Is there any way to see what triggered this change
10:59:31.12 [INFO] Remote cache/execution options updated: reinitializing scheduler...
?
b

bitter-ability-32190

03/02/2022, 7:01 PM
.pants.d has a log file in it (pants.log I think) probably a place to start looking.
f

fast-nail-55400

03/02/2022, 7:02 PM
Can you share the
./pants
commands you were running? Did any sources of config options change? CLI, env, pants.toml?
w

witty-crayon-22786

03/02/2022, 9:20 PM
that line is caused by the remote execution token expiring
l

loud-laptop-17949

03/02/2022, 9:42 PM
ok, so if I don't run a command for 40 minutes, the token will expire leading to needing to acquire a new token and re-initialize?
w

witty-crayon-22786

03/02/2022, 9:43 PM
as it stands, yes… that’s a function of the token expiration time, and Toolchain sets 40 minutes.
l

loud-laptop-17949

03/02/2022, 9:44 PM
this re-inits the local scheduler too right?
w

witty-crayon-22786

03/02/2022, 9:44 PM
there are definitely paths forward for fixing that issue
correct: it amounts to discarding the in-memory cache, unfortunately
l

loud-laptop-17949

03/02/2022, 9:53 PM
that would explain some of what I am seeing
Does the token get renewed on use?
h

hundreds-father-404

03/02/2022, 9:55 PM
@polite-garden-50641 is that correct that Toolchain is not extending the life of short-lived tokens upon use?
l

loud-laptop-17949

03/02/2022, 9:55 PM
I have no reason to believe it is not, I have no idea at all
p

polite-garden-50641

03/02/2022, 10:04 PM
we don't extend tokens in the server upon use... the toolchain plugin allows pants to refresh the token, not sure if that is implemented on the pants side or not. the token TTL if the remote cache permission is requested is 45min.
👍 1
3 Views