Skip to content

Conversation

@akbashev
Copy link
Contributor

Currently WorkerPool:

  • Treats remote actors as weak and cleans them directly
  • Doesn't work on Swift 6 mode as WorkItem and WorkResult are not marked as Sendable

This PR fixes this, basically cherry picked changes from this PR #1159 and updated tests

wip

wip

strong ref fix
@akbashev akbashev marked this pull request as ready for review October 15, 2024 15:01
@akbashev
Copy link
Contributor Author

Hm, would be nice to add test to check remote actors also.

Copy link
Member

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just needs to be careful with the enums and maybe add one more test?

@akbashev akbashev requested a review from ktoso November 6, 2024 10:51
@ktoso
Copy link
Member

ktoso commented Nov 6, 2024

@swift-server-bot test this please

# Conflicts:
#	Sources/DistributedCluster/InvocationBehavior.swift
#	Sources/DistributedCluster/Pattern/WorkerPool.swift
#	Sources/DistributedCluster/WeakActorDictionary.swift
#	Tests/DistributedClusterTests/Pattern/WorkerPoolTests.swift
@akbashev akbashev requested a review from ktoso April 30, 2025 14:14
@akbashev
Copy link
Contributor Author

@ktoso ClusterSingletonPluginClusteredTests is flacky, also seen it failing in main branch, need to check it separately.

@ktoso ktoso added the semver/none No version bump required. label Sep 10, 2025
@ktoso
Copy link
Member

ktoso commented Sep 13, 2025

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

@ktoso ktoso merged commit 9a8a674 into apple:main Sep 13, 2025
31 of 38 checks passed
@akbashev akbashev deleted the worker-pool-fix branch September 17, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants