mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Apply new rules from black update (#16232)
This commit is contained in:
@@ -10,7 +10,6 @@ from awx import prepare_env
|
||||
|
||||
from dispatcherd.utils import resolve_callable
|
||||
|
||||
|
||||
prepare_env()
|
||||
|
||||
django.setup() # noqa
|
||||
@@ -18,7 +17,6 @@ django.setup() # noqa
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
# Preload all periodic tasks so their imports will be in shared memory
|
||||
for name, options in settings.CELERYBEAT_SCHEDULE.items():
|
||||
resolve_callable(options['task'])
|
||||
@@ -31,6 +29,5 @@ from awx.main.scheduler.kubernetes import PodManager # noqa
|
||||
from django.core.cache import cache as django_cache
|
||||
from django.db import connection
|
||||
|
||||
|
||||
connection.close()
|
||||
django_cache.close()
|
||||
|
||||
@@ -3,7 +3,6 @@ import time
|
||||
import yaml
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
logger = logging.getLogger('awx.main.dispatch.periodic')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user