- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/job.py
rcb0195f r9225351 383 383 384 384 def restart(self): 385 # XXX: Todo 386 pass 385 """Non-blocking restart. Job must be finished (see 386 'GutenbachJob.is_done'), and will be ready to be played (see 387 'GutenbachJob.is_ready') if this method is successful. 388 389 Raises 390 ------ 391 InvalidJobStateException 392 If the job is not done. 393 394 """ 395 396 if not self.is_done: 397 raise errors.InvalidJobStateException(self.state) 398 399 logger.debug("restarting job %d" % (self.id, self.document)) 400 401 self._why_done = None 402 self.spool(self.document)
Note: See TracChangeset
for help on using the changeset viewer.