Long running Jobs give connectionError when signing in
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start at the server.auth.sign_in entry point and inspect how its HTTP connection or session behaves after a 10-minute-to-4-hour delay. Reproduce the reported ConnectionError with the stated Python and TSC versions; done means long-running jobs can sign in reliably without caller retry loops, with regression coverage if the project has a relevant test location.
Written by the indexing model from the issue text.
Description
Describe the bug
I have a package where I standardize the way we're authenticating. So the server and tableau_auth are initialized on import of my package. Then downstream there are jobs that run anywhere from 10 minutes to 4 hours. But if they use
with server.auth.sign_in(tableau_auth):
print("do_anything")
It fails. Funnily enough, after it runs I can run the same function and it runs fine.
I can get around it by just trying multiple times for the sign in.
def sign_in():
for i in range(5):
try:
cxn = server.auth.sign_in(tableau_auth)
return cxn
except requests.exceptions.ConnectionError as e:
continue
except:
raise
if i == 5:
raise ConnectionError("Failed to connect after 5 attempts")
# and doing
with sign_in():
print("do_anything")
Versions
Details of your environment, including:
- tableau online
- Python version 3.9.12
- TSC library version =0.18.0
Results
ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Other Info
I tried to sign in multiple times because of this SO post
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
- Dominant language
- Python
- Stars
- 716
- Forks
- 446
- Avg merge
- 8d 8h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tableau/server-client-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
tableau/server-client-python#1865 ·
-
in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tableau/server-client-python#1829 · 1 comment ·
-
enhancement gap needs investigation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tableau/server-client-python#1322 · 1 comment ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule` Openhelp wanted Server-Side Enhancement ui-exists
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tableau/server-client-python#1101 · 3 comments ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tableau/server-client-python#783 · 5 comments ·
All issues in tableau/server-client-python
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·