Distributed lock for scheduled tasks in Java, ensuring only one instance executes a task at a time.
<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-core</artifactId>
<version>7.7.0</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Annotate a scheduled method with SchedulerLock
Set lockAtMostFor to a duration slightly longer than the maximum expected execution time.
No dependency data recorded yet.