Description
Describe the bug
The class FinishCode
is defined without all the finish codes tableau cloud will send:
https://github.com/tableau/server-client-python/blob/master/tableauserverclient/models/job_item.py#L76
class FinishCode:
"""
Status codes as documented on
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_jobs_tasks_and_schedules.htm#query_job
"""
Success: int = 0
Failed: int = 1
Cancelled: int = 2
In the documentation linked in the docstring it writes that for Bridge Jobs:
For bridge extract refresh jobs, a finishCode of 0 indicates that the bridge client is assigned to execute the job, while a 3 indicates that the job completed.
I can confirm that sometimes a bridge extract will send a 3
I don't know if it's as simple as adding Completed: int = 3
to the class or if there are more parts of the client you want to adjust
Versions
Details of your environment, including:
- Tableau Cloud
- Python version: 3.10
- TSC library version (latest)
To Reproduce
Launch a cloud bridge job
Results
We'd expect the finish codes to align with what the API sends us