From dd5b83b42a1c36a1932bc4688738444f42932465 Mon Sep 17 00:00:00 2001 From: mellag Date: Mon, 21 Aug 2023 14:06:41 +0200 Subject: [PATCH] improve response with some broken services --- expath-pkg.xml | 2 +- modules/app.xqm | 2 +- repo.xml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/expath-pkg.xml b/expath-pkg.xml index 2d199e4..335e008 100644 --- a/expath-pkg.xml +++ b/expath-pkg.xml @@ -1,7 +1,7 @@ + abbrev="releases" version="1.1.4" spec="1.0"> JMMC applications's latest releases diff --git a/modules/app.xqm b/modules/app.xqm index a5198b8..6e766de 100755 --- a/modules/app.xqm +++ b/modules/app.xqm @@ -85,7 +85,7 @@ declare function app:doc($href as xs:string,$use-cache as xs:boolean) if(exists($val) and $use-cache) then $val else let $log := util:log("info", "cache refreshed to get " || $href) - let $val := doc($href) + let $val := try{doc($href)}catch *{util:log("info", "error getting " || $href),} let $store := cache:put($app:cache-name, $key, $val) let $last-mods := cache:put($app:cache-name, $app:cache-last-mods-key, current-dateTime()) return $val diff --git a/repo.xml b/repo.xml index e3ef12e..3acee45 100755 --- a/repo.xml +++ b/repo.xml @@ -12,6 +12,12 @@ pre-install.xq post-install.xq + +

2023-07-12

+
    +
  • Improve reliability looping on the service loop ignoring some broken ones.
  • +
+

2023-03-05