Comments (6)
Hey guys, February is coming, only 28 days. My jobs must be performed on the month's last day. Any ideas why it is not working?
from grails-quartz.
Can you provide some details on what is not working? looks fine to me:
cron name:'someTriggerName', startDelay:10000, cronExpression: "0 15 10 L * ?"
trigger.nextFireTime == Sun Jan 31 10:15:00 UTC 2016
http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger
from grails-quartz.
Not working if specify smth like '0 0 2 15,L * ?' . My task must run on 15th and on the last day of the month, that causes the error " Cron expression '0 0 2 15,L * ?' in the job class com.domainboost.RedistributeJob is not a valid cron expression"
from grails-quartz.
That is just an invalid quartz cron expression. You can not mix int and L.
A simple workaround is to create 2 cron triggers in your job with correct quartz cron syntax:
triggers {
cron name:'midMonthTrigger', cronExpression: "0 0 2 15 * ?"
cron name:'endOfMonthTrigger', cronExpression: "0 0 2 L * ?"
}
You can validate its invalid by just using quartz CronTrigger
builder without the plugin and getting the same error, also this site is useful http://www.cronmaker.com/
from grails-quartz.
Ok, thanks, I already created two jobs. BTW, how to debug quartz in integration test?
from grails-quartz.
Not a bug.
from grails-quartz.
Related Issues (20)
- "No Session found for current thread" for job listener
- Conflicting bean HOT 1
- Race condition with dataSource on startup HOT 1
- Broken links in Grails plugin page
- How to configure multiple schedulers to have more than one thread pool?
- version 2.0.13 is not working with Grails 4.0.0.M2 HOT 6
- java -jar run xxx.jar not working HOT 1
- Version 2.0.13 not compatible with Groovy 3 HOT 1
- The trigger configuration stored in the database is reset after application restart
- Plugin Prevents application to startup with a job in past date
- Timezone parameter is ignored
- Long time running jobs
- Plugin is not working with Grails 5 HOT 7
- How to disable quartz in unit tests ?
- 'grails create-job' command does not exist in grails 6
- When I set autoStartup to false the job does not work HOT 1
- Set-up GitHub Workflows HOT 1
- Verify all the tests are up-to-date and green (passing) HOT 1
- Review Documentation and update accordingly
- Could not instantiate custom Metaclass for class: grails.plugins.quartz.QuartzJob$Trait$Helper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-quartz.