Skip to content

Datasource refresh status #546

@s-arjun

Description

@s-arjun

Hi,
I was trying to refresh datasources from the tsc package.
My Tableau Server version is 2019.3
I used the following code:

selected_datasource = server.datasources.get_by_id(dat_id)
server.datasources.refresh(selected_datasource)

It refreshed successfully.
I was able to get all the jobs in a similar fashion:

request_options = tsc.RequestOptions(pagesize=50)
request_options.sort.add(tsc.Sort(tsc.RequestOptions.Field.CreatedAt, tsc.RequestOptions.Direction.Desc))
all_jobs, job_pagination_item = server.jobs.get(request_options)

When I give job.status I could get whether the job is success/in progress.
But I could not obtain more details of the job like the one shown below from the Tableau Server webUI.

image

The job content is the one i require, that is here it is the datasource item.
Is there a way to get this detail as of now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfixedhelp wantedA user needs help, may be a mistake, a bug or a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions