Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error when using any CronStringFormat other then the default #5

Open
ahanley opened this issue Aug 2, 2017 · 1 comment

Comments

@ahanley
Copy link

ahanley commented Aug 2, 2017

*/1 * * * * *
[ArgumentException: CRON expression is invalid. Please see the inner exception for details.
Parameter name: cronExpression]
Hangfire.RecurringDateRange.Server.RecurringDateRangeJobManager.ValidateCronExpression(String cronExpression) +274

@jcoutch
Copy link
Owner

jcoutch commented Aug 2, 2017

@ahanley - I see what's happening. The cron string format is getting applied by the job processor, but the job manager doesn't take it into account. I may have to re-work this a bit, so that the cron string format is stored on the job. Then, passing the format to RecurringDateRangeJobScheduler wouldn't be needed. Plus, this would make things a bit more dynamic - you could then have different cron string formats for different jobs.

If this is something you feel comfortable implementing, feel free to submit a pull request. Otherwise, it may be a few days before I can get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants