Skip to content

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

@Fuu3214

Description

@Fuu3214

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions