How to clear or delete pending Server jobs?

5059
5
Jump to solution
01-15-2016 12:07 PM
DanSlayback1
New Contributor III

I've been searching for some method to manually clear out and delete any pending geoprocessing service jobs, in ArcGIS Server (10.3.1, on linux). Is there a way to do this?? Either via ArcGIS Server Manager, or the admin end point? Or some other tool?

Restarting the service, and/or Server itself, has no effect; the queued jobs resume processing.

0 Kudos
1 Solution

Accepted Solutions
MichaelRobb
Occasional Contributor III

Hi,

I currently do not have acecss to my server to check at the moment, but If I remember correctly, you should be able to delete the files in arcgisserver/directories/arcgisjobs/

View solution in original post

5 Replies
MichaelRobb
Occasional Contributor III

Hi,

I currently do not have acecss to my server to check at the moment, but If I remember correctly, you should be able to delete the files in arcgisserver/directories/arcgisjobs/

DanSlayback1
New Contributor III

Yes, thanks, that does seem to do the trick.

I was hoping there was a way to do this via a REST call, but it looks like manually deleting those files is the only way.

0 Kudos
MichaelRobb
Occasional Contributor III

Hi,

There is no means via RESTful services that I know of.

Glad we solved your issue.

0 Kudos
ScottPrindle
Esri Regular Contributor

Michael and Dan,

If the GP service is asynchronous, the following REST operation can be used:

ArcGIS REST API - Cancel GP Job

The Cancel operation is pretty straightforward in that all you need to run it is the job ID that you would like to cancel.

-Scott

MichaelRobb
Occasional Contributor III

Hi Scott,

Great!  Thanks for finding that!

0 Kudos