From 2c371434881582bdf7db5f0c40b0c1bb6ae5d910 Mon Sep 17 00:00:00 2001 From: waylon <1158341873@qq.com> Date: Mon, 17 Jun 2024 19:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20migrate=5Fschedule?= =?UTF-8?q?=20=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98=20#7491?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/analysis_statistics/data_migrate/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcloud/analysis_statistics/data_migrate/tasks.py b/gcloud/analysis_statistics/data_migrate/tasks.py index 718c08b10..34ccaf539 100644 --- a/gcloud/analysis_statistics/data_migrate/tasks.py +++ b/gcloud/analysis_statistics/data_migrate/tasks.py @@ -342,7 +342,7 @@ def migrate_schedule(): migrate_log = MigrateLog.objects.filter(id=1).first() # 判断是否允许迁移 - if migrate_log and migrate_log.migrate_switch: + if migrate_log and not migrate_log.migrate_switch: logger.info("[migrate_schedule] the migrate_switch is closed!") return