xdmp:request-cancel( $hostID as xs:unsignedLong, $serverID as xs:unsignedLong, $requestID as xs:unsignedLong ) as empty-sequence()
Cancel the request with the given host, server, and request IDs.
http://marklogic.com/xdmp/privileges/cancel-any-request
or
http://marklogic.com/xdmp/privileges/cancel-my-requests
To find out the status of the request after it has been canceled,
you can call xdmp:server-status
, which has information
about each request active or being canceled on the server. Once a request
has completed canceling, it will no longer appear in the output of
xdmp:server-status
.
xdmp:request-cancel(xdmp:host("myhost"), xdmp:server("myAppServerName"), 98394839084390843) => ()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.