Questions tagged [crontrigger]

Use ConTrigger if you need a job-firing schedule that recurs based on calendar-like notions

ConTrigger class from Quartz Job Scheduling Library allowing you to create

"job-firing schedule that recurs based on calendar-like notions, rather than on the exactly specified intervals of SimpleTrigger."

To find more information :

206 questions
0
votes
1 answer

Quartz job is not updating database

I have triggered Quartz job pragmatically. But it's not looking updating the database. I mean, "PREV_FIRE_TIME" column is not getting updated. I have run the following code. stdScheduler.triggerJob(jobName,jobGroupName); Though, during normal…
abhijit nag
  • 451
  • 6
  • 24
0
votes
1 answer

Java Cron Jobs Stop for one hour a day?

I am developing java application and in this I wanted to run some method periodically. I have used java schedule to run that method periodically. This is my Cron Expression. /* runs in twelth second by every 5 minutes*/ public static String…
Pradeep Gamage
  • 585
  • 4
  • 8
  • 21
0
votes
1 answer

Quartz Scheduler execute job only if it is not already running

In my java web application I am using Quartz CronTrigger Bean to schedule the execution of a job. In my configuration xml file I want to trigger the job every 10 minutes:
Rami
  • 8,044
  • 18
  • 66
  • 108
0
votes
1 answer

How to add a cron trigger with or condition?

My condition is like that, i want a trigger to be fired every month on the date say 30, but the month February dosn't have this particular date ,so during execution will the quartz through a exception or it will execute that trigger on the day 28…
sanjib
  • 1
  • 3
0
votes
1 answer

How to configue cron job for jsp page?

I need to execute a jsp page after every 30 minutes. I am using glassfish server. I want to uses cron job for that, but I never work before with cron job. Please give me any link or example from where I can understand how to configure a cron job…
ehp
  • 2,495
  • 6
  • 29
  • 43
0
votes
1 answer

Quartz.net cron trigger fires only once

Started using Quartz.net in my project. But got stuck. Using cron trigger fires only once, and stops. What may cause this problem? Here are masks for cron trigger: 0 0/7 * * * ? 0 0/10 * * * ? And they look good for me, also no exception raised in…
Johnny_D
  • 4,592
  • 3
  • 33
  • 63
-1
votes
1 answer

Convert next cron time in UTC format

My database has times in UTC format. When I fetch from the database it comes in a long datatype format. For eg In DB - 2023-03-08 15:01:05.234081 Corresponding Long - 1678258865 I am having a cron expression and trying to determine the next time to…
Harish
  • 565
  • 1
  • 12
  • 34
-1
votes
2 answers

How to schedule crontrigger to run on certain days of the week?

I have a job to execute on Saturday and Sunday, but not on weekdays. This is how I schedule it: myTriggerBuilder.withSchedule(cronSchedule("0 0 0 * * ?")).build(); This will run at 00:00:00 server time each day. However, I would like to make it…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
-1
votes
1 answer

Type Casting for generating Cron Expression

I am trying to generate cron expressions using java code and I'm having some hard time on type casting to generate the cron expression. So my question is can we type cast SimpleScheduleBuilder to CronTrigger for generating Cron Expression ?…
Karthik
  • 145
  • 1
  • 2
  • 12
-1
votes
2 answers

Any java libraries to convert cron expression into interval?

Is there any java libraries which I can use to convert cron expression into time interval? It could be Seconds, Milliseconds, Minutes etc... Cron Expression (Input): 0/15 * * * * ? Output1: 15 (getInSeconds) Output2: 15000 (getInMilliSeconds)
Hemanth S R
  • 1,115
  • 2
  • 16
  • 27
-3
votes
1 answer

set cron job for every 45 day to execute my php script using cron?

I need to run my cron after every 45 days in single line of shell terminal. Please provide some solution for the same Thanks
sachin sawant
  • 231
  • 1
  • 2
  • 3
1 2 3
13
14