angular-cron-jobs: Generated cron expression is not valid
I 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.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (3 by maintainers)
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.