From ae3d1d8c99dac4eec97989c7c674e83e8c57b425 Mon Sep 17 00:00:00 2001 From: d4x1 <1507509064@qq.com> Date: Fri, 13 Sep 2024 09:56:14 +0800 Subject: [PATCH 1/2] fix(project): update project's default sync policy --- backend/server/services/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/services/project.go b/backend/server/services/project.go index 8e9528d3832..a490572eb59 100644 --- a/backend/server/services/project.go +++ b/backend/server/services/project.go @@ -142,7 +142,7 @@ func CreateProject(projectInput *models.ApiInputProject) (*models.ApiOutputProje ProjectName: project.Name, Mode: "NORMAL", Enable: true, - CronConfig: "0 0 * * *", + CronConfig: "0 0 * * 1", IsManual: false, SyncPolicy: models.SyncPolicy{ TimeAfter: func() *time.Time { From 7842ac561ef477cd8ca78efa8f3b9a601a64bb03 Mon Sep 17 00:00:00 2001 From: d4x1 <1507509064@qq.com> Date: Fri, 13 Sep 2024 09:59:47 +0800 Subject: [PATCH 2/2] fix(project): update project's default sync policy --- backend/server/services/project.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/server/services/project.go b/backend/server/services/project.go index a490572eb59..4739232ad20 100644 --- a/backend/server/services/project.go +++ b/backend/server/services/project.go @@ -19,6 +19,7 @@ package services import ( "fmt" + "github.com/apache/incubator-devlake/helpers/pluginhelper/services" "golang.org/x/sync/errgroup" "strings" "time" @@ -142,7 +143,7 @@ func CreateProject(projectInput *models.ApiInputProject) (*models.ApiOutputProje ProjectName: project.Name, Mode: "NORMAL", Enable: true, - CronConfig: "0 0 * * 1", + CronConfig: services.BP_CRON_WEEKLY, IsManual: false, SyncPolicy: models.SyncPolicy{ TimeAfter: func() *time.Time {