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
2
votes
1 answer

Android - Cron String and Cron Job with Quartz

I am working on a Android project that needs to run cron jobs by parsing cron strings. I am using Quartz library. But I get exception below Can you help me on this subject? You can also suggest another api or solution? 09-04 14:36:44.050 …
misman
  • 1,347
  • 3
  • 21
  • 39
2
votes
0 answers

Cron Expression for Job to Run after Specific Number of Months and Days

I am working on quartz plugin in grails application. I want to create a Cron expression for job to be scheduled after specified number of days. But number of days can be greater than 30 which means in this situation job will be scheduled after each…
2
votes
1 answer

cron expression for the last weekend of the month

i have a job to be run on the last weekend of the month (i.e) if the month has a sunday at the end it should run on sunday and if the month ends or has a saturday at the end the job should run on saturday. I didnt find any documentation to build a…
flipper
  • 146
  • 3
  • 11
2
votes
2 answers

Spring 3.0.7 CronTrigger executes task multiple times when triggered

Okay I've looked through everything I can find and haven't found an answer to my issue. A couple items were close but not close enough. I have a Spring 3.0.7 based web app running in Tomcat 7. In the applicationContext.xml I have:
Scott
  • 139
  • 3
  • 10
2
votes
2 answers

database and wordpress backup cron job

i want to run a cron job that back ups my mysql database and my wordpress files once a day from the hostgator cpanel. i found a sample script and edited the parameters with my information but it doesn't seem to be working properly. I don't have…
justWired
  • 99
  • 2
  • 11
1
vote
1 answer

Non-repeating Quartz Jobs with Crontrigger?

I have a C# Topshelf windows Service that processes Quartz Jobs. Those jobs are stored in the database, like this: public class JobConfiguration : IJobConfiguration { public string Name { get; set; } //ImportService public string…
yoerids
  • 918
  • 1
  • 8
  • 19
1
vote
1 answer

Script for awscli check not working with crontab schedule

I have written a small code snippet to check the aws cli version #!/usr/bin/env bash if [ -e "/usr/local/bin/aws" ]; then myAWS="/usr/local/bin/aws" else myAWS="/usr/bin/aws" fi myCmd=("${myAWS} --version") echo…
1
vote
2 answers

CruiseControl.net cronTrigger confusion

I have setup 2 projects in cc.net for the same web application. A continuous integration project that uses an interval trigger and works fine and a "nightly build" project that uses a cronTrigger. The nightly build essentially builds and deploys…
Ben Robinson
  • 21,601
  • 5
  • 62
  • 79
1
vote
0 answers

Quartz.net - run every 3 days, every hour on a day between 8 am to 10 am

this might sound an uncommon requirement, but I need to run a job on every 3 days, every hour on those particular days between 8 am to 10 am. If I start today, it should run on below schedule: 2021-09-17 08:00:00 am 2021-09-17 09:00:00…
nobody
  • 11
  • 2
1
vote
2 answers

Can a cronjob continue to run 30 minutes continuously?

I have created a script on PHP that creates cache files from API and it takes around 30 minutes to load the page completely means when it creates all cache files. I have a concern that my hostinger's customer support is telling me that it won't run…
web90
  • 15
  • 5
1
vote
0 answers

How to adjust daylight saving with Cron Scheduler

I was using Simple schedulers and I had a problem that for example I had a job which was executing once in a day at 13:00 , but when daylight saving was emerging it was executed at 14:00, but I wanted it to be executed exactly at 13:00. I researched…
Gog1nA
  • 376
  • 1
  • 8
  • 30
1
vote
2 answers

How to set cron expression for multiple time periods

I have a requirement to trigger cron job at 9 am and 10.15 pm every day. i.e the trigger will be as: next today at 09:00:00 then today at 22:00:00 then today at 22:15:00 then next day at 09:00:00 and so on... I have done it as * 0,15 9,22 * * *…
Viveka
  • 340
  • 2
  • 14
1
vote
1 answer

Cron Schedule to run every 15 minutes between certain datetimes

I've got a cron expression for running every 15 minutes: */15 * * * * However, I don't want it to run between Friday 23:00 and Sunday 19:00. How could I achieve this within a cron expression? I know I can run between certain days but I can't figure…
1
vote
1 answer

Cron jobs for next Sunday of first Friday of every quarter of the year

I am using java spring boot. I need to fetch data which updates as "Data sets are updated quarterly (March, June, September, December), typically on the first Friday of the month" And I want to run Cron job on next Sunday (want to keep one entire…
Anonymous Creator
  • 2,968
  • 7
  • 31
  • 77
1
vote
0 answers

Invalid cron errors while i am providing the cron variable dynamically to the Quartz2 consumer route in apache camel

I am using a Quartz2 route (from) to trigger the job as per the given cron expression. This works when I given the cron as hardcoded e.g. from("quartz2://group1/trigger1?**cron=0/30+*+*+?+*+*+***&stateful=true") As the cron expression is being…
Deepak S
  • 11
  • 3