`server.jobs.wait_for_job` fails for ID generated by `create_extract`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
Direzione di ricerca
Start at server.jobs.wait_for_job and server.jobs.get_by_id, then compare their behavior with tsc.Pager(server.jobs) for the ID returned by server.datasources.create_extract. Reproduce the 400031 response and trace how each path queries the job; done means the generated extract job ID works with wait_for_job and get_by_id.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
The job ID generated when creating an extract via TSC is not queryable by the server.jobs.wait_for_job method.
Versions
Details of your environment, including:
- Tableau Server version 3.10
- Python 3.8.12
- tableauserverclient==0.19.0
To Reproduce
refresh_job = server.datasources.create_extract(datasource_item)
job_status = server.jobs.wait_for_job(refresh_job.id)
# Also
server.jobs.get_by_id(refresh_job.id)
Results
400031: Bad Request
There was a problem querying job '{refresh_job.id}'.
Solution
from tableauserverclient.exponential_backoff import ExponentialBackoffTimer
refresh_job = server.datasources.create_extract(datasource_item)
backoff_timer = ExponentialBackoffTimer()
job = list(j for j in tsc.Pager(server.jobs) if j.id == refresh_job.id)[0]
while job.ended_at is None:
backoff_timer.sleep()
print(f"{refresh_job.id} still running")
job = list(j for j in tsc.Pager(server.jobs) if j.id == refresh_job.id)[0]
- Lingua principale
- Python
- Stelle
- 716
- Fork
- 446
- Merge medio
- 8g 8h
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tableau/server-client-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
tableau/server-client-python#1865 ·
-
in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tableau/server-client-python#1829 · 1 commento ·
-
enhancement gap needs investigation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tableau/server-client-python#1322 · 1 commento ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule` Apertahelp wanted Server-Side Enhancement ui-exists
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tableau/server-client-python#1101 · 3 commenti ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tableau/server-client-python#783 · 5 commenti ·
Tutte le issue di tableau/server-client-python
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·