perf[scheduler]: 将cron方法改为静态方法

This commit is contained in:
jaysunxiao
2021-08-02 16:53:42 +08:00
parent 84a5b9c0e9
commit f4255b12f4
@@ -174,7 +174,7 @@ public abstract class SchedulerBus {
/**
* cron表达式执行的任务
*/
public void scheduleCron(Runnable runnable, String cron) {
public static void scheduleCron(Runnable runnable, String cron) {
if (SchedulerContext.isStop()) {
return;
}