Docs for UpdateByQuery shows that is possible to check the response status with response.success()
response = ubq.execute()
print(response.success())
# True
print(response.took)
# 12
But when trying to reproduce it raises the following error:
AttributeError: 'UpdateByQueryResponse' object has no attribute 'success'
doc page
Version used: 7.2.0