mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-03-02 03:40:21 +00:00
client: when job fails, still wait for others to complete
This commit is contained in:
@@ -79,6 +79,8 @@ int main(int argc, char** argv) {
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
capnp::EzRpcClient client(address);
|
capnp::EzRpcClient client(address);
|
||||||
LaminarCi::Client laminar = client.getMain<LaminarCi>();
|
LaminarCi::Client laminar = client.getMain<LaminarCi>();
|
||||||
|
|
||||||
@@ -124,7 +126,7 @@ int main(int argc, char** argv) {
|
|||||||
// pend on the promises
|
// pend on the promises
|
||||||
for(auto& p : promises) {
|
for(auto& p : promises) {
|
||||||
if(p.wait(waitScope).getResult() != LaminarCi::JobResult::SUCCESS) {
|
if(p.wait(waitScope).getResult() != LaminarCi::JobResult::SUCCESS) {
|
||||||
return EFAILED;
|
ret = EFAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(strcmp(argv[1], "set") == 0) {
|
} else if(strcmp(argv[1], "set") == 0) {
|
||||||
@@ -161,5 +163,5 @@ int main(int argc, char** argv) {
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user