From 1a37d67accf503e248c93ec9fe439de5105b19f5 Mon Sep 17 00:00:00 2001 From: wangwj Date: Sun, 4 Jun 2023 20:11:06 +0800 Subject: [PATCH 1/2] Update mysql-schema.sql t_workflow_task_relation create tables fix --- distribution/mysql-schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/mysql-schema.sql b/distribution/mysql-schema.sql index 0eb4345..402efb0 100644 --- a/distribution/mysql-schema.sql +++ b/distribution/mysql-schema.sql @@ -104,7 +104,7 @@ create table if not exists t_workflow_task_relation status int not null, create_time datetime default CURRENT_TIMESTAMP not null, update_time datetime default CURRENT_TIMESTAMP not null, - index `index_from_task_id` (from_task_id) + index `index_from_task_id` (from_task_id), index `index_workflow_id` (workflow_id) ) collate = utf8mb3_bin; From a3f0c5afee65ff2a9d73262b109975e327aa1ac2 Mon Sep 17 00:00:00 2001 From: wangwenjun Date: Mon, 5 Jun 2023 18:36:32 +0800 Subject: [PATCH 2/2] add code --- bin/start-workflow.sh | 0 configs/{engine.yaml => workflow.yaml} | 6 +++--- internal/constants/constants.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/start-workflow.sh rename configs/{engine.yaml => workflow.yaml} (91%) diff --git a/bin/start-workflow.sh b/bin/start-workflow.sh old mode 100644 new mode 100755 diff --git a/configs/engine.yaml b/configs/workflow.yaml similarity index 91% rename from configs/engine.yaml rename to configs/workflow.yaml index ceb4cff..8b7ef8c 100644 --- a/configs/engine.yaml +++ b/configs/workflow.yaml @@ -40,13 +40,13 @@ eventmesh: plugins: registry: nacos: - address_list: "127.0.0.1:8848" + address_list: "192.168.68.111:8848" selector: nacos: - address_list: "127.0.0.1:8848" + address_list: "192.168.68.111:8848" database: mysql: - dsn: "root:123456@(127.0.0.1:3306)/db_workflow?charset=utf8&parseTime=True&loc=Local" + dsn: "root:3t8mmC87XP6J@(192.168.68.111:3306)/db_workflow?charset=utf8&parseTime=True&loc=Local" max_idle: 50 max_open: 100 max_lifetime: 180000 diff --git a/internal/constants/constants.go b/internal/constants/constants.go index d08f584..a88ea4c 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -76,7 +76,7 @@ const ( MetricsOperationTask = "operation_task" MetricsSwitchTask = "switch_task" MetricsScheduler = "scheduler" - MetricsEngine = "engine" + MetricsEngine = "eventmesh_workflow" MetricsTaskQueue = "task_queue" )