dmwm / CRABClient

runrange
14 stars 35 forks source link

improve JSON report from crab status #5306

Open belforte opened 2 months ago

belforte commented 2 months ago

As Konstantin Androsov @kandrosov reported

-------- Forwarded Message -------- Subject: Re: out of quota ! Date: Thu, 2 May 2024 10:29:30 +0200 From: Konstantin Androsov konstantin.androsov@cern.ch To: Stefano Belforte Stefano.Belforte@cern.ch

About the JSON API. Yes, I'm currently using "crab status --json" to parse the statuses of individual jobs. However, JSON doesn't contain the same amount of information as the full output: there is no status on scheduler, status on server, various warnings (that sometimes can be actionable), url to dashboard etc. For that reason, I am still parsing txt output... If all commands had a complete json interface it would be a big improvement.