Add sleep

This commit is contained in:
decentral1se 2021-06-18 09:28:16 +02:00
parent 4bef39c728
commit d05d812189
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -6,6 +6,7 @@ import json
from os import environ from os import environ
from os.path import exists from os.path import exists
from pathlib import Path from pathlib import Path
from time import sleep
from keycloak import KeycloakAdmin from keycloak import KeycloakAdmin
@ -71,4 +72,7 @@ for email in emails:
print("Bailing out on request...") print("Bailing out on request...")
exit(1) exit(1)
print("Sleeping one second to not overload the server...")
sleep(1)
print(f"Final user account count: {keycloak.users_count()}") print(f"Final user account count: {keycloak.users_count()}")