Generated cron expression is not valid
See original GitHub issueI am using the cron expression generated by your utility with Quartz scheduler and the validation fails because we are not specifying the year part.
Is it possible to add a configuration provider to angular-service so that user can optionally turn this on.
Changing
var cron = ['*', '*', '*', '*', '*'];
to
var cron = ['*', '*', '*', '*', '*', '*'];
in service.setCron method of cronService fixes this issue.
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Parameter ScheduleExpression is not valid - Stack Overflow
I'm trying to setup a Cloudwatch Scheduled Event and my cron expression seems to be invalid, though I can't figure out why. My...
Read more >What to do when your cron job is not working - Cronitor
If the cron job is scheduled in your user crontab (e.g. crontab -e ) the command will be run as you, not by...
Read more >New in Spring 5.3: Improved Cron Expressions
Cron expressions are mostly used in Spring applications through the @Scheduled annotation. In Spring 5.3, we introduced the CronExpression ...
Read more >Top Reasons Your Cron Job Isn't Running - Airplane.dev
This article walks through the most common reasons why your cron job may not be working as expected: schedule errors, environmental changes, ...
Read more >Schedule Expressions for Rules - Amazon CloudWatch Events
Describes how to use cron or rate expressions to automate AWS with Amazon ... "3#1,6#3" is not valid because it is interpreted as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi. 😃
I wanted to thank you both for you work. 👍 I face the same issue with the generated expressions and Quartz. I tried the angular-quartz-cron and it works well. The only limit is that it does not support the allowMultiple option (which appeared with version 2.0). We can really regret there are two projects instead of one.
I actually needed this, so I have made another project based on this which generates cron expressions.
angular-quartz-cron
Since I was in a hurry, I could not support backward compatibility, hence could not raise a merge request. Have tried giving full credit to @jacobscarter.