Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Other Open Source Projects
Quartz Cron Expression
santosh joshi
Greenhorn
Posts: 21
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am getting problem in writing a cron Exp that triggers every monday,tuesday,wednesday and every 2nd and 4th Thrusday.
I just wrote
0 0 0 0 0 MON-WED,THU#2,THU#4 ?
But this does not work.
Martijn Verburg
author
Posts: 3285
13
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What version of quartz are you using and what's the error message you're getting?
Cheers, Martijn,
Twitter
.
santosh joshi
Greenhorn
Posts: 21
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using quartz 1.5.2,
Getting no Error message, as the expression compiles successfully, outputting only monday, tuesday and wednesday,
and ignores the thrusdays's value.
seems THU#2,THU#4 creates problem
Martijn Verburg
author
Posts: 3285
13
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The Javadoc for that version seems to indicate that the # syntax only works with numerics e.g. 6#3
Cheers, Martijn,
Twitter
.
santosh joshi
Greenhorn
Posts: 21
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"0 0 0 ? * 2-3,5 *"
returns
Mon Jan 17 00:00:00 IST 2011
Tue Jan 18 00:00:00 IST 2011
Thu Jan 20 00:00:00 IST 2011
"0 0 0 ? * 2-3,5#4 *"
returns
Mon Jan 24 00:00:00 IST 2011
Mon Feb 28 00:00:00 IST 2011
Mon Mar 28 00:00:00 IST 2011
Mon Apr 25 00:00:00 IST 2011
so this returns wrong result
Martijn Verburg
author
Posts: 3285
13
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Probably a quartz bug, it's up to at least 1.7.3+ now, I'd perhaps upgrade
Cheers, Martijn,
Twitter
.
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This seems related to
this bug
. It doesn't seem to be fixed in the latest version. Maybe
you should
use a different trigger for every 2nd Thursday of the month.
[My Blog]
All roads lead to JavaRanch
santosh joshi
Greenhorn
Posts: 21
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Guys,
I am using a different trigger for this purpose
Thanks
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Facing problem for building cron expression daily for every N days
Cron expression for executing job every hour. + quartz scheduler
Quartz scheduler or Timer task?
Cron Specification
cron expression for every 45 minutes
More...