[Piuparts-devel] for preview: preview/submit-after-processing
debian at abeckmann.de
Fri Jun 22 15:49:44 UTC 2012
On 2012-06-21 13:39, Dave Steele wrote:
> Looks good. I think there is an opportunity to avoid some extra Package
> parses, though. (not sure about this)
That's something I have hacked around locally ... lets get the slave
strait and then I'll look at master again.
With the changes I have sitting in that preview branch, it should be
quite easy to insert extra flush calls while a section is processed.
These should be time based.
for name, ver in self._slave.get_reserved():
if time_since_last_flush > limit:
last_flush_time = now
We could also stop processing a section after a timeout and switch to
get n packages for a section
process them for timelimit + 1 package
if talk_to_master(flush=1, unreserve=1):
return # and process another section
else: # communication failed
process one more package and retry
More information about the Piuparts-devel