Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Doesn't support NCrons #5

Open
hasithapg opened this issue Mar 19, 2018 · 5 comments
Open

Doesn't support NCrons #5

hasithapg opened this issue Mar 19, 2018 · 5 comments

Comments

@hasithapg
Copy link

I am using this component together with Hangfire background processing server. However the generated Crontab expression from your tool doesn't accept by the server. When I read some documentation it is noticed that Hangfire uses NCrons rather than Crons.

For example, a task that need to happens in every 5 minutes your tool generates the following expression.
0 0/5 * 1/1 * ? *

However, this expression doesn't accept by the Hangfire server.
The relevant NCron expression is */5 * * * *

Is it possible to support for NCron in future?

Regards

@rogerfar
Copy link

rogerfar commented Oct 5, 2018

@hasithapg did you find a solution? I'm using Cronos but it's not compatible at all with this editor.

@claudiuconstantin
Copy link
Owner

The Hangfire documentation states that they support Cron Expressions, are you having trouble with that?

http://docs.hangfire.io/en/latest/background-methods/performing-recurrent-tasks.html

@rogerfar
Copy link

Yes, like @hasithapg says, you generate an expression like this: 0 0/5 * 1/1 * ? * but that's not correct, the 0's should be *'s.

@claudiuconstantin
Copy link
Owner

We're close to merge PR #9 that will address this and make the Cron expression compatible with the Cron format used by Hangfire 1.7+. Stay tuned!

@alexandis
Copy link

alexandis commented Jan 25, 2021

Hi, so what about supporting Hangfire format of Cron? Does this editor support it or not? When I enter '*/5 * * * *' expression - it switches to "Advanced" tab (not sure if it means it does not understand that it is "each 5 minutes", but accept it or it does not accept it)... I'd like it to switch to the first tab and highlight "5" seconds...

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

No branches or pull requests

4 participants