Flush a given job group Return True if the group had any elements.
(self,group,name)
| 254 | return True |
| 255 | |
| 256 | def _group_flush(self,group,name): |
| 257 | """Flush a given job group |
| 258 | |
| 259 | Return True if the group had any elements.""" |
| 260 | |
| 261 | njobs = len(group) |
| 262 | if njobs: |
| 263 | plural = {1:''}.setdefault(njobs,'s') |
| 264 | print('Flushing %s %s job%s.' % (njobs,name,plural)) |
| 265 | group[:] = [] |
| 266 | return True |
| 267 | |
| 268 | def _status_new(self): |
| 269 | """Print the status of newly finished jobs. |