Hi, is it possible to, from the task code, get the...
# flyte-support
b
Hi, is it possible to, from the task code, get the hostname of the executing pod?
c
The environment variable
$HOSTNAME
should contain it 🙂
thx 1
Can you please try whether this works?
b
yes it works, thanks
👍 1
os.environ.get(“HOSTNAME”) returns the hostname of the running task
f
We are thinking of adding this to debugging info in Ui, but not make it confusing
t
Maybe adding it to the execution context or smth like that? So in case that for example the env var is changed, nothing tied to that breaks
q
Adding that to the UI for each task would be nice, my collegues also asked for that
👍 1
c
I always go to stackdriver logs and copy it from the query.
Could be quicker though if directly in console
156 Views