Changes

Jump to navigation Jump to search
212 bytes added ,  13:16, 26 July 2022
no edit summary
(: unregister job :)
job:stopremove('cleanup', map { 'service': true() })
</syntaxhighlight>
};
declare %rest:path('/stop-scheduling/{$id}') function local:stop($id) {
job:stopremove($id)
};
</syntaxhighlight>
|}
==job:stopremove== {{Announce|Updated with Version 10:}} Renamed from {{Code|jobs:stop}}.
{| width='100%'
|- valign="top"
| width='120' | '''Signatures'''
|{{Func|job:stopremove|$id as xs:string|empty-sequence()}}<br/>{{Func|job:stopremove|$id as xs:string, $options as map(*)?|empty-sequence()}}
|- valign="top"
| '''Summary'''
|Triggers the cancelation of a job with the specified {{Code|$id}}, drops the cached result of a query, or cancels a scheduled jobor removes a cached result. Unknown IDs are ignored. All jobs are gracefully stopped; it is up to the process to decide when it is safe to shut down. The following {{Code|$options}} can be supplied:
* {{Code|service}}: additionally removes the job from the [[#Services|job services]] list.
|- valign="top"
| '''Examples'''
| * <code>job:list()[. != job:current()] ! job:stopremove(.)</code> stops and discards all jobs except for the current one.* <code>job:remove(job:current())</code> interrupts the current job.
|}
;Version 10.0
* Updated: Renamed from ''Jobs Module'' to ''Job Module''. The namespace URI has been updated as well.
* Updated: {{Function||job:remove}} renamed from {{Code|jobs:stop}}.
* Added: {{Function||job:bindings}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu