Skip to content

[Bug] [API] Keep printing null if task log file not exist #14895

@Radeity

Description

@Radeity

Search before asking

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

What happened

If we manually delete log file on Worker server, then we query logs and it will keep printing null log in UI page. And it will also print thousands of rows backend logs in a moment.

The reason is response of queryLog contains data.message "null" (String value), and will send another request to rolling view logs . It should directly return null to represent no more logs.

image

What you expected to happen

Do not send requests continuously.

How to reproduce

Easy to reproduce, just delete a task log file and then query it.

Anything else

Test in dev, not sure if the bug exists in release version.

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

backendimprovementmake more easy to user or prompt friendly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions