Skip to content
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

"Connecting to cluster" message appeared after it was connected #36

Open
edaena opened this issue Jun 26, 2019 · 2 comments
Open

"Connecting to cluster" message appeared after it was connected #36

edaena opened this issue Jun 26, 2019 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@edaena
Copy link
Collaborator

edaena commented Jun 26, 2019

On the demo, it was taking time to connect to the cluster, there was no indication of what the tool was doing.

Expected:
Before the cluster connection starts, display the "Connecting to cluster" message

Seen:
The "Connecting to cluster message" showed up after several seconds and right after the "Connected!" message showed up

@edaena edaena added the bug Something isn't working label Jun 26, 2019
@edaena edaena added this to the Post-MVP milestone Jun 26, 2019
@andrewDoing
Copy link
Owner

Yes, this is an interesting circumstance. The code looks like this:
print("Connecting to cluster...")
my_cluster = Cluster(args.kubeconfig)
my_cluster.connect_to_cluster()
print("Connected!")

So it should print "Connecting to cluster..." essentially right away. There appears to be startup time between execution and printing to the terminal.

@andrewDoing
Copy link
Owner

https://dev.to/methane/how-to-speed-up-python-application-startup-time-nkf

I followed the steps that the above article provides, removing pkg_resources from my imports. This sped up the execution time significantly. Unfortunately I'm not certain how to reflect this change in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants