mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
make status of finished operations consistently "Finished"
This commit is contained in:
parent
79e7e0d8e3
commit
c4d38ad4c5
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user