From 64811d0b6b9b18dfe39e14460a702d12d12c23b8 Mon Sep 17 00:00:00 2001 From: chris meyers Date: Tue, 12 Oct 2021 17:09:30 -0400 Subject: [PATCH 1/2] fix python black lint requirements --- awx/main/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 3e5c5909f3..7534bb1031 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -432,9 +432,9 @@ def cleanup_images_and_files(): @task(queue=get_local_queuename) def cluster_node_health_check(node): - ''' + """ Used for the health check endpoint, refreshes the status of the instance, but must be ran on target node - ''' + """ if node == '': logger.warn('Local health check incorrectly called with blank string') return From 611a537b55e86ca5092db14b8c24bc7431417882 Mon Sep 17 00:00:00 2001 From: chris meyers Date: Tue, 12 Oct 2021 17:09:59 -0400 Subject: [PATCH 2/2] add missing create partition for scm backed inv * This will resolve missing project update job events issue --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 7534bb1031..daf96484cf 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -2655,6 +2655,7 @@ class RunInventoryUpdate(BaseTask): celery_task_id=inventory_update.celery_task_id, ) ) + create_partition(local_project_sync.event_class._meta.db_table, start=local_project_sync.created) # associate the inventory update before calling run() so that a # cancel() call on the inventory update can cancel the project update local_project_sync.scm_inventory_updates.add(inventory_update)