Registry / utility / shedlock-spring

shedlock-spring

JSON →
library7.7.0javamavenunverified

ShedLock provides distributed locks for scheduled tasks in Spring applications to ensure single execution across multiple instances.

<dependency> <groupId>net.javacrumbs.shedlock</groupId> <artifactId>shedlock-spring</artifactId> <version>7.7.0</version> </dependency>
INSTALL
IMPORT
SIG · SHEDLOCK-SPRING
S
shedlock-spring
utilityjavav7.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EnableSchedulerLock
net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock

Minimal ShedLock Spring configuration

import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock; import org.springframework.scheduling.annotation.EnableScheduling; @Configuration @EnableScheduling @EnableSchedulerLock(defaultLockAtMostFor = "PT30S") public class SchedulerConfig { }
Debug
Known issues
gotchaShedLock requires a lock provider (e.g., JDBC, Redis) to be configured; otherwise locks are not persisted.
fix
Add a lock provider dependency and configure it in your application context.
affects: all
Upgrade
Version history
7.7.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
shedlock-spring — mvn dependency:get shedlock-spring · libregistry