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
27
votes
7 answers

Spring's @Scheduled error : Only one AsyncAnnotationBeanPostProcessor may exist within the context

I am trying Spring 3's @Scheduled annotation . Here is my configuration (app.xml) :
smallufo
  • 11,516
  • 20
  • 73
  • 111
15
votes
1 answer

quartz scheduler: run on last day of the month

I need to run a job on the last day of every month. i tried the following cron expression: but got this error: Caused by: java.lang.UnsupportedOperationException: Support for specifying both…
mkoryak
  • 57,086
  • 61
  • 201
  • 257
14
votes
2 answers

Daily Database backup using Cron Job

Hi i want to take database backup at daily mid night using cron job... and the name of database backup should append with current date... the format of backup file should be mydata_yyyy_mm_dd.sql ... backup file should be placed in /root directory
Hussy
  • 2,039
  • 4
  • 25
  • 32
14
votes
10 answers

Finding Last Fired time using a Cron Expression in Java

Is there a way in Java to find the "Last Fired Time" from a Cron Expression? E.g. If now = 25-Apr-2010 10PM, and the cron expression is 0 15 10 ? * * (quartz), it should return 25-Apr-2010 10:15AM. Note: I do not care if we use standard cron…
a-sak
  • 1,320
  • 6
  • 21
  • 33
10
votes
1 answer

How to get cron expression given job name and group name?

I'm using Quartz Scheduler v.1.8.0. How do I get the cron expression which was assigned/attached to a Job and scheduled using CronTrigger? I have the job name and group name in this case. Though many Triggers can point to the same Job, in my case…
Gnanam
  • 10,613
  • 19
  • 54
  • 72
8
votes
4 answers

How to trigger events in java at specific date and time?

I need to send sms to few mobile nos at specific date and time. e.g. I will have a list of dates and times and list of corresponding mobile nos. as below. Date Mobile 10th April 9 AM 1234567890 10th April 11 AM …
sam
  • 93
  • 1
  • 1
  • 3
6
votes
1 answer

Jenkins declarative pipeline with different triggers per branch

I am looking to implement different cron triggers per branch in a declarative pipeline jenkins job. At the minute, I am only triggering hourly builds on our dev branch: String cron_string = BRANCH_NAME == "dev" ? "@hourly" : "" pipeline { …
6
votes
1 answer

Unable to store Trigger with name: 'trigger1' and group: 'group1', because one already exists with this identification

Referring delete trigger in quartz I am getting the same issue: Unable to store Trigger with name: 'schedulerJobTrigger' and group: 'group1', because one already exists with this identification. So before I think of unscheduling the Job I have a…
user2176576
  • 734
  • 3
  • 14
  • 39
5
votes
1 answer

Setting Jenkins Parameterized Scheduler Plugin using job dsl

I am trying to add a parameterized cron job using jenkins job dsl. However, every time I try to add the job I see the following error: No signature of method: javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.parameterizedTimerTrigger() is…
cbwsports
  • 51
  • 3
5
votes
1 answer

How to set cronjob on wake up from sleep?

For example if you want a cron job to run after each reboot, you add sth like this to your cron file: @reboot ./do_sth Is there something similar to that for waking up from a sleep state?
Charming Robot
  • 2,460
  • 2
  • 17
  • 34
5
votes
1 answer

Quartz Scheduler: java.lang.IllegalStateException: JobStore is shutdown - aborting retry

I am using JDBC Job store with quartz because manage job in cluster enviorment. Following is my jdbc configuration using mysql: #============================================================================ # Configure Main Scheduler…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
5
votes
4 answers

Is there a Javascript cron implementation somewhere that I'm missing?

I'm aware of timing issues in Javascript, how its not exact/off by milliseconds etc, but I need something to at least attempt to do browser-based scheduling. In terms of features, I'm thinking something along the lines of scheduling patterns…
Core
  • 840
  • 11
  • 24
5
votes
3 answers

Spring Cron expression to trigger at every 6 months

How to write cron expression to trigger a function on every 6 month at 16 pm in the evening?
Nikunj Patel
  • 104
  • 1
  • 7
5
votes
1 answer

How often does the Quartz Scheduler wakes up?

I'm using Quartz Scheduling, more specifically a cron trigger set to wake up at 10PM every day of the week. Another group I interface with are asking how many times during the day will the scheduler wake up to check if it needs to run jobs. The…
user198509
  • 81
  • 2
  • 5
5
votes
1 answer

Quartz Clustering - triggers duplicated when the server starts

We are facing an issue while using Quartz 2.1.6 with Spring 3.1 in a clustered setup (with the JDBC data store). Current context: Jobs and CRON triggers are defined in the spring configuration file (see below) overwriteExistingJobs property is set…
Sebastian
  • 1,835
  • 3
  • 22
  • 34
1
2 3
13 14