Changes

Jump to navigation Jump to search
16 bytes added ,  11:56, 3 July 2016
| '''Examples'''
|
* Cache query result. An The returned id will be returned, which can be used to pick up the result via with [[#jobs:result|jobs:result]]):
<pre class='brush:xquery'>
jobs:schedule("1+3", (), map { 'cache': true() })
(), map { 'start': '2018-09-01T06:00:00' })}}
</pre>
* The following [[RESTXQ]] functions can be called to execute a specified query at 2 am every day. An id will be returnedby the first function, which can be used to stop the scheduler againvia the second function:
<pre class='brush:xquery'>
declare %rest:POST("{$query}") %rest:path('/start-scheduling') function local:start($query) {
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu