diff --git a/api/tacticalrmm/tacticalrmm/celery.py b/api/tacticalrmm/tacticalrmm/celery.py index 2c8ccb04..0d0b1441 100644 --- a/api/tacticalrmm/tacticalrmm/celery.py +++ b/api/tacticalrmm/tacticalrmm/celery.py @@ -17,6 +17,10 @@ app.result_backend = "redis://" + settings.REDIS_HOST + ":6379" app.accept_content = ["application/json"] app.result_serializer = "json" app.task_serializer = "json" + +if "TRAVIS" in os.environ: + app.task_always_eager = True + app.conf.task_track_started = True app.autodiscover_tasks() diff --git a/api/tacticalrmm/tacticalrmm/test.py b/api/tacticalrmm/tacticalrmm/test.py index 4f20cbb2..5344a8ab 100644 --- a/api/tacticalrmm/tacticalrmm/test.py +++ b/api/tacticalrmm/tacticalrmm/test.py @@ -14,7 +14,8 @@ from automation.models import Policy from core.models import CoreSettings from checks.models import Check -@patch('automation.tasks.generate_agent_checks_from_policies_task.delay') + +# @patch("automation.tasks.generate_agent_checks_from_policies_task.delay") class BaseTestCase(TestCase): def setUp(self):