Skip to content
Snippets Groups Projects
Commit 8e27cd88 authored by srosse's avatar srosse
Browse files

no-jira: cron job day must be between 1-7

parent d9abbd6b
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ public class SystemRegistrationManager extends BasicManager implements Initializ ...@@ -145,7 +145,7 @@ public class SystemRegistrationManager extends BasicManager implements Initializ
// installation registers at the same time // installation registers at the same time
int min = RandomUtils.nextInt(59); int min = RandomUtils.nextInt(59);
int hour = RandomUtils.nextInt(23); int hour = RandomUtils.nextInt(23);
int day = RandomUtils.nextInt(6); int day = RandomUtils.nextInt(6) + 1;
String cronExpression = "0 " + min + " " + hour + " ? * "+ day; String cronExpression = "0 " + min + " " + hour + " ? * "+ day;
return cronExpression; return cronExpression;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment