Deleting/cancelling job

2 followers
0
Avatar

Hi

Based on https://www.datameer.com/documentation/display/DAS50/REST+API+Job+Commands#RESTAPIJobCommands-deleteDeleteJob I am trying to cancel some queued or active jobs - is this possible?

where the request is 

curl -u <username>:<password> -X DELETE 'http://<Datameer-serverIP>:<port-number>/rest/data/<data-id>'

I figured I should be using dapJobConfigurationId or jobExecutionId for <data-id> but with this I seem to get 

{
"status": "failure",
"reason": "Data with ID xx not found."
}

Each time - am I using the wrong identifier & if so how would I get the appropriate one?

Cheers

Stephen

Stephen Waters

2 comments

  • Avatar
    Alan Mark

    Hi Stephen,

    Great question.  If you want to cancel a job you'll first need to know what type of job it is.  If it's an Import Job, Data Link, or File Upload you'll use the Cancel Import/Link/Upload REST API call to cancel those.

    Likewise, for Workbooks and Export Jobs we have equivalent REST API calls to cancel them.

    You'll note that all of these REST API calls use the jobExecutionID to identify the job to cancel.

    Let me know if you've got any further questions.

    Alan

    1
Please sign in to leave a comment.