A few more lines in VesselThread
This commit is contained in:
parent
b6eb599dd0
commit
4185609289
1 changed files with 11 additions and 1 deletions
|
@ -27,13 +27,23 @@ class VesselThread(Process):
|
||||||
print("Launched Vessel Thread for " + self.vessel.name)
|
print("Launched Vessel Thread for " + self.vessel.name)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
self.processQueue()
|
self.upload()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("An exception occurred in the Vessel Thread for " +
|
print("An exception occurred in the Vessel Thread for " +
|
||||||
self.vessel.name)
|
self.vessel.name)
|
||||||
print(repr(e))
|
print(repr(e))
|
||||||
|
|
||||||
|
def upload(self) -> None:
|
||||||
|
"""Continue uploading process
|
||||||
|
"""
|
||||||
|
if not (current := self.vessel.currentUpload):
|
||||||
|
self.processQueue()
|
||||||
|
return
|
||||||
|
pass
|
||||||
|
|
||||||
def processQueue(self) -> None:
|
def processQueue(self) -> None:
|
||||||
|
"""Start uploading a file from the processing queue
|
||||||
|
"""
|
||||||
for f in self._state["files"]:
|
for f in self._state["files"]:
|
||||||
if not f.uuid in self.vessel._uploaded:
|
if not f.uuid in self.vessel._uploaded:
|
||||||
pass
|
pass
|
Loading…
Reference in a new issue