'Updating Authentication Token with Joblib Pool
I am using Joblib.Pool to make parallel requests to an API. I am trying to figure out how to update the authentication token once it expires. The code I have so far:
def make_api_call(file_details, base_url, token):
api call code
pool = Pool()
part_func = partial(make_api_call, base_url=base_url, token=auth_token)
results = pool.map(part_func, url_list)
pool.close()
pool.join()
Please help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
