Include resource string in error message for infeasible actors. (#1768)

This commit is contained in:
Robert Nishihara
2018-04-02 00:31:30 -07:00
committed by Philipp Moritz
parent 23b8793f0e
commit 27a0d58e54
@@ -872,8 +872,13 @@ void spillback_tasks_handler(LocalSchedulerState *state) {
<< "cluster does not have enough resources to place this "
<< "actor. Try reducing the number of actors created or "
<< "increasing the number of slots available by using "
<< "the --num-cpus, --num-gpus, and --resources flags.";
<< "the --num-cpus, --num-gpus, and --resources flags. "
<< " The actor creation task is requesting ";
for (auto const &resource_pair :
TaskSpec_get_required_resources(spec)) {
error_message << resource_pair.second << " " << resource_pair.first
<< " ";
}
push_error(state->db, TaskSpec_driver_id(spec),
ACTOR_NOT_CREATED_ERROR_INDEX, error_message.str());
}