From 3d68ca848eb7e74871c773f142b1cd891f3476b4 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 29 Jan 2026 11:31:06 -0500 Subject: [PATCH] Fix race condition of un-expired cache in local workers (#16256) --- awx/main/tests/live/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/live/tests/conftest.py b/awx/main/tests/live/tests/conftest.py index 12b78b514e..b74a997c8e 100644 --- a/awx/main/tests/live/tests/conftest.py +++ b/awx/main/tests/live/tests/conftest.py @@ -69,7 +69,7 @@ def live_tmp_folder(): settings._awx_conf_memoizedcache.clear() # cache is cleared in test environment, but need to clear in test environment clear_setting_cache.delay(['AWX_ISOLATION_SHOW_PATHS']) - time.sleep(0.2) # allow task to finish, we have no real metric to know + time.sleep(5.0) # for _awx_conf_memoizedcache to expire on all workers else: logger.info(f'Believed that {path} is already in settings.AWX_ISOLATION_SHOW_PATHS: {settings.AWX_ISOLATION_SHOW_PATHS}') return path