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
1
vote
1 answer

Cron Job Scheduling Different Dates of different month

Is there any way to schedule the CRON job for different days of different months! For Example: I need to schedule the job from February 25 to March 10 2017.this can be done by creating 2 jobs as "0/1 * 25-28 2 2017 /cronjob.sh" and "0/1 * 1-10 3…
AnilCk
  • 106
  • 3
  • 12
1
vote
1 answer

Cron Job Scheduled did not run on specified time

I scheduled a cron job to hit a page 1st of every month at 12.00AM but the cron didn't work for some reason. The below is the cron I have used : 0 0 1 * * /usr/bin/php /var/www/html/cronleave.php >/dev/null 2>&1 Any help will be appreciated.
Vinit Sinkar
  • 99
  • 2
  • 10
1
vote
2 answers

Schedule a Cron Job to start immediately when web application is deployed

I am working on writing a Job when my application is deployed. This Job should run every 5 mins and it should start immediately. But the problem is it is starting 5 mins after the deployment and repeating for every five minutes. Please help me with…
1
vote
1 answer

Set a wordpress cron job to hit a url every 2 minutes

Hi I have a url which imports data from csv to database on wordpress.I want this to run every 2 minutes .Is tried a plugin for this cron job scheduer but this did not work. How can I write a action script function make this possibe.Please help
Melvin
  • 383
  • 1
  • 13
  • 40
1
vote
1 answer

Building a Quartz Cron expression that includes current date

Is it possible to have a (Quartz)scheduler with cron expression that triggers after every 5 days including the today's date. For e.g.. if I am schedule a job on Dec 14, 2016 with an interval of 5 days, then it should be triggered on Dec 14, Dec 19,…
Alok Kumar
  • 53
  • 2
  • 10
1
vote
1 answer

Run the same cronjob multiple times

I have a python script that I want to execute every 10 minutes. However it takes 30 minutes to complete that script. (It's a script to query approx 1400+ servers) .If I let it execute every 10 minutes will it terminate the already running cron job…
Timo
  • 87
  • 3
  • 13
1
vote
4 answers

Java Quartz Cron Trigger

I am using a Quartz Cron trigger in my java program. The Cron expression I used is 0 0 * * * ? Now I wanted a scheduler to execute once an hour. To test the same started my jboss server and after that I reset my windows time to something like…
Anand Sunderraman
  • 7,900
  • 31
  • 90
  • 150
1
vote
2 answers

Difference between setCronExpression(CronExpression) and setCronExpression(String)

From the Quartz Scheduler javadocs for the method setTimeZone of class CronTrigger: If setCronExpression(CronExpression) is called after this method, the TimeZone setting on the CronExpression will "win". However if setCronExpression(String) is…
craftsman
  • 15,133
  • 17
  • 70
  • 86
1
vote
1 answer

How to edit an already existing cron schedule in quartz.net?

I have this requirement where the schedules created earlier could be edited later. Currently what I am doing is I am deleting the previous schedule and creating a new one. But in this way, start time is giving a problem. Since the schedule start…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
1
vote
2 answers

Auto-run script when remote git repository changes?

How do I automatically run a script whenever a specified remote git repository (on bitbucket) changes? The script will contain lines to git pull dependant repositories; run tests; and if tests pass, deploy then reload relevant services.
stackoverflowuser95
  • 1,992
  • 3
  • 20
  • 30
1
vote
1 answer

Quartz.Net CronTrigger scheduling not working as expected

public static void ConfigureJob() { int ScheduleTriggerDate = Convert.ToInt32(ConfigurationManager.AppSettings["ScheduleTriggerDate"]); ISchedulerFactory sf = new StdSchedulerFactory(); IScheduler sched = sf.GetScheduler(); …
StackTrace
  • 9,190
  • 36
  • 114
  • 202
1
vote
3 answers

Multiple triggers to Quartz endpoint in Mule

Is there a way to configure a Quartz inbound endpoint in Mule to have multiple triggers? Say I want an event every day at 9:00, plus one at 1:00 a.m. on the first day of the month.
Tad
  • 517
  • 8
  • 30
1
vote
1 answer

Quartz CronTrigger fails

Hi I have created a cron job and its working well by using org.springframework.scheduling.quartz.SimpleTriggerBean but when I schedule my job using CronTrigger the job didnt trigger at all neither it throw any error below is my spring config and…
Talha Bin Shakir
  • 2,563
  • 10
  • 38
  • 54
1
vote
1 answer

Cron Expression - Starting at specific day/time and repeating till end of year

I want to write a cron expression which does the following - Starting every last Sunday of September at 9:00 am and repeating every 3 weeks till end of the year. I have come up with 0 0 9 ? 9 6L How can i make this repeat every two weeks till end…
Coder
  • 3,090
  • 8
  • 49
  • 85
1
vote
1 answer

cron expression independent of time presets

I am using cron expressions for my application. I want to build a cron expression to run at every 40 seconds starting from now. For example; If my job starts at 3.05 then job should be fired at 3.45,4.25,5.05 etc..how to write cron expression for…