Skip to main content

Questions tagged [shedlock]

ShedLock assures that scheduled tasks are executed at most once at the same time.

0 votes
0 answers
66 views

Multiple instances of springboot running on same database - best way to handle concurrent db access

We have an environment where we run multiple spring boot web services all linked to a single database schema. All of them are registered to Eureka and a gateway is responsible of accepting client ...
user666's user avatar
  • 1,947
0 votes
0 answers
28 views

Is there a way to view all the registered nodes that the ShedLock is operating on?

I am currently using ShedLock in my Java Spring Boot application to lock the task to be only executing on a single node(Instance). I have this application deployed to multiple servers (4 to be precise)...
Mykoliux's user avatar
0 votes
0 answers
27 views

How to store shedlock details to elastic search using spring

I want to use shedlock for my spring application and want to keep track of lock information for my schedulers in elastic search index, not finding any useful resources. I tried with Cassandra db and ...
Pramod Kumar's user avatar
0 votes
0 answers
46 views

How to implement shedlock in springboot project that is using custom base repository?

I see many examples online that integrates shedlock in a springboot project that uses MongoRepository. However, i am using my own custom base repository that utilises mongodb by adding a @Qualifier ...
SarahAlexa's user avatar
0 votes
0 answers
81 views

Spring Boot + ShedLock scheduler method starting but do nothing

I have a scheduler method, that works using Spring Boot 3 scheduling and the ShedLock library to handle distributed sheduling. Shedlock uses a Postgres table for synchronization. @Scheduled(cron = ...
Леонид Сухин's user avatar
0 votes
0 answers
50 views

UnsatisfiedDependencyException after adding Shedlock to Spring Boot application

I'm trying to configure ShedLock in my Spring application and used this guide to help me. When I try to build my application through Jenkins, one of the tests fails with error at the bottom. As lane....
runnerpaul's user avatar
  • 6,698
1 vote
0 answers
101 views

Spring shedlock table update row commit getting failed when the backend DB (Mysql InnoDB cluster) is running in multi-primary mode

A spring boot microservice deployed in OCP and makes connection to the backend database using mysql-router image. This service contains a scheduler class (using @scheduled annotation) to do certain ...
Venkatesh Waran's user avatar
0 votes
1 answer
56 views

How implement fallback mechanism when DB contains shedlock table goes down?

As per the requirement using @SchedulerLock and it internally uses the table with name "shedlock" for maintaining the details about job acquired the lock. Here, in case, the DB containing ...
Mani Vasu's user avatar
0 votes
1 answer
283 views

Removing Records from shedlock table which is managed by spring itself i want to remove records from shedlock table?

I have try removing like this this works correctly but the new records weren't inserted until application start. package com.jcdecaux.hive.refproxy.dao.db.repository; import org.springframework.beans....
L.r. Sharma's user avatar
0 votes
0 answers
298 views

Shedlock skipped runs

I am using shedlock to implement a use-case of distributed locking. My app is running on 20 machines, and I want scheduler to be executed once in every 5 minutes in any 1 machine by using implicit ...
tusharRawat's user avatar
0 votes
1 answer
301 views

Shedlock dynamic lock name template interpolation

I need to use method parameters as part of the lock name. @SchedulerLock(name = "my-job-#{tenantId}-#{date}") public void job(UUID tenantId, LocalDate date) { }
Hadi Mansouri's user avatar
0 votes
1 answer
336 views

Can I implement Shedlock for the run method implemented by the runnable interface

I have a scheduler task created using Scheduled Future and Task scheduler. the scheduled task is basically a new class which implements runnable and used run method of the runnable interface. My doubt ...
Flammy's user avatar
  • 11
0 votes
2 answers
578 views

Can Shedlock be used in a non Spring-boot app?

I've been trying to get Shedlock set up so that a certain process is only ever run from 1 instance of the app at a time, the app uses some springframework dependencies, but is not a spring-boot app. I'...
MCherebin's user avatar
2 votes
1 answer
2k views

Shedlock tries to insert new row in db instead of updating the existing row for the job

So I have a scheduled job, locked with ShedLock. When executing, I get the following error: SQLIntegrityConstraintViolationException: Duplicate entry 'myJob' for key 'PRIMARY'. The function has the ...
Tudor Cheregi's user avatar
0 votes
2 answers
568 views

how to handle exception happened inside @SchedulerLock

We have Spring boot API which use Quartz and shedlock for our batch. We have bellow exception when it try to put lock for batch job and the database connection is not abvailable. we are using ...
Bruce Xie's user avatar

15 30 50 per page
1
2 3 4 5