stop_job: Stop a job

Description Usage Arguments Details Value Examples

View source: R/web-services.R

Description

It stops a specific current query job

Usage

1
stop_job(url, job_id)

Arguments

url

string url of server: It must contain the server address and base url; service name is added automatically

job_id

string id of the job

Details

If error occurs, a specific error is printed

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

## Login to GMQL REST services suite at remote url

remote_url = "http://www.gmql.eu/gmql-rest/"
login_gmql(remote_url)

## This statement shows all jobs at GMQL remote system and selects one 
## running job, saving it into 'jobs_1' (in this case is the first of the 
## list), and then stop it

list_jobs <- show_jobs_list(remote_url)
jobs_1 <- list_jobs$jobs[[1]]
stop_job(remote_url, jobs_1)

## End(Not run)

RGMQL documentation built on Nov. 8, 2020, 5:59 p.m.