For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
41 1 3 7

How to cancel executing/pending jobs?

dss-rest-apidatascope-selectdsspending-job
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.

1 Answer

· Write an Answer
Upvotes
Accepted
9.6k 10 7 7

Hello @nazar.viliura

You can cancel a job by issuing a delete to the monitor URL. For example:

DELETE https://hosted.datascopeapi.thomsonreuters.com/restapi/v1/Extractions/ExtractRawResult(ExtractionId='0x05432da4dd2e2e3f') 
Authorization: Token >your_auth_token_goes_here<

For more details, please refer to Key Mechanisms in DSS Web GUI,

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.

thanks, Pimchaya. Just tried this option and got

'ThomsonReuters.Dss.Api.ValidationException: 'This extraction request does not support cancellation. Details: report template: TimeseriesPricing' exception. Then looked at the link you've provided and found this: "Only Tick History jobs support cancellation."

So, how to handle other request types? Do you know if there is such a possibility to cancel pending jobs from the UI? (https://hosted.datascope.reuters.com/DataScope/Home)

thanks in advance,

Nazar

Hello @nazar.viliura

I do not see any job shown in DSS Web UI as shown below:

Only instrument lists, report templates, schedules etc. can be deleted/canceled. Hence, jobs which is not Tick History cannot be canceled as mentioned in Key Mechanisms

dsswebgui.png (21.3 KiB)

there are two options:

(1) select 'Extracted Files' and you'll see 'Pending Extractions' there

(2) you can select 'Executing Jobs' under your user preferences dropdown

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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