# enqueue with callback def on_success(resp): print("Succeeded:", resp.status_code)