Changes

Jump to navigation Jump to search
64 bytes added ,  13:01, 15 February 2023
no edit summary
{{Announce|Updated with Version 10:}} Renamed from ''Jobs Module'' to ''Job Module''. The namespace URI has been updated as well.
This [[Module Library|XQuery Module]] provides functions for organizing scheduled, queued, running registering new query jobs and cached orchestrating existing jobs. Jobs can be queries, commands, queries, operations performed by a database client, or and HTTP requests.
=Conventions=
|- valign="top"
| '''Summary'''
|Schedules the evaluation of a new query job for the supplied {{Code|$query}} (of type {{Code|xs:string}}, or of type {{Code|xs:anyURI}}, pointing if points to a resource), and returns a query job ID. The query will be queued, and the result will optionally be cached. Queries can be updating. Variables and the context value can be declared via {{Code|$bindings}} (see {{Function|XQuery|xquery:eval}} for more details). The following {{Code|$options}} can be supplied:
* {{Code|cache}}: indicates if the query result will be cached or ignored (default: {{Code|false}}):
** The result will be cached in main-memory until it is fetched via {{Function||job:result}}, or until {{Option|CACHETIMEOUT}} is exceeded.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu