diff --git a/pom.xml b/pom.xml
index 721b4cc4e..7b402a856 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,7 +34,7 @@
2.2.4
3.6.1
2.14.2
- 4.3.2
+ 4.3.3
1.2.3
0.2.0
1.18.26
@@ -329,6 +329,18 @@
${revision}
+
+
+ tech.powerjob
+ powerjob-worker-spring-boot-starter
+ ${powerjob.version}
+
+
+ tech.powerjob
+ powerjob-official-processors
+ ${powerjob.version}
+
+
diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml
index 7014b6bda..0428aea78 100644
--- a/ruoyi-common/pom.xml
+++ b/ruoyi-common/pom.xml
@@ -15,6 +15,7 @@
ruoyi-common-doc
ruoyi-common-excel
ruoyi-common-idempotent
+ ruoyi-common-job
ruoyi-common-log
ruoyi-common-mail
ruoyi-common-mybatis
diff --git a/ruoyi-common/ruoyi-common-bom/pom.xml b/ruoyi-common/ruoyi-common-bom/pom.xml
index ff15a1db7..8a9e25a95 100644
--- a/ruoyi-common/ruoyi-common-bom/pom.xml
+++ b/ruoyi-common/ruoyi-common-bom/pom.xml
@@ -47,6 +47,13 @@
${revision}
+
+
+ org.dromara
+ ruoyi-common-job
+ ${revision}
+
+
org.dromara
diff --git a/ruoyi-common/ruoyi-common-job/pom.xml b/ruoyi-common/ruoyi-common-job/pom.xml
new file mode 100644
index 000000000..b311477d0
--- /dev/null
+++ b/ruoyi-common/ruoyi-common-job/pom.xml
@@ -0,0 +1,46 @@
+
+
+
+ org.dromara
+ ruoyi-common
+ ${revision}
+
+ 4.0.0
+
+ ruoyi-common-job
+
+
+ ruoyi-common-job 定时任务
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-autoconfigure
+
+
+
+
+ tech.powerjob
+ powerjob-worker-spring-boot-starter
+
+
+ tech.powerjob
+ powerjob-official-processors
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+ org.dromara
+ ruoyi-common-core
+
+
+
+
diff --git a/ruoyi-modules/ruoyi-job/src/main/java/org/dromara/job/config/PowerJobConfiguration.java b/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/PowerJobConfig.java
similarity index 62%
rename from ruoyi-modules/ruoyi-job/src/main/java/org/dromara/job/config/PowerJobConfiguration.java
rename to ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/PowerJobConfig.java
index 547e80df5..67208c0e5 100644
--- a/ruoyi-modules/ruoyi-job/src/main/java/org/dromara/job/config/PowerJobConfiguration.java
+++ b/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/PowerJobConfig.java
@@ -1,6 +1,7 @@
-package org.dromara.job.config;
+package org.dromara.common.job.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import tech.powerjob.worker.PowerJobWorker;
@@ -12,8 +13,9 @@ import tech.powerjob.worker.PowerJobWorker;
*/
@Configuration
@ConditionalOnBean(PowerJobWorker.class)
+@ConditionalOnProperty(prefix = "powerjob.worker", name = "enabled", havingValue = "true")
@EnableScheduling
-public class PowerJobConfiguration {
+public class PowerJobConfig {
}
diff --git a/ruoyi-extend/pom.xml b/ruoyi-extend/pom.xml
index 292f9bfcf..f5348cc13 100644
--- a/ruoyi-extend/pom.xml
+++ b/ruoyi-extend/pom.xml
@@ -13,6 +13,7 @@
ruoyi-monitor-admin
+ ruoyi-powerjob-server
diff --git a/ruoyi-extend/ruoyi-powerjob-server/pom.xml b/ruoyi-extend/ruoyi-powerjob-server/pom.xml
new file mode 100644
index 000000000..7bac8b197
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/pom.xml
@@ -0,0 +1,63 @@
+
+ 4.0.0
+
+ org.dromara
+ ruoyi-extend
+ ${revision}
+
+ org.dromara
+ ruoyi-powerjob-server
+ ${revision}
+ jar
+
+
+ 2.7.4
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ ${spring-boot.version}
+ pom
+ import
+
+
+
+
+
+
+
+
+ tech.powerjob
+ powerjob-server-starter
+ ${powerjob.version}
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot.version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/java/org/dromara/powerjob/server/RuoyiPowerJobServerApplication.java b/ruoyi-extend/ruoyi-powerjob-server/src/main/java/org/dromara/powerjob/server/RuoyiPowerJobServerApplication.java
new file mode 100644
index 000000000..ff8b06976
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/java/org/dromara/powerjob/server/RuoyiPowerJobServerApplication.java
@@ -0,0 +1,45 @@
+package org.dromara.powerjob.server;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import tech.powerjob.server.PowerJobServerApplication;
+import tech.powerjob.server.common.utils.PropertyUtils;
+
+/**
+ * Admin 监控启动程序
+ *
+ * @author yhan219
+ */
+@Slf4j
+@EnableScheduling
+@SpringBootApplication(scanBasePackages = "tech.powerjob.server")
+public class RuoyiPowerJobServerApplication {
+
+ private static final String TIPS = "\n\n" +
+ "******************* PowerJob Tips *******************\n" +
+ "如果应用无法启动,我们建议您仔细阅读以下文档来解决:\n" +
+ "if server can't startup, we recommend that you read the documentation to find a solution:\n" +
+ "https://www.yuque.com/powerjob/guidence/problem\n" +
+ "******************* PowerJob Tips *******************\n\n";
+
+ public static void main(String[] args) {
+
+ pre();
+
+ // Start SpringBoot application.
+ try {
+ SpringApplication.run(PowerJobServerApplication.class, args);
+ } catch (Throwable t) {
+ log.error(TIPS);
+ throw t;
+ }
+ }
+
+ private static void pre() {
+ log.info(TIPS);
+ PropertyUtils.init();
+ }
+
+}
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-daily.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-daily.properties
new file mode 100644
index 000000000..5b07eec49
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-daily.properties
@@ -0,0 +1,42 @@
+oms.env=DAILY
+logging.config=classpath:logback-dev.xml
+
+####### Database properties(Configure according to the the environment) #######
+spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+spring.datasource.core.username=root
+spring.datasource.core.password=root
+spring.datasource.core.maximum-pool-size=20
+spring.datasource.core.minimum-idle=5
+
+####### MongoDB properties(Non-core configuration properties) #######
+####### delete mongodb config to disable mongodb #######
+#oms.mongodb.enable=true
+#spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
+
+####### Email properties(Non-core configuration properties) #######
+####### Delete the following code to disable the mail #######
+#spring.mail.host=smtp.163.com
+#spring.mail.username=zqq@163.com
+#spring.mail.password=GOFZPNARMVKCGONV
+#spring.mail.properties.mail.smtp.auth=true
+#spring.mail.properties.mail.smtp.starttls.enable=true
+#spring.mail.properties.mail.smtp.starttls.required=true
+
+####### DingTalk properties(Non-core configuration properties) #######
+####### Delete the following code to disable the DingTalk #######
+#oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
+#oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
+#oms.alarm.ding.agent-id=847044348
+
+####### Resource cleaning properties #######
+oms.instanceinfo.retention=1
+oms.container.retention.local=1
+oms.container.retention.remote=-1
+
+####### Cache properties #######
+oms.instance.metadata.cache.size=1024
+
+####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
+####### split-brain could be avoided while performance overhead would increase. #######
+oms.accurate.select.server.percentage = 50
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-pre.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-pre.properties
new file mode 100644
index 000000000..f08f673b8
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-pre.properties
@@ -0,0 +1,42 @@
+oms.env=PRE
+logging.config=classpath:logback-product.xml
+
+####### Database properties(Configure according to the the environment) #######
+spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.core.jdbc-url=jdbc:mysql://remotehost:3306/powerjob-pre?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+spring.datasource.core.username=root
+spring.datasource.core.password=No1Bug2Please3!
+spring.datasource.core.maximum-pool-size=20
+spring.datasource.core.minimum-idle=5
+
+####### MongoDB properties(Non-core configuration properties) #######
+####### delete mongodb config to disable mongodb #######
+oms.mongodb.enable=true
+spring.data.mongodb.uri=mongodb://remotehost:27017/powerjob-pre
+
+####### Email properties(Non-core configuration properties) #######
+####### Delete the following code to disable the mail #######
+spring.mail.host=smtp.qq.com
+spring.mail.username=zqq
+spring.mail.password=qqz
+spring.mail.properties.mail.smtp.auth=true
+spring.mail.properties.mail.smtp.starttls.enable=true
+spring.mail.properties.mail.smtp.starttls.required=true
+
+####### DingTalk properties(Non-core configuration properties) #######
+####### Delete the following code to disable the DingTalk #######
+oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
+oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
+oms.alarm.ding.agent-id=847044348
+
+####### Resource cleaning properties #######
+oms.instanceinfo.retention=3
+oms.container.retention.local=3
+oms.container.retention.remote=-1
+
+####### Cache properties #######
+oms.instance.metadata.cache.size=1024
+
+####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
+####### split-brain could be avoided while performance overhead would increase. #######
+oms.accurate.select.server.percentage = 50
\ No newline at end of file
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-product.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-product.properties
new file mode 100644
index 000000000..a3ed4fe19
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application-product.properties
@@ -0,0 +1,42 @@
+oms.env=PRODUCT
+logging.config=classpath:logback-product.xml
+
+####### Database properties(Configure according to the the environment) #######
+spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/powerjob-product?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+spring.datasource.core.username=root
+spring.datasource.core.password=No1Bug2Please3!
+spring.datasource.core.maximum-pool-size=20
+spring.datasource.core.minimum-idle=5
+
+####### MongoDB properties(Non-core configuration properties) #######
+####### delete mongodb config to disable mongodb #######
+oms.mongodb.enable=true
+spring.data.mongodb.uri=mongodb://localhost:27017/powerjob-product
+
+####### Email properties(Non-core configuration properties) #######
+####### Delete the following code to disable the mail #######
+spring.mail.host=smtp.qq.com
+spring.mail.username=zqq
+spring.mail.password=qqz
+spring.mail.properties.mail.smtp.auth=true
+spring.mail.properties.mail.smtp.starttls.enable=true
+spring.mail.properties.mail.smtp.starttls.required=true
+
+####### DingTalk properties(Non-core configuration properties) #######
+####### Delete the following code to disable the DingTalk #######
+oms.alarm.ding.app-key=
+oms.alarm.ding.app-secret=
+oms.alarm.ding.agent-id=
+
+####### Resource cleaning properties #######
+oms.instanceinfo.retention=7
+oms.container.retention.local=7
+oms.container.retention.remote=-1
+
+####### Cache properties #######
+oms.instance.metadata.cache.size=2048
+
+####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
+####### split-brain could be avoided while performance overhead would increase. #######
+oms.accurate.select.server.percentage = 50
\ No newline at end of file
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
new file mode 100644
index 000000000..6946a0e30
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
@@ -0,0 +1,22 @@
+# Http server port
+server.port=7700
+
+spring.profiles.active=daily
+spring.main.banner-mode=log
+spring.jpa.open-in-view=false
+spring.data.mongodb.repositories.type=none
+logging.level.org.mongodb=warn
+
+# Configuration for uploading files.
+spring.servlet.multipart.enabled=true
+spring.servlet.multipart.file-size-threshold=0
+spring.servlet.multipart.max-file-size=209715200
+spring.servlet.multipart.max-request-size=209715200
+
+###### PowerJob transporter configuration ######
+oms.transporter.active.protocols=AKKA,HTTP
+oms.transporter.main.protocol=HTTP
+oms.akka.port=10086
+oms.http.port=10010
+# Prefix for all tables. Default empty string. Config if you have needs, i.e. pj_
+oms.table-prefix=pj_
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/banner.txt b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/banner.txt
new file mode 100644
index 000000000..82d536ace
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/banner.txt
@@ -0,0 +1,15 @@
+${AnsiColor.GREEN}
+ ███████ ██ ██
+░██░░░░██ ░██ ░██
+░██ ░██ ██████ ███ ██ █████ ██████ ░██ ██████ ░██
+░███████ ██░░░░██░░██ █ ░██ ██░░░██░░██░░█ ░██ ██░░░░██░██████
+░██░░░░ ░██ ░██ ░██ ███░██░███████ ░██ ░ ░██░██ ░██░██░░░██
+░██ ░██ ░██ ░████░████░██░░░░ ░██ ██ ░██░██ ░██░██ ░██
+░██ ░░██████ ███░ ░░░██░░██████░███ ░░█████ ░░██████ ░██████
+░░ ░░░░░░ ░░░ ░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░░░░
+${AnsiColor.BRIGHT_RED}
+* Maintainer: tengjiqi@gmail.com & Team PowerJob
+* OfficialWebsite: http://www.powerjob.tech/
+* SourceCode: https://github.com/PowerJob/PowerJob
+* PoweredBy: SpringBoot${spring-boot.formatted-version}
+${AnsiColor.DEFAULT}
\ No newline at end of file
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-config/powerjob_monitor.xml b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-config/powerjob_monitor.xml
new file mode 100644
index 000000000..d357a833e
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-config/powerjob_monitor.xml
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+ ${MONITOR_LOG_PATH}/database.log
+
+ ${MONITOR_LOG_PATTERN}
+ UTF-8
+
+
+ ${MONITOR_LOG_PATH}/database.log.${ROTATE_PATTERN}
+ 3
+ 200MB
+ 1000MB
+
+
+
+ 512
+ 0
+ true
+
+
+
+
+
+
+
+
+
+ ${MONITOR_LOG_PATH}/tt_status_report.log
+
+ ${MONITOR_LOG_PATTERN}
+ UTF-8
+
+
+ ${MONITOR_LOG_PATH}/tt_status_report.log.${ROTATE_PATTERN}
+ 3
+ 200MB
+ 1000MB
+
+
+
+ 512
+ 0
+ true
+
+
+
+
+
+
+
+
+ ${MONITOR_LOG_PATH}/worker_heartbeat.log
+
+ ${MONITOR_LOG_PATTERN}
+ UTF-8
+
+
+ ${MONITOR_LOG_PATH}/worker_heartbeat.log.${ROTATE_PATTERN}
+ 3
+ 200MB
+ 1000MB
+
+
+
+ 512
+ 0
+ true
+
+
+
+
+
+
+
+
+
+ ${MONITOR_LOG_PATH}/worker_log_report.log
+
+ ${MONITOR_LOG_PATTERN}
+ UTF-8
+
+
+ ${MONITOR_LOG_PATH}/worker_log_report.log.${ROTATE_PATTERN}
+ 3
+ 200MB
+ 1000MB
+
+
+
+ 512
+ 0
+ true
+
+
+
+
+
+
+
+
+
+ ${MONITOR_LOG_PATH}/lock.log
+
+ ${MONITOR_LOG_PATTERN}
+ UTF-8
+
+
+ ${MONITOR_LOG_PATH}/lock.log.${ROTATE_PATTERN}
+ 3
+ 200MB
+ 1000MB
+
+
+
+ 512
+ 0
+ true
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-dev.xml b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-dev.xml
new file mode 100644
index 000000000..9951c3bc5
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-dev.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${CONSOLE_LOG_PATTERN}
+ utf8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-product.xml b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-product.xml
new file mode 100644
index 000000000..80be04f6a
--- /dev/null
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/logback-product.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${LOG_PATH}/powerjob-server-error.log
+
+ ${LOG_PATH}/powerjob-server-error.%d{yyyy-MM-dd}.log
+ 7
+
+
+ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{20} - %msg%n
+ UTF-8
+
+
+ ERROR
+ ACCEPT
+ DENY
+
+
+
+
+
+
+ ${LOG_PATH}/powerjob-server-web.log
+
+ ${LOG_PATH}/powerjob-server-web.%d{yyyy-MM-dd}.log
+ 7
+
+
+ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level - %msg%n
+ UTF-8
+
+ true
+
+
+
+
+
+
+
+
+ ${LOG_PATH}/powerjob-server-application.log
+
+ ${LOG_PATH}/powerjob-server-application.%d{yyyy-MM-dd}.log
+ 7
+
+
+ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{20} - %msg%n
+ UTF-8
+
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-job/pom.xml b/ruoyi-modules/ruoyi-job/pom.xml
index a36b20c79..2fd78e9a7 100644
--- a/ruoyi-modules/ruoyi-job/pom.xml
+++ b/ruoyi-modules/ruoyi-job/pom.xml
@@ -24,14 +24,8 @@
- tech.powerjob
- powerjob-worker-spring-boot-starter
- ${powerjob.version}
-
-
- tech.powerjob
- powerjob-official-processors
- ${powerjob.version}
+ org.dromara
+ ruoyi-common-job
diff --git a/script/docker/docker-compose.yml b/script/docker/docker-compose.yml
index 7aec60b17..eb1ab691d 100644
--- a/script/docker/docker-compose.yml
+++ b/script/docker/docker-compose.yml
@@ -141,30 +141,20 @@ services:
privileged: true
network_mode: "host"
-
- ruoyi-powerjob-mysql:
- environment:
- MYSQL_ROOT_HOST: "%"
- MYSQL_ROOT_PASSWORD: No1Bug2Please3!
- restart: always
- container_name: ruoyi-powerjob-mysql
- image: powerjob/powerjob-mysql:latest
- ports:
- - "3307:3306"
- volumes:
- - ./powerjob-data/powerjob-mysql:/var/lib/mysql
- command: --lower_case_table_names=1
ruoyi-powerjob-server:
image: powerjob/powerjob-server:latest
restart: always
depends_on:
- - ruoyi-powerjob-mysql
+ - mysql
environment:
JVMOPTIONS: "-Xmx512m"
- PARAMS: "--oms.mongodb.enable=false --spring.datasource.core.jdbc-url=jdbc:mysql://ruoyi-powerjob-mysql:3306/powerjob-daily?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai"
+ PARAMS: "--oms.mongodb.enable=false --spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai --spring.datasource.core.username=root --spring.datasource.core.password=root --oms.table-prefix=pj_"
ports:
- "7700:7700"
- "10086:10086"
- "10010:10010"
volumes:
- - ./powerjob-data/powerjob-server:/root/powerjob/server/
+ - /docker/powerjob-data/powerjob-server:/root/powerjob/server/
+ privileged: true
+ network_mode: "host"
+
diff --git a/script/sql/powerjob_demo.sql b/script/sql/powerjob_demo.sql
new file mode 100644
index 000000000..2e9738a0e
--- /dev/null
+++ b/script/sql/powerjob_demo.sql
@@ -0,0 +1,5 @@
+INSERT INTO `pj_app_info` (`id`, `app_name`, `current_server`, `gmt_create`, `gmt_modified`, `password`) VALUES (1, 'ruoyi-worker', '192.168.31.80:10010', '2023-06-13 16:32:59.263000', '2023-06-13 16:33:29.898000', 'ruoyi-worker');
+INSERT INTO `pj_job_info` (`id`, `alarm_config`, `app_id`, `concurrency`, `designated_workers`, `dispatch_strategy`, `execute_type`, `extra`, `gmt_create`, `gmt_modified`, `instance_retry_num`, `instance_time_limit`, `job_description`, `job_name`, `job_params`, `lifecycle`, `log_config`, `max_instance_num`, `max_worker_count`, `min_cpu_cores`, `min_disk_space`, `min_memory_space`, `next_trigger_time`, `notify_user_ids`, `processor_info`, `processor_type`, `status`, `tag`, `task_retry_num`, `time_expression`, `time_expression_type`) VALUES (1, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 2, 1, NULL, '2023-06-02 15:01:27.717000', '2023-06-02 16:03:19.462000', 1, 0, '', '单机处理器执行测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.StandaloneProcessorDemo', 1, 1, NULL, 1, '30000', 3);
+INSERT INTO `pj_job_info` (`id`, `alarm_config`, `app_id`, `concurrency`, `designated_workers`, `dispatch_strategy`, `execute_type`, `extra`, `gmt_create`, `gmt_modified`, `instance_retry_num`, `instance_time_limit`, `job_description`, `job_name`, `job_params`, `lifecycle`, `log_config`, `max_instance_num`, `max_worker_count`, `min_cpu_cores`, `min_disk_space`, `min_memory_space`, `next_trigger_time`, `notify_user_ids`, `processor_info`, `processor_type`, `status`, `tag`, `task_retry_num`, `time_expression`, `time_expression_type`) VALUES (2, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 2, NULL, '2023-06-02 15:04:45.342000', '2023-06-02 16:04:09.736000', 0, 0, NULL, '广播处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.BroadcastProcessorDemo', 1, 1, NULL, 1, '30000', 3);
+INSERT INTO `pj_job_info` (`id`, `alarm_config`, `app_id`, `concurrency`, `designated_workers`, `dispatch_strategy`, `execute_type`, `extra`, `gmt_create`, `gmt_modified`, `instance_retry_num`, `instance_time_limit`, `job_description`, `job_name`, `job_params`, `lifecycle`, `log_config`, `max_instance_num`, `max_worker_count`, `min_cpu_cores`, `min_disk_space`, `min_memory_space`, `next_trigger_time`, `notify_user_ids`, `processor_info`, `processor_type`, `status`, `tag`, `task_retry_num`, `time_expression`, `time_expression_type`) VALUES (3, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 4, NULL, '2023-06-02 15:13:23.519000', '2023-06-02 16:03:22.421000', 0, 0, NULL, 'Map处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.MapProcessorDemo', 1, 2, NULL, 1, '1000', 3);
+INSERT INTO `pj_job_info` (`id`, `alarm_config`, `app_id`, `concurrency`, `designated_workers`, `dispatch_strategy`, `execute_type`, `extra`, `gmt_create`, `gmt_modified`, `instance_retry_num`, `instance_time_limit`, `job_description`, `job_name`, `job_params`, `lifecycle`, `log_config`, `max_instance_num`, `max_worker_count`, `min_cpu_cores`, `min_disk_space`, `min_memory_space`, `next_trigger_time`, `notify_user_ids`, `processor_info`, `processor_type`, `status`, `tag`, `task_retry_num`, `time_expression`, `time_expression_type`) VALUES (4, '{\"alertThreshold\":0,\"silenceWindowLen\":0,\"statisticWindowLen\":0}', 1, 5, '', 1, 3, NULL, '2023-06-02 15:45:25.896000', '2023-06-02 16:03:23.125000', 0, 0, NULL, 'MapReduce处理器测试', NULL, '{}', '{\"type\":1}', 0, 0, 0, 0, 0, NULL, NULL, 'org.dromara.job.processors.MapReduceProcessorDemo', 1, 2, NULL, 1, '1000', 3);