sist2 icon indicating copy to clipboard operation
sist2 copied to clipboard

Job schedule is not accepting crontab formatting that includes / (step values)

Open kousha789123 opened this issue 1 year ago • 1 comments

In admin panel job schedule is not accepting jobs with / in them (step values); say a job of scanning at every other hour: 0 */2 * * *

The / is not getting saved at all in the admin webui

kousha789123 avatar Nov 19 '24 05:11 kousha789123

I think this is an issue with the way cron formatting is validated. @simon987 here: https://github.com/simon987/sist2/blob/2436e52a62bc02c20dfafdef5f4b674ddbe49574/sist2-admin/frontend/src/components/JobOptions.vue#L49C20-L49C67

SO reference: https://stackoverflow.com/questions/14203122/create-a-regular-expression-for-cron-statement

dpieski avatar Dec 26 '24 21:12 dpieski