xorbitsai / xoscar

Python actor framework for heterogeneous computing.
https://xoscar.dev
Apache License 2.0
89 stars 21 forks source link

[BUG] actor_ref在创建之后,通过actor_ref方法获取时,uid丢失,变成了None #103

Closed wuyouMaster closed 2 weeks ago

wuyouMaster commented 2 weeks ago

Describe the bug

xinference框架在使用xoscar创建worker_ref之后,再通过actor_ref方法获取worker_ref应用时,能够获取引用,但是这个ref的uid变成了None

library versions: xinference==0.13.3 xoscar==0.3.2

Additional context

2024-08-29_13-42 2024-08-29_13-42_1 2024-08-29_13-45 2024-08-29_13-44

qinxuye commented 2 weeks ago

问题在 xinference repo 里进行了修复,实际上不是 Xoscar 的问题。

原因在于 Xinference 里的几个 Actor 使用了 uid() 方法,但 uidxoscar.Actor 的属性,被覆盖掉了。