mirror of
https://github.com/wassname/ray.git
synced 2026-07-28 11:25:04 +08:00
Include resource string in error message for infeasible actors. (#1768)
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user