mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
[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:
16
tools/scripts/firehose_tasks.py
Normal file
16
tools/scripts/firehose_tasks.py
Normal 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()
|
||||
Reference in New Issue
Block a user