mirror of https://github.com/BOINC/boinc.git
- client: add <fetch_on_update> config option;
requests work when you update a project even if it's not highest priority
This commit is contained in:
parent
e41800082e
commit
71b6508313
|
@ -717,6 +717,13 @@ void WORK_FETCH::piggyback_work_request(PROJECT* p) {
|
|||
return;
|
||||
}
|
||||
|
||||
// if project was updated from manager and config says so,
|
||||
// always fetch work if needed
|
||||
//
|
||||
if (p->sched_rpc_pending && config.fetch_on_update) {
|
||||
set_all_requests_hyst(p, -1);
|
||||
return;
|
||||
}
|
||||
compute_cant_fetch_work_reason();
|
||||
PROJECT* bestp = choose_project(false);
|
||||
if (p != bestp) {
|
||||
|
|
|
@ -119,7 +119,7 @@ function make_app_version_dir($app_name, $i, $platform) {
|
|||
}
|
||||
|
||||
|
||||
// check for apps/appname/appname/N/platform,
|
||||
// check for apps/appname/1.N/platform,
|
||||
// find the largest such N; see if have new wrapper
|
||||
// If needed, create new version, copy wrapper
|
||||
//
|
||||
|
|
|
@ -212,6 +212,7 @@ void CONFIG::defaults() {
|
|||
exit_before_start = false;
|
||||
exit_when_idle = false;
|
||||
fetch_minimal_work = false;
|
||||
fetch_on_update = false;
|
||||
force_auth = "default";
|
||||
http_1_0 = false;
|
||||
http_transfer_timeout = 300;
|
||||
|
@ -356,6 +357,7 @@ int CONFIG::parse_options(XML_PARSER& xp) {
|
|||
continue;
|
||||
}
|
||||
if (xp.parse_bool("fetch_minimal_work", fetch_minimal_work)) continue;
|
||||
if (xp.parse_bool("fetch_on_update", fetch_on_update)) continue;
|
||||
if (xp.parse_string("force_auth", force_auth)) {
|
||||
downcase_string(force_auth);
|
||||
continue;
|
||||
|
@ -530,6 +532,7 @@ int CONFIG::write(MIOFILE& out, LOG_FLAGS& log_flags) {
|
|||
" <exit_before_start>%d</exit_before_start>\n"
|
||||
" <exit_when_idle>%d</exit_when_idle>\n"
|
||||
" <fetch_minimal_work>%d</fetch_minimal_work>\n"
|
||||
" <fetch_on_update>%d</fetch_on_update>\n"
|
||||
" <force_auth>%s</force_auth>\n"
|
||||
" <http_1_0>%d</http_1_0>\n"
|
||||
" <http_transfer_timeout>%d</http_transfer_timeout>\n"
|
||||
|
@ -538,6 +541,7 @@ int CONFIG::write(MIOFILE& out, LOG_FLAGS& log_flags) {
|
|||
exit_before_start,
|
||||
exit_when_idle,
|
||||
fetch_minimal_work,
|
||||
fetch_on_update,
|
||||
force_auth.c_str(),
|
||||
http_1_0,
|
||||
http_transfer_timeout,
|
||||
|
|
|
@ -151,6 +151,7 @@ struct CONFIG {
|
|||
bool exit_before_start;
|
||||
bool exit_when_idle;
|
||||
bool fetch_minimal_work;
|
||||
bool fetch_on_update;
|
||||
std::string force_auth;
|
||||
bool http_1_0;
|
||||
int http_transfer_timeout_bps;
|
||||
|
|
Loading…
Reference in New Issue