diff --git a/client/client_types.C b/client/client_types.C index 24e9c04e9c..686360cc7d 100644 --- a/client/client_types.C +++ b/client/client_types.C @@ -606,10 +606,12 @@ int WORKUNIT::parse(FILE* in) { strcpy(env_vars, ""); app = NULL; project = NULL; - rsc_fpops = 0; - rsc_iops = 0; - rsc_memory = 0; - rsc_disk = 0; + // Default these to very large values (1 week on a 1 cobblestone machine) + // so we don't keep asking the server for more work + rsc_fpops = 1e9*SECONDS_PER_DAY*7; + rsc_iops = 1e9*SECONDS_PER_DAY*7; + rsc_memory = 4e9*SECONDS_PER_DAY*7; + rsc_disk = 1024*1024*1024; // 1 GB while (fgets(buf, 256, in)) { if (match_tag(buf, "")) return 0; else if (parse_str(buf, "", name, sizeof(name))) continue;