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

Fix Scheduler UI in Docker image #251

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Sep 20, 2022

Which issue does this PR close?

Closes #250

Rationale for this change

The UI now shows information!

working

What changes are included in this PR?

Try and proxy API requests to the scheduler process

Are there any user-facing changes?

nginx config

@andygrove andygrove changed the title WIP: Attempt to fix scheduler UI in docker Fix Scheduler UI in Docker image Sep 20, 2022
@andygrove andygrove marked this pull request as ready for review September 20, 2022 02:12
@andygrove
Copy link
Member Author

@yahoNanJing @thinkharderdev @avantgardnerio This is ready for review. Once this is merged, I will create a PR to add a list of jobs and the ability to view job status.

Copy link
Contributor

@avantgardnerio avantgardnerio left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -85,7 +85,7 @@ fn with_data_server<T: AsLogicalPlan + Clone, U: 'static + AsExecutionPlan>(
pub fn get_routes<T: AsLogicalPlan + Clone, U: 'static + AsExecutionPlan>(
scheduler_server: SchedulerServer<T, U>,
) -> BoxedFilter<(impl Reply,)> {
let routes = warp::path("state")
let routes = warp::path!("api" / "state")
Copy link
Contributor

Choose a reason for hiding this comment

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

overloading the / operator? Nothing to do with this PR, but not a fan after seeing abuse in C++ & C#.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. I am just beginning to learn about the warp framework, so will see if this can be avoided as I learn more.

@yahoNanJing
Copy link
Contributor

Thanks @andygrove. LGTM. Verified at my env.

@andygrove
Copy link
Member Author

Thanks for the reviews @yahoNanJing and @avantgardnerio

@andygrove andygrove merged commit 08fa42b into apache:master Sep 20, 2022
@andygrove andygrove deleted the fix-ui-in-docker branch September 20, 2022 17:15
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.

Scheduler UI not working in Docker image
3 participants