uploader: azure returns 401 for files already uploaded (#24141)

old-commit-hash: e7f23ceca2
taco
Willem Melching 3 years ago committed by GitHub
parent f35a445b73
commit 85aa5e2706
  1. 2
      selfdrive/athena/athenad.py
  2. 2
      selfdrive/loggerd/uploader.py

@ -206,7 +206,7 @@ def upload_handler(end_event: threading.Event) -> None:
cloudlog.event("athena.upload_handler.upload_start", fn=fn, sz=sz, network_type=network_type, metered=metered, retry_count=cur_upload_items[tid].retry_count)
response = _do_upload(cur_upload_items[tid], cb)
if response.status_code not in (200, 201, 403, 412):
if response.status_code not in (200, 201, 401, 403, 412):
cloudlog.event("athena.upload_handler.retry", status_code=response.status_code, fn=fn, sz=sz, network_type=network_type, metered=metered)
retry_upload(tid, end_event)
else:

@ -184,7 +184,7 @@ class Uploader():
else:
start_time = time.monotonic()
stat = self.normal_upload(key, fn)
if stat is not None and stat.status_code in (200, 201, 403, 412):
if stat is not None and stat.status_code in (200, 201, 401, 403, 412):
try:
# tag file as uploaded
setxattr(fn, UPLOAD_ATTR_NAME, UPLOAD_ATTR_VALUE)

Loading…
Cancel
Save