mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
This adds a boolean "dependencies_processed" field to UnifiedJob model. The default value is False. Once the task manager generates dependencies for this task, it will not generate them again on subsequent runs. The changes also remove .process_dependencies(), as this method repeats the same code as .process_pending_tasks(), and is not needed. Once dependencies are generated, they are handled at .process_pending_tasks(). Adds a unit test that should catch regressions for this fix.
19 lines
536 B
Python
19 lines
536 B
Python
# Generated by Django 2.2.8 on 2020-02-06 16:43
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0107_v370_workflow_convergence_api_toggle'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='unifiedjob',
|
|
name='dependencies_processed',
|
|
field=models.BooleanField(default=False, editable=False, help_text='If True, the task manager has already processed potential dependencies for this job.'),
|
|
),
|
|
]
|