question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated cron expression is not valid

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
vincent-zurczakcommented, Jul 11, 2016

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.

1reaction
RajanRastogicommented, Apr 24, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found