Skip to content

Commit 12704b0

Browse files
authored
Merge pull request #6 from opencitations/2025-new-timeout-searchjs
2025 new timeout searchjs
2 parents 3f6354a + f56de22 commit 12704b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.2sync
1+
1.4.3sync

static/oscar/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ var search = (function () {
416416

417417
/*call the SPARQL end point through a GET*/
418418
function _call_ts(rule_category, rules, rule_index, sparql_query, query_text=null, query_label=null, callbk_fun=null, attempt = 0) {
419-
// Progressive timeout: 2s for first try, 10s for retry
420-
const timeouts = [2000, 5000, 20000];
419+
// Progressive timeout: 2s, 5s, 60s, 5min
420+
const timeouts = [2000, 5000, 60000, 300000];
421421
const currentTimeout = attempt < timeouts.length ? timeouts[attempt] : timeouts[timeouts.length - 1];
422422

423423
console.log(`Attempt ${attempt + 1} with timeout ${currentTimeout}ms`);

0 commit comments

Comments
 (0)