GuidesRecipesAPI ReferenceChangelogDiscussions
Log In

modzyClient.getJobClient().cancelJob

Cancel a job

modzyClient.getJobClient().cancelJob(String jobId)

Sends a job cancelation requites to the server

Parameter

ParameterTypeDescriptionExample
jobIdjava.lang.StringJob identifier'14856eb1-0ad8-49e7-9da3-887acb80fea5'

Returns

com.modzy.sdk.model.Job object with the job status obtained from the server

Examples

Job job = modzyClient.getJobClient().cancelJob("14856eb1-0ad8-49e7-9da3-887acb80fea5");
System.out.println(String.format(" %s", job));