dmwm / CRAB2

CRAB2
2 stars 11 forks source link

improve readability of -status #874

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original Savannah ticket 100080 reported by belforte on Fri Jan 25 14:21:46 2013.

For large task, the readability of -status is low: the printout is typically too long and the important information are not immediately visible.

I propose two improvement:

1) the possibility to switch off the printout of the status of each job

2) the possibility to color the output, it the output stream allows for it.

Both improvement are quite helpful when multicrab is used.

The proposed syntax is

crab -status short (for 1) crab -status color (for 2) crab -status short,color (for 1+2)

For 2, only the summary will be colored. In general, green is the color for good jobs (done, exit =0 etc), Red for bad ones (abort, exit>0, etc), yellow for Created, Blue for job ended in "strange" status. Job which are on the grid are not colored.

An example is attached.

ericvaandering commented 10 years ago

Comment by slacapra on Fri Jan 25 05:09:11 2013

commit into CVS an implementation.

crab.py crab_util.py Status.py

Stefano

ericvaandering commented 10 years ago

Comment by belforte on Fri Jan 25 14:21:46 2013

This item has been reassigned from the project CRAB task tracker to your tracker.

The original report is still available at task #39391

Following are the information included in the original report:

I propose two improvement:

1) the possibility to switch off the printout of the status of each job

2) the possibility to color the output, it the output stream allows for it.

Both improvement are quite helpful when multicrab is used.

The proposed syntax is

crab -status short (for 1) crab -status color (for 2) crab -status short,color (for 1+2)

For 2, only the summary will be colored. In general, green is the color for good jobs (done, exit =0 etc), Red for bad ones (abort, exit>0, etc), yellow for Created, Blue for job ended in "strange" status. Job which are on the grid are not colored.

An example is attached.

ericvaandering commented 10 years ago

Comment by belforte on Fri Jan 25 14:25:03 2013

commits imported in latest tag CRAB_2_8_5_pre5 those are: crab.py crab_util.py Status.py crab_help.py

ericvaandering commented 10 years ago

Comment by belforte on Fri Jan 25 14:56:11 2013

but I disabled coloring of standard header and trailer of crab commands. To keep same look as before. If you like to have them Stefano, I suggest to use an option in crab.cfg

ericvaandering commented 10 years ago

Comment by belforte on Tue Jan 29 06:38:30 2013

released in CRAB_2_8_5

ericvaandering commented 10 years ago

Closed by belforte on Tue Jan 29 06:38:30 2013