HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-devel] XML/JSON formatting for condor_q output



Dear Developers,

I'm trying to improve the script I made some time ago, and named Condor for Web.

Basically it makes an HTML+JS page to visualize the queue like :

http://monitor.hepgrid.uerj.br/condor/

Now I'm doing in a cleaner/better way, and in order to achieve that, I'm parsing the XML output from condor_q -global -l -xml

Some comments are :

  * If one wants to see an overview of the cluster's queue, doesn't matter how much schedds we have, it's not really XML compatible : 

" -- schedd1
  <XML>
  -- schedd2
  <XML>
  -- schedd3
  <XML>
"

* Within the XML itself, the schema looks very unusual, which gave me a hard time to parse it with standard libs :

"
<classads><c> <a n="MyType"><s>Job</s></a>
"
To be more compatible with everything(more specifically XML::Simple), I ended up having to re-format the output to :

"
<classads> <c> <MyType> Job </MyType> <TargetType> Machine </TargetType> "
At the end, I'm going to provide through CPAN, Parse::CondorQueue which can get the raw output of condor_q -global -l -xml and give people jobs data through the reformatted XML, JSON or Perl data structure (hashref).

What I would like to ask here, is your opinion about the XML formatting, not asking for changing the original one, but more about the motivation for that schema.

 I would like to drop a line in the module documentation telling the reason of the change, which at the same time, is supported from you or explaining the original schema versus the one I'm providing and where one or other is more applicable.

Thanks,
Samir

--
Help to increase the world's CPU efficiency - BOINC

http://www.boincstats.com/signature/user_2330739_project-1.gif