Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing JobItem FinishCode #1576

Open
fenimore opened this issue Mar 6, 2025 · 1 comment
Open

Missing JobItem FinishCode #1576

fenimore opened this issue Mar 6, 2025 · 1 comment

Comments

@fenimore
Copy link

fenimore commented Mar 6, 2025

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

@harleybl
Copy link

The missing FinishCode is causing issues for me as well. Is there an ETA on when this PR will be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants