I would like to call cloud function from another cloud function and get response that it has started successfully and do not wait until called cloud function is finished.
Current script calls cloud function successfully, but it waits for cloud function to be finished
url = f"https://europe-west1-{PROJECT_ID}.cloudfunctions.net/test_function"
auth_req = google.auth.transport.requests.Request()
id_token = google.oauth2.id_token.fetch_id_token(auth_req, url)
auth_header = {"Authorization": f"Bearer {id_token}"}
jsonData = json.dumps(file_info)
response = requests.post(url, json = jsonData, headers=auth_header)
print(response)
return "File load triggered"