mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
* Dump running tasks when running out of capacity * Use same logic for max_workers and capacity * Address case where CPU capacity is the constraint * Add a test for correspondence * Fake redis to make tests work
17 lines
259 B
Python
Executable File
17 lines
259 B
Python
Executable File
#!/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()
|