-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feedback for /docs/quarks/console/ #43
Comments
We don't. I'm working on that page and removing that wait. Take care, Susan
|
I added the wait because the app started writing to the console straight away and it was very difficult/impossible to cut and paste the URL to access the console before it was flushed from the console window in eclipse by the sensor output. The 10 second wait gives you plenty of time to see and copy the URL before the applications output starts. |
I made a similar comment on the pull request:
|
Since I'm working on this page right now I'm inclined to take out the wait and provide a few options for the user:
In the detailed example I'm referring to the wait is not present. I can modify the existing example with an either or situation - comment out the print() and remove the wait, or explain if the print() is present to include the wait. |
As long as the example works in a way that a new user can easily get the URL and access the console, I don't have a strong preference. |
FYI, In terms of "scroll in the window at the beginning to find the console url" if you mean that the user could just scroll up to get the URL the buffer fills and very quickly its no longer available by scrolling up. |
Yes, it depends on how fast the output is occurring, but I understand. Another option is to output the console url to a file. I can add that option too. |
Why do we need to wait for 10 seconds before the job is submitted? Is this the best practise?
// print the console URL and wait for 10 seconds before submitting the topology
System.out.println(dp.getServices().getService(HttpServer.class).getConsoleUrl());
try {
TimeUnit.SECONDS.sleep(10);
} catch (InterruptedException e) {
//do nothing
}
The text was updated successfully, but these errors were encountered: