question

Upvotes
Accepted
5 0 0 3

How to GET running or processing extractions on DSS/TRTH

The RESTAPI for `Extractions` are not working properly.

I expect to get all extractions back with this endpoint "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions", however, I am only getting the `Completed` executions, but not the `Running` or `Pending` ones.

I have also tried "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractionGetPendingOrProcessing", expecting getting `Pending` and `Processing` extractions, but I got nothing when there're a dozen of `Processing` and `Pending` extractions.

The only way to get extraction back is via "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions('{job_id}')", however it is not ideal when there are a long list of extraction.

Can you tell me how to get the `Pending` and `Processing` extractions in one request? the API reference is not helpful.

dss-rest-apitick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
11.3k 25 8 14

Hi @Mohamed.Hisham,

I have found the Job/GetAll endpoint. It likely is more suitable for On Demand extraction. Could you try the endpoint to get status of On Demand extraction?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
11.3k 25 8 14

Hi @Mohamed.Hisham,

I have tried the ReportExtractions and ReportExtractionGetPendingOrProcessing endpoint and been able to receive Pending extraction. What is the extraction type you are using? (On Demand or Schedule) Can you provide the steps to reproduce the issue?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@veerapath.rungruengrayubkul Hi Veerapath,

I used the above end points and I can retrieve the ones which are scheduled and pending, however if I have run an on demand extraction which is currently running and say it takes 5 minutes to complete the extraction, I am not able to view this "in progress" or running extraction.

Only the ones which I have scheduled for future extraction are visible but not the ones which are currently running or processing.

Thanks,