swift-distributed-actors
swift-distributed-actors copied to clipboard
Fixed WorkerPool to handle remote actors properly
Currently WorkerPool:
- Treats remote actors as weak and cleans them directly
- Doesn't work on Swift 6 mode as
WorkItemandWorkResultare not marked asSendable
This PR fixes this, basically cherry picked changes from this PR https://github.com/apple/swift-distributed-actors/pull/1159 and updated tests
Hm, would be nice to add test to check remote actors also.
@swift-server-bot test this please
@ktoso ClusterSingletonPluginClusteredTests is flacky, also seen it failing in main branch, need to check it separately.
Hm yeah some tests are flaky, the docs validation is also failing.
This did pass on many runs though so I'm ok to merge and we need to get CI more stable eventually