Skip to content

ScheduledTask with multiple backends running #255

Open
@iCesofT

Description

@iCesofT

In https://github.com/DP-3T/dp3t-sdk-backend/blob/develop/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/config/WSBaseConfig.java you have a method "configureTasks" that runs periodically to clean the database.

If you have more than one backends running (as expected in an HA environment), you are launching this method for each backend, aren't you?

The optimal solution would be to use Quartz or ShedLock to secure launching the database cleaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions