Revert "openpilot 0.4.3.1 (#220)"

This reverts commit 640ab12c72.
This commit is contained in:
George Hotz
2018-03-26 14:13:40 -07:00
committed by GitHub
parent 640ab12c72
commit f550656ee8
187 changed files with 4128 additions and 9703 deletions
Binary file not shown.
Regular → Executable
+20 -17
View File
@@ -248,30 +248,33 @@ def uploader_fn(exit_event):
uploader = Uploader(dongle_id, access_token, ROOT)
backoff = 0.1
while True:
upload_video = (params.get("IsUploadVideoOverCellularEnabled") != "0") or is_on_wifi()
if exit_event.is_set():
return
backoff = 0.1
while True:
d = uploader.next_file_to_upload(upload_video)
if d is None:
time.sleep(5)
continue
if exit_event.is_set():
return
key, fn, _ = d
d = uploader.next_file_to_upload(upload_video)
if d is None:
break
cloudlog.info("to upload %r", d)
success = uploader.upload(key, fn)
if success:
backoff = 0.1
else:
cloudlog.info("backoff %r", backoff)
time.sleep(backoff + random.uniform(0, backoff))
backoff = min(backoff*2, 120)
cloudlog.info("upload done, success=%r", success)
key, fn, _ = d
cloudlog.info("to upload %r", d)
success = uploader.upload(key, fn)
if success:
backoff = 0.1
else:
cloudlog.info("backoff %r", backoff)
time.sleep(backoff + random.uniform(0, backoff))
backoff = min(backoff*2, 120)
cloudlog.info("upload done, success=%r", success)
time.sleep(5)
def main(gctx=None):
uploader_fn(threading.Event())