Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

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

@klopfdreh

Description

@klopfdreh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions