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