Loading TOC...


   $time-limit as xs:unsignedInt,
   [$hostID as xs:unsignedLong?],
   [$serverID as xs:unsignedLong?],
   [$requestID as xs:unsignedLong?]
) as empty-sequence()


Changes the time limit for an actively running request to the specified value. If you do not supply values for the last three parameters, the function sets the time limit for the current request.

$time-limit The desired time limit, in seconds.
$hostID The ID of the host on which the request is running. Typically, you get the ID of a host by executing code similar to:
$serverID The ID of the App Server in which the request is running. Typically, you get the ID of an App Server by executing code similar to:
$requestID The ID of the request. You can access the request IDs in the request elements of the xdmp:server-status output. You get the request ID by executing code similar to:
    declare namespace status=
    xdmp:server-status( xdmp:host("myhost"),
      xdmp:server("myAppServerName") )//status:request

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any or http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-my



Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.


The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • Hi, is there a way to put a value superior to 10000 ? We have a request that take more that 10k seconds.. Of course any recommendation of using another method is more than welcome :)
    • You may need to increase the MarkLogic Max Timeout in the admin panel for the HTTP server :)