Changes

Jump to navigation Jump to search
19 bytes removed ,  11:51, 3 July 2016
<pre class="brush:xquery">
jobs:schedule("import module namespace mail='mail'; mail:send('Happy birthday!')",
(), map { 'start': '2018-09-01T06:00:00', 'interval': 'P1D' })}}</pre>* Query execution is scheduled for every second. As the query itself will take 1.5 seconds, it will only be executed every second time:<pre class="brush:xquery">jobs:schedule("prof:sleep(1500)", (), map { 'interval': 'PT1S' })
</pre>
* The following [[RESTXQ]] functions can be called to execute a specified query at 2am every day. An id will be returned, which can be used to stop the scheduler again:
jobs:stop($id)
};
</pre>
* Query execution is scheduled for every second. As the query itself will take 1.5 seconds, it will only be executed every second time:
<pre class="brush:xquery">
jobs:schedule("prof:sleep(1500)", (), map { 'interval': 'PT1S' })
</pre>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu