remove statsd

This commit is contained in:
Chris Meyers
2016-05-10 11:56:04 -04:00
parent 5fd8ac7773
commit ae73be12f1
9 changed files with 0 additions and 84 deletions

View File

@@ -43,7 +43,6 @@ from django.core.mail import send_mail
from django.contrib.auth.models import User
# AWX
from awx.lib.metrics import task_timer
from awx.main.constants import CLOUD_PROVIDERS
from awx.main.models import * # noqa
from awx.main.models.label import Label
@@ -301,7 +300,6 @@ class BaseTask(Task):
model = None
abstract = True
@task_timer
def update_model(self, pk, _attempt=0, **updates):
"""Reload the model instance from the database and update the
given fields.
@@ -371,7 +369,6 @@ class BaseTask(Task):
os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
return path
@task_timer
def build_private_data_files(self, instance, **kwargs):
'''
Create a temporary files containing the private data.
@@ -426,7 +423,6 @@ class BaseTask(Task):
'': '',
}
@task_timer
def build_env(self, instance, **kwargs):
'''
Build environment dictionary for ansible-playbook.
@@ -450,7 +446,6 @@ class BaseTask(Task):
env['PROOT_TMP_DIR'] = tower_settings.AWX_PROOT_BASE_PATH
return env
@task_timer
def build_safe_env(self, instance, **kwargs):
'''
Build environment dictionary, hiding potentially sensitive information
@@ -519,7 +514,6 @@ class BaseTask(Task):
'''
return OrderedDict()
@task_timer
def run_pexpect(self, instance, args, cwd, env, passwords, stdout_handle,
output_replacements=None):
'''
@@ -603,7 +597,6 @@ class BaseTask(Task):
Hook for any steps to run after job/task is complete.
'''
@task_timer
def run(self, pk, **kwargs):
'''
Run the job/task and capture its output.
@@ -699,7 +692,6 @@ class RunJob(BaseTask):
name = 'awx.main.tasks.run_job'
model = Job
@task_timer
def build_private_data(self, job, **kwargs):
'''
Returns a dict of the form
@@ -1005,7 +997,6 @@ class RunProjectUpdate(BaseTask):
name = 'awx.main.tasks.run_project_update'
model = ProjectUpdate
@task_timer
def build_private_data(self, project_update, **kwargs):
'''
Return SSH private key data needed for this project update.
@@ -1173,7 +1164,6 @@ class RunInventoryUpdate(BaseTask):
name = 'awx.main.tasks.run_inventory_update'
model = InventoryUpdate
@task_timer
def build_private_data(self, inventory_update, **kwargs):
"""Return private data needed for inventory update.
If no private data is needed, return None.
@@ -1505,7 +1495,6 @@ class RunAdHocCommand(BaseTask):
name = 'awx.main.tasks.run_ad_hoc_command'
model = AdHocCommand
@task_timer
def build_private_data(self, ad_hoc_command, **kwargs):
'''
Return SSH private key data needed for this ad hoc command (only if