Skip to content

Commit

Permalink
Send response (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shillaker committed Jun 17, 2021
1 parent fe6d33a commit cd8a532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scheduler/FunctionCallClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void FunctionCallClient::sendFlush()
call.set_returnhost(faabric::util::getSystemConfig().endpointHost);

SEND_MESSAGE(faabric::scheduler::FunctionCalls::Flush, call);

// Await the response
awaitResponse(FUNCTION_CALL_PORT + REPLY_PORT_OFFSET);
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/scheduler/FunctionCallServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ void FunctionCallServer::recvFlush(faabric::transport::Message& body)

// Clear the scheduler
scheduler.flushLocally();

faabric::EmptyResponse response;
SEND_SERVER_RESPONSE(response, msg.returnhost(), FUNCTION_CALL_PORT)
}

void FunctionCallServer::recvExecuteFunctions(faabric::transport::Message& body)
Expand Down

0 comments on commit cd8a532

Please sign in to comment.