-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Adapt method difference between classic and operator KubeCluster #645
Comments
That's an interesting difference. In the new implementation all we are doing is creating a k8s resource via the API. We could definitely make this always sync if that would help with consistency. |
If you think this way is more consistent I can create a PR to make the |
If you set However, I think we are doing the right thing here. Calling Ideally the Prefect runner would call |
That makes sense for the new implementation point of view. |
The
adapt
method in theclassic.KubeCluster
implementation relies on the distributed.Cluster adapt method and issynchronous
if we create the cluster withasynchronous=False
orasynchronous=True
.The adapt method in the
operator.KubeCluster
implementation calls the distributed.SyncMethodMixin sync method and isasynchronous
if we create the cluster withasynchronous=True
(return a future from the sync method).This creates a difference on how one should handle the KubeCluster implementations. For example, in this issue on the
prefect-dask
repository, when using theoperator.KubeCluster
implementation, theadapt
method should be awaited, and when using theoperator.KubeCluster
implementation, it shouldn't.@jacobtomlinson Do you have any idea how and where (upstream/downstream) one could fix this?
The text was updated successfully, but these errors were encountered: