New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 断点恢复会重置 Role 的 rc.watch 属性 #1248
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
我正在测试端点恢复功能,首先调用 Team 对象的 serialize 方法将 Team 对象序列化为json格式并保存到 team.json 文件,然后调用Tam类的deserialize方法从json文件恢复Team对象。这时候问题出现了,我观察到 Role 的 validate_role_extra 方法将会被调用两次,正常情况下它应该只调用一次。
调用顺序如下(Researcher继承Role):
由于多调用了一次 validate_role_extra 方法,Role 的 rc.watch 属性会被重置为 UserRequirement,导致无法从中断前的 Message 开始重新执行。相关代码如下:
这个错误似乎跟 Role 继承 SerializationMixin 有关。
The text was updated successfully, but these errors were encountered: