Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bulk request for slot information #436

Open
rbx opened this issue May 9, 2022 · 0 comments
Open

Add bulk request for slot information #436

rbx opened this issue May 9, 2022 · 0 comments
Assignees
Milestone

Comments

@rbx
Copy link
Member

rbx commented May 9, 2022

When asking for slot info currently the info is delivered one by one:

SSlotInfoRequest::request_t requestInfo;
SSlotInfoRequest::ptr_t requestPtr{ SSlotInfoRequest::makeRequest(requestInfo) };

requestPtr->setResponseCallback([](const SSlotInfoResponseData& _info) {
    LOG(log_stdout_clean) << "Slot " << _info.m_index << ": agentID (" << _info.m_agentID << "), slotID ("
                          << _info.m_slotID << "), taskID (" << _info.m_taskID << "), state (" << _info.m_state
                          << "), host (" << _info.m_host << "), wrkDir (" << quoted(_info.m_wrkDir) << ")";
});

For many slots it would be more efficient (at least on the user side) to get all slots in a bulk response.
As it is done in a similar request for agent info:

SAgentInfoRequest::request_t agentInfoRequest;
SAgentInfoRequest::responseVector_t agentInfo;
ddsSession->syncSendRequest<SAgentInfoRequest>(agentInfoRequest, agentInfo, timeout);
@AnarManafov AnarManafov self-assigned this May 9, 2022
@AnarManafov AnarManafov added this to the 3.10 milestone May 9, 2022
@AnarManafov AnarManafov modified the milestones: 3.9, 3.10, 3.11 Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants