pool restart with thread-based external log config

for CTiT enablement of celery task Tower logs
This commit is contained in:
AlanCoding
2016-12-14 10:13:39 -05:00
parent 5f0940e411
commit cc4aa49556
8 changed files with 75 additions and 31 deletions

View File

@@ -34,11 +34,13 @@ def run_job_complete(job_id):
@task
def run_task_manager():
logger.debug("Running Tower task manager.")
TaskManager().schedule()
@task
def run_fail_inconsistent_running_jobs():
logger.debug("Running task to fail inconsistent running jobs.")
with transaction.atomic():
# Lock
try: