你好,我使用的是activiti-spring-boot-starter-basic 5.21,在application.properties设置了spring.activiti.job-executor-activate=false,但是控制台还是在执行定时任务,不停输出以下内容
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.a.AcquireAsyncJobsDueRunnable - async job acquisition thread woke up
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.a.AcquireTimerJobsRunnable - timer job acquisition thread woke up
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor - — starting AcquireAsyncJobsDueCmd ——————————————————–
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor - — starting AcquireTimerJobsCmd ——————————————————–
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.s.SpringTransactionInterceptor - Running command with propagation REQUIRED
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.s.SpringTransactionInterceptor - Running command with propagation REQUIRED
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - ==> Preparing: select RES.* from ACT_RU_JOB RES LEFT OUTER JOIN ACT_RU_EXECUTION PI ON PI.ID_ = RES.PROCESS_INSTANCE_ID_ where (RES.RETRIES_ > 0) and (RES.DUEDATE_ is null or RES.DUEDATE_ <= ?) and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ <= ?) and TYPE_ = 'timer' and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1) ) LIMIT ? OFFSET ?
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - ==> Preparing: select RES.* from ACT_RU_JOB RES LEFT OUTER JOIN ACT_RU_EXECUTION PI ON PI.ID_ = RES.PROCESS_INSTANCE_ID_ where RES.RETRIES_ > 0 and ( (RES.DUEDATE_ is not null and RES.DUEDATE_ <= ? and RES.LOCK_EXP_TIME_ is null) or (RES.LOCK_EXP_TIME_ is not null and RES.LOCK_EXP_TIME_ <= ?) ) and TYPE_ = 'message' and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1) ) LIMIT ? OFFSET ?
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - ==> Parameters: 2016-11-04 11:58:19.42(Timestamp), 2016-11-04 11:58:19.42(Timestamp), 1(Integer), 0(Integer)
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - ==> Parameters: 2016-11-04 11:58:19.42(Timestamp), 2016-11-04 11:58:19.42(Timestamp), 1(Integer), 0(Integer)
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - <== Total: 0
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - <== Total: 0
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.engine.impl.db.DbSqlSession - flush summary: 0 insert, 0 update, 0 delete.
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.engine.impl.db.DbSqlSession - flush summary: 0 insert, 0 update, 0 delete.
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.engine.impl.db.DbSqlSession - now executing flush…
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.engine.impl.db.DbSqlSession - now executing flush…
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [HikariProxyConnection@2018324435 wrapping com.mysql.jdbc.JDBC4Connection@7e11b94d]]
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [HikariProxyConnection@817275125 wrapping com.mysql.jdbc.JDBC4Connection@7bed9295]]
2016-11-04 11:58:19.422 1190772 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor - — AcquireTimerJobsCmd finished ——————————————————–
2016-11-04 11:58:19.422 1190772 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor - — AcquireAsyncJobsDueCmd finished ——————————————————–
2016-11-04 11:58:19.422 1190772 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.423 1190773 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.423 1190773 [Thread-3] DEBUG o.a.e.i.a.AcquireTimerJobsRunnable - timer job acquisition thread sleeping for 10000 millis
2016-11-04 11:58:19.423 1190773 [Thread-4] DEBUG o.a.e.i.a.AcquireAsyncJobsDueRunnable - async job acquisition thread sleeping for 10000 millis
我应当如何设置,才不执行定时任务呢
———————————————————————————————–
English
Hello, I am using activiti-spring-boot-Starter-Basic 5.21, set spring.activiti.job-executor-activate=false in the application.properties, but console or in scheduled tasks, and outputs the following
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.a.AcquireAsyncJobsDueRunnable - async job acquisition thread woke up
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.a.AcquireTimerJobsRunnable - timer job acquisition thread woke up
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor - — starting AcquireAsyncJobsDueCmd ——————————————————–
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor - — starting AcquireTimerJobsCmd ——————————————————–
2016-11-04 11:58:19.419 1190769 [Thread-4] DEBUG o.a.s.SpringTransactionInterceptor - Running command with propagation REQUIRED
2016-11-04 11:58:19.419 1190769 [Thread-3] DEBUG o.a.s.SpringTransactionInterceptor - Running command with propagation REQUIRED
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.i.t.managed.ManagedTransaction - Opening JDBC Connection
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - ==> Preparing: select RES.* from ACT_RU_JOB RES LEFT OUTER JOIN ACT_RU_EXECUTION PI ON PI.ID_ = RES.PROCESS_INSTANCE_ID_ where (RES.RETRIES_ > 0) and (RES.DUEDATE_ is null or RES.DUEDATE_ <= ?) and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ <= ?) and TYPE_ = 'timer' and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1) ) LIMIT ? OFFSET ?
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - ==> Preparing: select RES.* from ACT_RU_JOB RES LEFT OUTER JOIN ACT_RU_EXECUTION PI ON PI.ID_ = RES.PROCESS_INSTANCE_ID_ where RES.RETRIES_ > 0 and ( (RES.DUEDATE_ is not null and RES.DUEDATE_ <= ? and RES.LOCK_EXP_TIME_ is null) or (RES.LOCK_EXP_TIME_ is not null and RES.LOCK_EXP_TIME_ <= ?) ) and TYPE_ = 'message' and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1) ) LIMIT ? OFFSET ?
2016-11-04 11:58:19.420 1190770 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - ==> Parameters: 2016-11-04 11:58:19.42(Timestamp), 2016-11-04 11:58:19.42(Timestamp), 1(Integer), 0(Integer)
2016-11-04 11:58:19.420 1190770 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - ==> Parameters: 2016-11-04 11:58:19.42(Timestamp), 2016-11-04 11:58:19.42(Timestamp), 1(Integer), 0(Integer)
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.e.i.p.e.J.selectAsyncJobsDueToExecute - <== Total: 0
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.e.i.p.e.J.selectNextTimerJobsToExecute - <== Total: 0
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.engine.impl.db.DbSqlSession - flush summary: 0 insert, 0 update, 0 delete.
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.engine.impl.db.DbSqlSession - flush summary: 0 insert, 0 update, 0 delete.
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.engine.impl.db.DbSqlSession - now executing flush…
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.engine.impl.db.DbSqlSession - now executing flush…
2016-11-04 11:58:19.421 1190771 [Thread-3] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [HikariProxyConnection@2018324435 wrapping com.mysql.jdbc.JDBC4Connection@7e11b94d]]
2016-11-04 11:58:19.421 1190771 [Thread-4] DEBUG o.a.i.t.managed.ManagedTransaction - Closing JDBC Connection [Transaction-aware proxy for target Connection [HikariProxyConnection@817275125 wrapping com.mysql.jdbc.JDBC4Connection@7bed9295]]
2016-11-04 11:58:19.422 1190772 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor - — AcquireTimerJobsCmd finished ——————————————————–
2016-11-04 11:58:19.422 1190772 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor - — AcquireAsyncJobsDueCmd finished ——————————————————–
2016-11-04 11:58:19.422 1190772 [Thread-3] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.423 1190773 [Thread-4] DEBUG o.a.e.i.interceptor.LogInterceptor -
2016-11-04 11:58:19.423 1190773 [Thread-3] DEBUG o.a.e.i.a.AcquireTimerJobsRunnable - timer job acquisition thread sleeping for 10000 millis
2016-11-04 11:58:19.423 1190773 [Thread-4] DEBUG o.a.e.i.a.AcquireAsyncJobsDueRunnable - async job acquisition thread sleeping for 10000 millis
How do I set up, not only to perform a scheduled task