Loading examples/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -84,8 +84,8 @@ if(SCORD_BUILD_TESTS) set_tests_properties(start_cargo PROPERTIES FIXTURES_SETUP cargo) add_test(stop_cargo ${CMAKE_SOURCE_DIR}/scripts/runner.sh stop TERM cargo.pid) add_test(stop_cargo ${CARGO_BIN_INSTALL_DIR}/cargo_shutdown --server ${DATA_STAGER_ADDRESS_STRING}) set_tests_properties(stop_cargo PROPERTIES FIXTURES_CLEANUP cargo) Loading src/scord/rpc_server.cpp +11 −4 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ namespace { cargo::dataset dataset_process(std::string id) { cargo::dataset::type type = cargo::dataset::type::none; cargo::dataset::type type = cargo::dataset::type::posix; if(id.find("lustre:") != std::string::npos) { id = id.substr(strlen("lustre:")); type = cargo::dataset::type::parallel; Loading Loading @@ -812,9 +812,6 @@ rpc_server::scheduler_update() { // Contact for transfer status const auto status = tr_info->transfer().status(); tr_info->update(status.bw()); auto bw = tr_info->measured_bandwidth(); auto qos = tr_info->qos().front().value(); switch(status.state()) { case cargo::transfer_state::completed: Loading @@ -833,6 +830,16 @@ rpc_server::scheduler_update() { case cargo::transfer_state::running: break; } tr_info->update(status.bw()); auto bw = tr_info->measured_bandwidth(); uint64_t qos = 0; try { qos = tr_info->qos().front().value(); } catch(const std::exception& e) { continue; } if(bw == -1) { continue; } Loading Loading
examples/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -84,8 +84,8 @@ if(SCORD_BUILD_TESTS) set_tests_properties(start_cargo PROPERTIES FIXTURES_SETUP cargo) add_test(stop_cargo ${CMAKE_SOURCE_DIR}/scripts/runner.sh stop TERM cargo.pid) add_test(stop_cargo ${CARGO_BIN_INSTALL_DIR}/cargo_shutdown --server ${DATA_STAGER_ADDRESS_STRING}) set_tests_properties(stop_cargo PROPERTIES FIXTURES_CLEANUP cargo) Loading
src/scord/rpc_server.cpp +11 −4 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ namespace { cargo::dataset dataset_process(std::string id) { cargo::dataset::type type = cargo::dataset::type::none; cargo::dataset::type type = cargo::dataset::type::posix; if(id.find("lustre:") != std::string::npos) { id = id.substr(strlen("lustre:")); type = cargo::dataset::type::parallel; Loading Loading @@ -812,9 +812,6 @@ rpc_server::scheduler_update() { // Contact for transfer status const auto status = tr_info->transfer().status(); tr_info->update(status.bw()); auto bw = tr_info->measured_bandwidth(); auto qos = tr_info->qos().front().value(); switch(status.state()) { case cargo::transfer_state::completed: Loading @@ -833,6 +830,16 @@ rpc_server::scheduler_update() { case cargo::transfer_state::running: break; } tr_info->update(status.bw()); auto bw = tr_info->measured_bandwidth(); uint64_t qos = 0; try { qos = tr_info->qos().front().value(); } catch(const std::exception& e) { continue; } if(bw == -1) { continue; } Loading