[2.5/4.6 Backport] AAP-40782 Reduce queued stuck jobs (#6962)

* [2.5/4.6 Backport] AAP-40782 Reduce queued stuck jobs

* [2.5/4.6 Backport] AAP-40782 Reduce queued stuck jobs

* Incrp'd review feedback from @AlanCoding

* Reformatted 4 files per CI-check for api-linters
This commit is contained in:
TVo
2025-06-05 16:07:27 -06:00
committed by Hao Liu
parent d0776dabdf
commit 57b8773613
7 changed files with 155 additions and 44 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python
from django import setup
from awx import prepare_env
prepare_env()
setup()
# Keeping this in test folder allows it to be importable
from awx.main.tests.data.sleep_task import sleep_task
for i in range(634):
sleep_task.delay()