mirror of
https://github.com/wassname/ray.git
synced 2026-09-13 13:02:57 +08:00
Do resource bookkeeping for actor methods. (#682)
* Dispatch regular and actor tasks when resources become available. * Make actor methods do resource bookkeeping and add test. * Remove unnecessary field. * Fix linting. * Fix actor test. * Maintain set of actors with pending tasks to speed up task dispatch. * Exit early from task dispatch if there are no resources available. * Fix linting. * Fix error. * Fix bug related to iterator invalidation. * When an actor is removed, remove it from the set of actors with pending tasks.
This commit is contained in:
committed by
Philipp Moritz
parent
ed9380d73d
commit
5ebc2f3f2e
@@ -1602,7 +1602,7 @@ void process_message(event_loop *loop,
|
||||
int64_t end_time = current_time_ms();
|
||||
int64_t max_time_for_handler = 1000;
|
||||
if (end_time - start_time > max_time_for_handler) {
|
||||
LOG_WARN("process_message of type % " PRId64 " took %" PRId64
|
||||
LOG_WARN("process_message of type %" PRId64 " took %" PRId64
|
||||
" milliseconds.",
|
||||
type, end_time - start_time);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user