File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
openwisp_monitoring/check Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 11import json
22import logging
3- import time
43
54from celery import shared_task
65from django .conf import settings
@@ -66,8 +65,6 @@ def perform_check(uuid):
6665 Retrieves check according to the passed UUID and calls the
6766 ``perform_check()`` method.
6867 """
69- start_time = time .time ()
70-
7168 try :
7269 check = get_check_model ().objects .get (pk = uuid )
7370 except ObjectDoesNotExist :
@@ -77,9 +74,6 @@ def perform_check(uuid):
7774 if settings .DEBUG : # pragma: nocover
7875 print (json .dumps (result , indent = 4 , sort_keys = True ))
7976
80- elapsed_time = time .time () - start_time
81- logger .info (f'Check "{ check } " took { elapsed_time :.2f} s to complete.' )
82-
8377
8478@shared_task (base = OpenwispCeleryTask )
8579def auto_create_check (
You can’t perform that action at this time.
0 commit comments