python-nomad icon indicating copy to clipboard operation
python-nomad copied to clipboard

nomad logs

Open aaron0428 opened this issue 7 years ago • 4 comments

HI: could you tell me ,how can i get the nomad job logs when i use python-namd(like the command:"nomad logs taskid") thank you very much!!!

aaron0428 avatar Aug 05 '17 13:08 aaron0428

Hey @aaron0428, what version of nomad are you using? It looks like the ls/cat endpoints have changed a bit in newer releases the client.py was originally written nomad 0.3.2 in mind and is also the least tested area ( which should be a good reason to change this ).

jonathanrcross avatar Aug 08 '17 13:08 jonathanrcross

@jonathanrcross
Hey, My nomad version is 0.5.6。

aaron0428 avatar Aug 08 '17 14:08 aaron0428

@jonathanrcross when i use python-nomad,i can not to get the nomad job log!

aaron0428 avatar Aug 08 '17 14:08 aaron0428

I am kind of new to the Nomad Python library but have not been able to figure out how to get the logs for an allocation. I have been able to connect to the client, get a list of jobs and iterate through them, get all allocations for each job, but have not been able to get the allocation logs. It is the goal of the utility I am writing to extract these logs and save them locally.

Please update the issue with a link or a pointer as to how to get the allocation logs from the allocation.

Thank you.

muman613 avatar Jan 21 '19 02:01 muman613