Skip to content

Commit

Permalink
improve response with some broken services
Browse files Browse the repository at this point in the history
  • Loading branch information
gmella committed Aug 21, 2023
1 parent 9f21514 commit dd5b83b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion expath-pkg.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<package
xmlns="http://expath.org/ns/pkg" name="http://exist.jmmc.fr/releases/apps/releases"
abbrev="releases" version="1.1.3" spec="1.0">
abbrev="releases" version="1.1.4" spec="1.0">
<title>JMMC applications's latest releases</title>
<dependency processor="http://exist-db.org" semver-min="5.3.0"/>
<dependency package="http://exist-db.org/html-templating" semver-min="1.0.2"/>
Expand Down
2 changes: 1 addition & 1 deletion modules/app.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -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),<e><program version="ERROR"/></e>}
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
Expand Down
6 changes: 6 additions & 0 deletions repo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<prepare>pre-install.xq</prepare>
<finish>post-install.xq</finish>
<changelog>
<change xmlns="" version="1.1.4">
<h3>2023-07-12</h3>
<ul>
<li>Improve reliability looping on the service loop ignoring some broken ones.</li>
</ul>
</change>
<change xmlns="" version="1.1.3">
<h3>2023-03-05</h3>
<ul>
Expand Down

0 comments on commit dd5b83b

Please sign in to comment.