claudiuconstantin / cron-editor

Graphically build a CRON expression in Angular applications
https://claudiuconstantin.github.io/cron-editor/
MIT License
35 stars 56 forks source link

Doesn't support NCrons #5

Open hasithapg opened 6 years ago

hasithapg commented 6 years ago

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 commented 6 years ago

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

claudiuconstantin commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 3 years ago

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