comms: accept missing rooms in cleanup
This commit is contained in:
parent
6b5deb886f
commit
0b09f46bb1
@ -2,7 +2,7 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: bstein-leave-rooms-5
|
||||
name: bstein-leave-rooms-6
|
||||
namespace: comms
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
@ -167,11 +167,11 @@ spec:
|
||||
json_body={},
|
||||
timeout=30,
|
||||
)
|
||||
if leave_status == 200 and forget_status == 200:
|
||||
if leave_status in (200, 404) and forget_status in (200, 404):
|
||||
break
|
||||
time.sleep(attempt * 2)
|
||||
results["rooms"][room_id] = {"leave": leave_status, "forget": forget_status}
|
||||
if leave_status != 200 or forget_status != 200:
|
||||
if leave_status not in (200, 404) or forget_status not in (200, 404):
|
||||
failures.append(room_id)
|
||||
finally:
|
||||
revoke_status, _ = http_json(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user