make status of finished operations consistently "Finished"

This commit is contained in:
david-sarah 2009-11-20 22:15:43 -08:00
parent 79e7e0d8e3
commit c4d38ad4c5
5 changed files with 6 additions and 6 deletions

View File

@ -637,7 +637,7 @@ class Encoder(object):
def done(self, res):
self.log("upload done", level=log.OPERATIONAL)
self.set_status("Done")
self.set_status("Finished")
self.set_encode_and_push_progress(extra=1.0) # done
now = time.time()
h_and_c_elapsed = now - self._start_hashing_and_close_timestamp

View File

@ -838,7 +838,7 @@ class LiteralUploader:
def _build_results(self, uri):
self._results.uri = uri
self._status.set_status("Done")
self._status.set_status("Finished")
self._status.set_progress(1, 1.0)
self._status.set_progress(2, 1.0)
return self._results
@ -1038,7 +1038,7 @@ class AssistedUploader:
if "total" in r.timings:
r.timings["helper_total"] = r.timings["total"]
r.timings["total"] = now - self._started
self._upload_status.set_status("Done")
self._upload_status.set_status("Finished")
self._upload_status.set_results(r)
return r

View File

@ -820,7 +820,7 @@ class Publish:
# TODO: recovery
else:
self.log("Publish done, success")
self._status.set_status("Done")
self._status.set_status("Finished")
self._status.set_progress(1.0)
eventually(self.done_deferred.callback, res)

View File

@ -537,7 +537,7 @@ class Retrieve:
self._status.set_status("Failed")
else:
self.log("Retrieve done, success!")
self._status.set_status("Done")
self._status.set_status("Finished")
self._status.set_progress(1.0)
# remember the encoding parameters, use them again next time
(seqnum, root_hash, IV, segsize, datalength, k, N, prefix,

View File

@ -1008,7 +1008,7 @@ class ServermapUpdater:
self._status.set_finished(now)
self._status.timings["total"] = elapsed
self._status.set_progress(1.0)
self._status.set_status("Done")
self._status.set_status("Finished")
self._status.set_active(False)
self._servermap.last_update_mode = self.mode