Source code for podi_pikasetup

runjob_queue="workernode.runjob"
jobstatus_queue="workernode.jobstatus"
host="event1.odi"
vhost="/odi"
user="workernode"
password="gjdssa9ljvcmfrkj"
workdir="/N/dcwan/scratch/odiuser/prod"


host = "localhost"
vhost = None
user = "guest"
password = "guest"


[docs]def format_msg(log_record): from podi_definitions import cmdline_arg_set_or_default jobid = cmdline_arg_set_or_default("-jobid", "???") formatted = "<Request><JobID>%s</JobID><Status>RUNNING</Status><Note>%s</Note></Request>" % ( jobid, log_record.msg) return formatted