Skip to content

Commit

Permalink
[dashboard] include worker id in actor snapshot (ray-project#15967)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Wu <[email protected]>
  • Loading branch information
Alex Wu and Alex Wu authored May 21, 2021
1 parent 43be599 commit f080911
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard/modules/snapshot/snapshot_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ async def get_actor_info(self):
"resources": dict(
actor_table_entry.task_spec.required_resources),
"actor_class": actor_table_entry.class_name,
"current_worker_id": actor_table_entry.address.worker_id.hex(),
"current_raylet_id": actor_table_entry.address.raylet_id.hex(),
"ip_address": actor_table_entry.address.ip_address,
"port": actor_table_entry.address.port,
}
Expand Down
8 changes: 8 additions & 0 deletions dashboard/modules/snapshot/snapshot_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
"actorClass": {
"type": "string"
},
"currentWorkerId": {
"type": "string"
},
"currentRayletId": {
"type": "string"
},
"ipAddress": {
"type": "string"
},
Expand All @@ -118,6 +124,8 @@
"endTime",
"isDetached",
"resources",
"currentWorkerId",
"currentRayletId",
"actorClass",
"ipAddress",
"port"
Expand Down

0 comments on commit f080911

Please sign in to comment.