Skip to content

Commit

Permalink
Add setting to adjust queue timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Jul 19, 2020
1 parent fccdb3d commit acc5fad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
X.X.X
* New setting to adjust concurrent rpc calls: rpc_concurrent_tasks
* New setting to adjust concurrent rpc calls: rpc_concurrent_tasks, rpc_task_timeout

1.7.4
* Updated themes to Bootstrap 4.5 by using latest Bootswatch themes
Expand Down
1 change: 1 addition & 0 deletions UPGRADE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Note: All updates require the explorer to be restarted
X.X.X
* Add new setting to settings.json (see settings.json.template)
* rpc_concurrent_tasks
* rpc_task_timeout
1.7.3 -> 1.7.4
* Ensure that you are not using theme "Paper" or "Readable" as these were not ported by Bootswatch
* Add new settings to settings.json (see settings.json.template)
Expand Down
2 changes: 1 addition & 1 deletion lib/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class API_Task_Queue {
setTimeout(function() {
Queue.finish_task();
return Queue.queue_task(run_task);
}, 1);
}, settings.rpc_task_timeout);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ exports.update_timeout = 125;
exports.check_timeout = 250;
exports.block_parallel_tasks = 1;
exports.rpc_concurrent_tasks = 1;
exports.rpc_task_timeout = 8;


//genesis
Expand Down
2 changes: 2 additions & 0 deletions settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"update_timeout": 10,
"check_timeout": 250,
"block_parallel_tasks": 1,
// limits and timeouts for RPC concurrent task queue
"rpc_concurrent_tasks": 4,
"rpc_task_timeout": 8,

// wallet settings
"use_rpc": false,
Expand Down

0 comments on commit acc5fad

Please sign in to comment.