Skip to content

Commit

Permalink
Merge pull request #4778 from belforte/fix-4777
Browse files Browse the repository at this point in the history
scheduler and tw name in one line, fix #4777
  • Loading branch information
todor-ivanov authored Aug 2, 2018
2 parents 282f74f + 6ae86c9 commit b4fd0b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/python/CRABClient/Commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,20 +316,17 @@ def printTaskInfo(self, crabDBInfo, username):
dashboard URL, warnings and failire messages in the database.
"""
schedd = getColumn(crabDBInfo, 'tm_schedd')
if not schedd: schedd = 'N/A yet'
twname = getColumn(crabDBInfo, 'tw_name')
if not twname: twname = 'N/A yet'
statusToPr = getColumn(crabDBInfo, 'tm_task_status')
command = getColumn(crabDBInfo, 'tm_task_command')
warnings = literal_eval(getColumn(crabDBInfo, 'tm_task_warnings'))
failure = getColumn(crabDBInfo, 'tm_task_failure')

self.logger.info("CRAB project directory:\t\t%s" % (self.requestarea))
self.logger.info("Task name:\t\t\t%s" % self.cachedinfo['RequestName'])
if schedd:
msg = "Grid scheduler:\t\t\t%s" % schedd
self.logger.info(msg)
if twname:
msg = "Task Worker:\t\t\t%s" % twname
self.logger.info(msg)
self.logger.info("Grid scheduler - Task Worker:\t%s - %s" % (schedd,twname))
msg = "Status on the CRAB server:\t"
if 'FAILED' in statusToPr:
msg += "%s%s%s" % (colors.RED, statusToPr, colors.NORMAL)
Expand Down

0 comments on commit b4fd0b6

Please sign in to comment.