Zach Pham
Zach Pham

Reputation: 290

How to show log on Spring Cloud Data Flow UI

I have tried to view log of task on Spring Cloud Data Flow UI. However I got the message that: Log could not be retrieved as the task instance is not running when I used the REST ENDPOINT : localhost:9393/dashboard/#tasks/executions/33

When I launch my task for the first time with task id is 33, the log is showed on UI. But when I relaunch the same task again (task id is 34), the log of id 34 is showed but the log of id 33 is gone.

Im using SCDF version 2.2.2 and spring-cloud-deployer-local version 2.0.6. How to keep log of all task id on the UI?

enter image description here

Upvotes: 0

Views: 898

Answers (1)

Ilayaperumal Gopinathan
Ilayaperumal Gopinathan

Reputation: 4179

When the Spring Cloud Data Flow server uses local deployer to handle the task lifecycle management(launch, stop, etc.,), the corresponding task execution log can be obtained only when the task execution status is RUNNING.

This is by design because the local task launcher prunes the task instance history every time a new task instance is launched and hence the access to the log is not available. If you want to explore the code, you can check it here which is based on this Github issue

Upvotes: 1

Related Questions