Skip to content

Conversation

@graingert
Copy link
Member

Fixes #516

graingert added 2 commits June 6, 2022 10:04
pytest should capture the output with capfd so we can see
the log when interrupted by pytest-timeout
@graingert
Copy link
Member Author

I added 6f04d5e to try and debug the TimeoutErrors in https://github.com/dask/dask-kubernetes/runs/6752846378?check_suite_focus=true but they didn't occur in the second run :(

@graingert
Copy link
Member Author

graingert commented Jun 6, 2022

@jacobtomlinson I tried to move KubeCluster's self.name = into a super().__init__ call however the name is only computed in async def _start(

self.name = self.pod_template.metadata.generate_name

I think because self._fill_pod_templates( can only be called after await ClusterAuth.load_first(self.auth) - which can't be called in the constructor

await ClusterAuth.load_first(self.auth)

@graingert
Copy link
Member Author

the self.name assignment in KubeCluster doesn't exhibit the problem in #516 because the assignment happens after Cluster.__init__ has been called.

@graingert graingert changed the title set cluster name via constructor set cluster name via constructor to work around https://github.com/dask/distributed/issues/6485 Jun 6, 2022
@graingert graingert changed the title set cluster name via constructor to work around https://github.com/dask/distributed/issues/6485 set cluster name via constructor to work around #dask/distributed/6485 Jun 6, 2022
Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

Many thanks!

@jacobtomlinson jacobtomlinson merged commit 2c18242 into dask:main Jun 7, 2022
@graingert graingert deleted the set-name-via-constructor branch June 7, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HelmCluster cluster names get carried over to subsequent Clusters

2 participants