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

Add health check on infrastructure for task applications via status endpoint #5851

Open
klopfdreh opened this issue Jun 27, 2024 · 0 comments
Labels
type/enhancement Is an enhancement request
Milestone

Comments

@klopfdreh
Copy link
Contributor

klopfdreh commented Jun 27, 2024

Problem description:
Currently we are facing the issue that if we run a task application via kubernetes - the node can be restarted at any time. This causes all pods to be terminated. In this case we have no way to check it and the task remain on status "running", but nothing is happening anymore.

Since we are using Spring Batch we can use a query towards the batch database and check if the task application is still running and no update for the batch job has occurred for a defined time span. (database column name: last_updated)

Solution description:
Improve the REST endpoint to get the task status to also check via Spring Cloud Deployer if the task application is still running in the infrastructure:

dataFlowOperations.taskOperations().taskExecutionStatus(taskId, bootSchemaVersion);

If the task application is not running anymore but in the task database it is still mentioned as running you could return a specific task status to handle this issue.

Description of alternatives:
N/A

Additional context:
N/A

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jun 27, 2024
@cppwfs cppwfs added this to the 3.0.x milestone Jul 1, 2024
@cppwfs cppwfs added type/enhancement Is an enhancement request and removed status/need-triage Team needs to triage and take a first look labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Is an enhancement request
Projects
None yet
Development

No branches or pull requests

2 participants