We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02b12a commit a9993c7Copy full SHA for a9993c7
openwisp_monitoring/check/tasks.py
@@ -1,6 +1,5 @@
1
import json
2
import logging
3
-import time
4
5
from celery import shared_task
6
from django.conf import settings
@@ -66,8 +65,6 @@ def perform_check(uuid):
66
65
Retrieves check according to the passed UUID and calls the
67
``perform_check()`` method.
68
"""
69
- start_time = time.time()
70
-
71
try:
72
check = get_check_model().objects.get(pk=uuid)
73
except ObjectDoesNotExist:
@@ -77,9 +74,6 @@ def perform_check(uuid):
77
74
if settings.DEBUG: # pragma: nocover
78
75
print(json.dumps(result, indent=4, sort_keys=True))
79
76
80
- elapsed_time = time.time() - start_time
81
- logger.info(f'Check "{check}" took {elapsed_time:.2f}s to complete.')
82
83
84
@shared_task(base=OpenwispCeleryTask)
85
def auto_create_check(
0 commit comments