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

[Feature] [frontend] calling entrance apis to retrieve log when job is running in linkis-manager front-end #1596

Closed
1 of 2 tasks
Fuu3214 opened this issue Mar 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Fuu3214
Copy link
Contributor

Fuu3214 commented Mar 3, 2022

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

When retrieving log via linkis-manager front-end, we actually calls apis in publicservice. When job is running job-log is not flushed to PublicService. So we can't see the log when job is running.
通过linkis管理台查日志访问的是publicService的接口,但是任务在运行中时,日志没有被刷写到PublicService,所以运行中的人物看不到日志

Description

calling entrance apis to retrieve log when job is running in linkis-manager front-end
使用entrance 的api查看运行中的任务日志

Use case

when job is running we can ses log via linkis-manager frontend, and frontend is using entrance api. When job is finished, frontend is using publicService api to retrieve log
任务运行中,通过linkis管理台可以看到任务日志,且前端访问的是entrance的api;任务结束后,通过管理台拉日志使用PublicService api

solutions

when querying log, first check job status, if running then call entrance api; if job is finished then call publicService api
查询日志前先查询任务状态,如果任务在执行中,侧访问entrance接口,如果任务已完成则访问publicService接口

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants