Is there no guarantee that a WorkunitsCallback wil...
# development
h
Is there no guarantee that a WorkunitsCallback will be called once with
finished=True
?
w
there is. but if
pantsd
is being used, they will finish asynchronously.
check your
.pants.d/pants.log
h
Ah, so the issue is that that part of that callback's job is to log
so possibly the logs are being swallowed by pantsd?
w
after the console has gone away, output goes to the pants.log, yes
h
hrmph
w
i mean: necessarily. if we finished the run 500ms before the plugin gets around to completing, we don’t tie up your console that whole time (and you can’t render something to the console once the console has been given back)
seems like that validation needs to move to the beginning of the run
i.e., on first call
sorry i missed this in review. not sure when it was made async vs when the logging was added
…or into the constructor of the callback
constructor of the callback is the only way to guarantee it always renders, but “first run” of the callback would work for any runs longer than 1 second