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

[Question] Is there way to print log with scheduling? #4018

Closed
parksjin01 opened this issue Jun 28, 2020 · 1 comment
Closed

[Question] Is there way to print log with scheduling? #4018

parksjin01 opened this issue Jun 28, 2020 · 1 comment
Labels
type/question Is a question

Comments

@parksjin01
Copy link

I'm newbie of the SCDF and i'm studying many features SCDF provides for.

I found that when I execute Spring Batch manually with launch button (▶️ button), log is printed.
But when I run same Spring Batch with scheduler, Log doesn't printed...

I want to know how to print log when running Spring Batch with scheduler.
If it is impossible then can you suggest which is the proper way to left log (somewhere like Exit Message or else)

Thanks!

@sabbyanandan sabbyanandan added the type/question Is a question label Jun 28, 2020
@sabbyanandan
Copy link
Contributor

@parksjin01: There's currently no support to retrieve logs for a scheduled task (see: Scheduler.java); however we have an API to fetch the logs for a task that was launched manually (see: TaskLauncher.java#L132).

I created spring-cloud/spring-cloud-deployer#342 — feel free to contribute it. Once when you have the API in the Deployer SPI, you'd then have also to implement the API in the K8s-deployer, as well. You can use KubernetesTaskLauncher.java#L189 as a reference when implementing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Is a question
Projects
None yet
Development

No branches or pull requests

2 participants