Writing a script to bulk create users from a CSV using the Genesys Cloud Python SDK. It’s throwing 429 Too Many Requests after about 50 calls even though I’m adding a 2-second sleep between requests. Tried implementing exponential backoff in the retry logic but the script still stalls. Here is the loop structure:
for user_data in csv_data:
try:
api_instance.post_users(body=user_data)
except ApiError as e:
if e.status == 429:
time.sleep(2)
Is there a better way to handle this or am I missing something in the SDK configuration?