Changeset 9225351 for server/lib/gutenbach/server/job.py
- Timestamp:
- Jan 21, 2012, 4:36:37 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 15fb0f8, 374c558
- Parents:
- fa3e2c6 (diff), 56fd535 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Steven Allen <steven@…> (01/21/12 16:36:37)
- git-committer:
- Steven Allen <steven@…> (01/21/12 16:36:37)
- 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.