- Timestamp:
- 23 Jun 2014, 08:23:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/async.py
r9792 r11704 49 49 zc.async.local.getQueue()) 50 50 while True: 51 52 53 51 if time.time() > end: 52 break 53 time.sleep(1) 54 54 percent = (time.time() - start) * 100.0 / duration 55 55 if percent > 100.0: … … 57 57 print "MyJob percent: ", percent 58 58 zc.async.local.setLiveAnnotation('percent', percent) 59 59 print "MyJob does something at %s of %s" % ( 60 60 time.time() - start, duration) 61 61 print "MyJob's annotations: %r" % dict(myjob.annotations)
Note: See TracChangeset for help on using the changeset viewer.