Questions tagged [quartz]

512 questions
3
votes
1 answer

How to resolve " registered as 'Async Scoped' lifestyle, but the instance is requested outside the context of an active (Async Scoped) scope"

I am using TopShelf, Quartz and SimpleInjector. So I keep having this exception, I tried doing hybrid, but ended up with "is registered as 'Hybrid Async Scoped / Web Request' lifestyle, but the instance is requested outside the context of an active…
steffiereggie
  • 55
  • 1
  • 5
3
votes
0 answers

How to get quartz thread pool size at runtime?

I have quartz-1.8.6/java application that is using default org.quartz.simplSimpleThreadPool with "org.quartz.threadPool.threadCount" (number of worker threads in the pool) set to 20. I would like to periodically poll for the number of currently…
dzakharov
  • 332
  • 4
  • 8
3
votes
0 answers

How to handle misfire triggers in Quartz Scheduler?

I have a Quartz Scheduler. If I run the scheduler after maintenance window or so, it should not run the misfire triggers older than 15 minutes. How can I control this? Is there any property or something?
Tanu Garg
  • 3,007
  • 4
  • 21
  • 29
3
votes
3 answers

Spring boot 2.0.6 quartz missing org/springframework/scheduling/quartz/SpringBeanJobFactory in war

Using spring boot war build during the start up of the application in the tomcat Caused by: java.io.FileNotFoundException: class path resource [org/springframework/scheduling/quartz/SpringBeanJobFactory.class] cannot be opened because it does not…
Iurii Dziuban
  • 1,091
  • 2
  • 17
  • 31
3
votes
1 answer

Triggers misfire in Quartz scheduler

Is there any way by which we can resume triggers in Quartz once system is back online? We have some scheduled trigger(with frequency interval 6 hours), Sometime our system went down and it skips the execution of those triggers. Can anyone suggest if…
ABandooni
  • 31
  • 1
  • 2
3
votes
4 answers

Quartz Expression that runs every minute only once

I have this quartz cron expression: exp = "0 * * ? * *" that runs every minute. I use this expression as a trigger to call a HTTP POST method every minute. The problem is that it calls the post method multiple times. I need an expression that will…
Eraldo Forgoli
  • 65
  • 1
  • 3
  • 13
3
votes
1 answer

Difference between quartz and quartz-jobs

There are 2 dependencies for quartz. The dependency quartz(1st option below) has all the basic required classes needed for a basic job scheduling and execution. What is quartz-jobs used for? org.quartz-scheduler
Deepak Kataria
  • 89
  • 2
  • 11
3
votes
1 answer

cannot implicitly convert type 'System.Threading.tasks.task to

public void Start() { ISchedulerFactory schedFact = new StdSchedulerFactory(); IScheduler sched = schedFact.GetScheduler(); sched.Start(); IJobDetail job = JobBuilder.Create() .Build(); …
Elenor
  • 65
  • 1
  • 6
3
votes
0 answers

Quartz Spring Test JUnit

How to use a Job that is operating in Cluster with Spring? Spring 4.3 Quartz 2.2.3 Sample job declaration @PersistJobDataAfterExecution @DisallowConcurrentExecution public class SysEncryptEmailSendSystemJob implements Job{ .. @Override public…
Marcelo Ferreira
  • 428
  • 1
  • 5
  • 20
3
votes
1 answer

How to autowired in quartz?

Previously I had set it up to autowired in a quartz job. Note here. But, the autowired of the job inner class will fail. My job code example is here. public class MyJob extends QuartzJobBean { @Autowired private Hello hello; //<--- this is…
taeun
  • 95
  • 1
  • 6
3
votes
0 answers

macOS screenshot with Python sent over sockets too slow

My overall goal is to stream my computer screen to another machine on the same local network. I know taking a screenshot on osx with python has been asked before, specifically here, but I am not satisfied with the answers there. Namely, they are too…
Enrico Borba
  • 1,877
  • 2
  • 14
  • 26
3
votes
2 answers

how to handle user timezone for daylight savings in quartz for cron Triggers?

My service api takes in startDate for quartz Job and day of Month for the job to executed. Internally, I convert this to cron expression and save in quartz. For example, a user in PST submits a job request today (Nov 3 2017) as follows. { "start":…
brain storm
  • 30,124
  • 69
  • 225
  • 393
3
votes
1 answer

Retry Quartz Scheduler start up on database connection failure

We have a Java application that uses Quartz for scheduling jobs. The version of quartz that we use is: quartz-2.2.1 The quartz configuration uses JDBC job store. If the database connection is down (due to intermittent network failure) at the time of…
Aman
  • 1,170
  • 3
  • 15
  • 29
3
votes
1 answer

Quartz Scheduler : Failed to obtain DB connection from data source

I trying to implement Quartz-Scheduler in Spring-Boot application. But when I'm trying to schedule job, I'getting this exception: 2017-03-21 15:57:42.817 INFO 12069 --- [o-8080-exec-178] org.quartz.impl.StdSchedulerFactory : Quartz scheduler…
Drunken Daddy
  • 7,326
  • 14
  • 70
  • 104
3
votes
0 answers

Quartz : What happens to misfires when a trigger is rescheduled?

So consider I have scheduled a Job J1 and Trigger T1 with thread pool allocated to quartz with 3 threads. The T1 is scheduled to execute the job every day at 5 A.M. with misfire instruction to run all the jobs immediately. If my server was in…
Vaibhav Singh
  • 421
  • 3
  • 12
1 2
3
33 34