MCPcopy Create free account
hub / github.com/ipython/ipython / _status_new

Method _status_new

IPython/lib/backgroundjobs.py:268–282  ·  view source on GitHub ↗

Print the status of newly finished jobs. Return True if any new jobs are reported. This call resets its own state every time, so it only reports jobs which have finished since the last time it was called.

(self)

Source from the content-addressed store, hash-verified

266 return True
267
268 def _status_new(self):
269 """Print the status of newly finished jobs.
270
271 Return True if any new jobs are reported.
272
273 This call resets its own state every time, so it only reports jobs
274 which have finished since the last time it was called."""
275
276 self._update_status()
277 new_comp = self._group_report(self._comp_report, 'Completed')
278 new_dead = self._group_report(self._dead_report,
279 'Dead, call jobs.traceback() for details')
280 self._comp_report[:] = []
281 self._dead_report[:] = []
282 return new_comp or new_dead
283
284 def status(self,verbose=0):
285 """Print a status of all jobs currently being managed."""

Callers

nothing calls this directly

Calls 2

_update_statusMethod · 0.95
_group_reportMethod · 0.95

Tested by

no test coverage detected