Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
#648 check for filesystem while wiping scheduled tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcassel committed Aug 23, 2016
1 parent 380a090 commit 3fe71e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deploy/lib/xquery/setup.xqy
Expand Up @@ -4120,12 +4120,17 @@ declare function setup:get-scheduled-task(
admin:group-get-scheduled-tasks(
$admin-config,
$group-id)
let $modules-db :=
if ($task/gr:task-modules/@name eq "filesystem") then
0
else
admin:database-get-id($admin-config, $task/gr:task-modules/@name)
return
$tasks[gr:task-path = $task/gr:task-path and
gr:task-root = $task/gr:task-root and
gr:task-type = $task/gr:task-type and
gr:task-database = admin:database-get-id($admin-config, $task/gr:task-database/@name) and
gr:task-modules = admin:database-get-id($admin-config, $task/gr:task-modules/@name) and
gr:task-modules = $modules-db and
gr:task-user = xdmp:user($task/gr:task-user/@name)]
[if ($task/gr:task-period) then gr:task-period = $task/gr:task-period else fn:true()]
(:[if ($task/gr:task-period) then gr:task-period = $task/gr:task-period else fn:true()]:)
Expand Down

0 comments on commit 3fe71e7

Please sign in to comment.