Questions tagged [quartz]
512 questions
10
votes
0 answers
How to implement Quartz Exponential Backoff strategy?
Currently my quartz job is triggered in this way:
When first schedule the job, the job will be triggered after 5
mins.
The job will be triggered 5 times, with the time interval 2
mins.
So if I schedule my job at time1, the job will be executed…

Freya Ren
- 2,086
- 6
- 29
- 39
8
votes
2 answers
spring boot - disable quartz scheduler
I need to be able to set up quartz to run depending on the profile. I am using an integration test to make sure that each profile is getting the scheduler started (or not), but I am checking a profile that doesn't have it enabled and this check is…

eftshift0
- 26,375
- 3
- 36
- 60
8
votes
2 answers
Job Chaining using quartz in Java
I want to execute multiple jobs sequentially . I am trying it in following way but somehow its not gets triggered using cron job.
I am not sure whether its a correct implementation approach .
Can someone please guide me on this ?
Thanks ..
…

Sachin
- 221
- 2
- 4
- 12
7
votes
4 answers
Autowiring in Quartz multiple Jobs with Spring Boot not working
I'm try to use quartz scheduler in spring. I get below exception when configuring multiple jobs
Parameter 0 of method jobTrigger in Job2 required a bean of type 'org.quartz.JobDetail' that could not be found.
quartz - v2.3, Spring -…

Zire
- 71
- 1
- 1
- 3
7
votes
2 answers
Spring schedule graceful shutdown not working when using a cron scheduled
I have a small standalone application that configures the scheduler to terminate gracefully. With the following configuration:
@Bean
public TaskScheduler taskScheduler() {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
…

rpvilao
- 1,116
- 2
- 14
- 31
6
votes
1 answer
Quartz Spring Boot There is no DataSource named 'dataSource'
I have the following…

alexanoid
- 24,051
- 54
- 210
- 410
6
votes
0 answers
Using a Persistent Quartz Scheduler while also using R2DBC in Spring Boot
I have been trying to get Quartz to work while using R2DBC in spring boot. So far, I have not figured out how to do this. This is because when a JDBC DataSource is created, it tries to initialize my R2DBC repositories which it cannot do because…

TheNumberOne
- 404
- 3
- 13
6
votes
2 answers
Swift: How to observe if screen is locked in macOS
I want to detect if the user has locked his screen (in macOS) using Swift.
Based on this answer I’ve created the following code:
import Cocoa
import Quartz
if let dict = Quartz.CGSessionCopyCurrentDictionary() as? [String : Any] {
let locked =…

ixany
- 5,433
- 9
- 41
- 65
6
votes
0 answers
How to properly configure clustered Quartz with MariaDB
We have a clustered quartz configuration with 8 geographically distributed nodes all backed by a single instance of MariaDB. We’ve repeatedly observed the following error :
2018-04-26 00:14:01,186 [censored_QuartzSchedulerThread] ERROR…

Sergio
- 408
- 4
- 12
6
votes
2 answers
IServiceCollection does not contain definition for AddQuartz
I'm trying to use Quartz sheduker in my asp core 2.0 project.
I downloaded Quartz 3.0.4 using nuget and after that i added services.AddQuartz(new QuartezOptions {});
to ConfigureService function in Startup.cs
I also have the same problem with…

Sektor
- 136
- 8
6
votes
3 answers
Spring Quartz Setting up Constructor based Injection with Parent Class Constructor
I have a spring boot project that I want to use quartz with to run certain jobs at certain times. I have this class layout:
abstract public class AbstractFoo {
protected final FooB fooB;
public AbstractFoo(FooB fooB) {
this.fooB =…

Richard
- 5,840
- 36
- 123
- 208
5
votes
0 answers
Quartz.Net TriggerJob and wait for execution
I need to manually invoke some Quartz.NET jobs and wait for them to complete. Please see the simplified sample code below:
[HttpPost("[action]/{jobKey}")]
public async Task StartJob(string jobKey)
{
await…

Cosmin Vană
- 1,562
- 12
- 28
5
votes
5 answers
Quartz.NET error comes every time I use it
I get an error in this line saying:
Cannot implicitly convert type 'System.Threading.Tasks.Task' to 'Quartz.IScheduler'. An explicit conversion exists (are you missing a cast?)
How to solve it; I don't understand? Please help!
IScheduler…

user5231960
- 61
- 1
- 2
4
votes
0 answers
Spring batch step completing but Job not ending
I have a Job that has only one step which contains JdbcPagingItemReader,Custom Processor and custom writer that writes to elasticsearch.
Step configuration is
jobBuilderFactory.get("job")
.

Ashish Singh
- 85
- 4
4
votes
0 answers
Spring Boot Quartz - Show SQL statements
I'm using Quartz together with Spring Boot and postgres database as a persistence storage for quartz stuff. I would like to see sql logs in a console which quartz is executing under the hood. I tried many configuration properties to enable it, but…

Kamil W
- 2,230
- 2
- 21
- 43