mopybird 2 years ago
parent
commit
793cfa69de
2 changed files with 18 additions and 18 deletions
  1. 8 8
      taskmanager/config.py
  2. 10 10
      taskmanager/config_test.py

+ 8 - 8
taskmanager/config.py

@@ -272,14 +272,14 @@ CELERYBEAT_SCHEDULE = {
         }
     },
 
-    'handle_customer_complaints_yesterday': {
-        'task': 'tasks.handle_customer_complaints_yesterday',
-        'schedule': crontab(minute=0, hour=3),
-        'options': {
-            'queue': MY_CELERY_QUEUE,
-            'routing_key': MY_CELERY_ROUTING_KEY
-        }
-    },
+    # 'handle_customer_complaints_yesterday': {
+    #     'task': 'tasks.handle_customer_complaints_yesterday',
+    #     'schedule': crontab(minute=0, hour=3),
+    #     'options': {
+    #         'queue': MY_CELERY_QUEUE,
+    #         'routing_key': MY_CELERY_ROUTING_KEY
+    #     }
+    # },
 
     'send_SIM_expired_messages_by_sms': {
         'task': 'tasks.send_SIM_expired_messages',

+ 10 - 10
taskmanager/config_test.py

@@ -331,16 +331,16 @@ CELERYBEAT_SCHEDULE = {
             }
         },
 
-    'handle_customer_complaints_yesterday': {
-        'task': 'tasks.handle_customer_complaints_yesterday',
-
-        'schedule': crontab(minute=0, hour=3),
-
-        'options': {
-            'queue': MY_CELERY_QUEUE,
-            'routing_key': MY_CELERY_ROUTING_KEY
-        }
-    },
+    # 'handle_customer_complaints_yesterday': {
+    #     'task': 'tasks.handle_customer_complaints_yesterday',
+    #
+    #     'schedule': crontab(minute=0, hour=3),
+    #
+    #     'options': {
+    #         'queue': MY_CELERY_QUEUE,
+    #         'routing_key': MY_CELERY_ROUTING_KEY
+    #     }
+    # },
 
     'send_SIM_expired_messages_by_sms': {
         'task': 'tasks.send_SIM_expired_messages',