<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.setRequestTimeLimit.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.setRequestTimeLimit</api:function-name><api:suggest>xdmp.setrequesttimelimit</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>setrequesttimelimit</api:suggest><api:function-link mode="xquery" fullname="xdmp:set-request-time-limit">/apidoc/8.0/xdmp:set-request-time-limit.xml</api:function-link><api:function mode="javascript" name="setRequestTimeLimit" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.setRequestTimeLimit"><api:summary>
  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.
</api:summary><api:params><api:param name="time-limit" type="xs:unsignedInt"><api:param-description>
    The desired time limit, in seconds.
  </api:param-description><api:param-name>time-limit</api:param-name><api:param-type>Number</api:param-type></api:param><api:param name="hostID" type="xs:unsignedLong?" optional="true"><api:param-description>
    The ID of the host on which the request is running.  Typically, you
    get the ID of a host by executing code similar to:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    xdmp:host("myhost")</pre></code></blockquote>
  </api:param-description><api:param-name>hostID</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="serverID" type="xs:unsignedLong?" optional="true"><api:param-description>
   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:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    xdmp:server("myAppServerName")</pre></code></blockquote>
  </api:param-description><api:param-name>serverID</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="requestID" type="xs:unsignedLong?" optional="true"><api:param-description>
    The ID of the request.  You can access the request IDs in the
    <code xmlns="http://www.w3.org/1999/xhtml">request</code> elements of the <code xmlns="http://www.w3.org/1999/xhtml">xdmp:server-status</code>
    output. You get the request ID by executing code similar to:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    declare namespace status=
        "http://marklogic.com/xdmp/status/server"
   
    xdmp:server-status( xdmp:host("myhost"),
      xdmp:server("myAppServerName") )//status:request</pre></code></blockquote>
  </api:param-description><api:param-name>requestID</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>null</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-any</code>
  or
  <code>http://marklogic.com/xdmp/privileges/xdmp-set-request-time-limit-my</code></p>
</api:privilege><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.setRequestTimeLimit(10000);
</pre></api:example></api:function></api:function-page>