mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
celery task fail check now uses pglock
* Align locking used by celery task cleaner upper with regular task manager. * Uses pglock/advisory lock instead of abusing Instance table lock.
This commit is contained in:
parent
7a795b8681
commit
5b9a0b504a
@ -15,7 +15,6 @@ from celery import task
|
||||
from awx.main.scheduler import TaskManager
|
||||
from django.core.cache import cache
|
||||
|
||||
|
||||
logger = logging.getLogger('awx.main.scheduler')
|
||||
|
||||
# TODO: move logic to UnifiedJob model and use bind=True feature of celery.
|
||||
@ -59,3 +58,4 @@ def run_fail_inconsistent_running_jobs():
|
||||
all_running_sorted_tasks = scheduler.get_running_tasks()
|
||||
scheduler.process_celery_tasks(celery_task_start_time, active_tasks, all_running_sorted_tasks)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user