mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 05:00:07 -03:30
fix lint
This commit is contained in:
@@ -593,7 +593,9 @@ class UnifiedJob(
|
|||||||
priority = models.PositiveIntegerField(
|
priority = models.PositiveIntegerField(
|
||||||
default=0,
|
default=0,
|
||||||
editable=False,
|
editable=False,
|
||||||
help_text=_("Relative priority to other jobs. The higher the number, the higher the priority. Jobs with equivalent prioirty are started based on available capacity and launch time."),
|
help_text=_(
|
||||||
|
"Relative priority to other jobs. The higher the number, the higher the priority. Jobs with equivalent prioirty are started based on available capacity and launch time."
|
||||||
|
),
|
||||||
)
|
)
|
||||||
emitted_events = models.PositiveIntegerField(
|
emitted_events = models.PositiveIntegerField(
|
||||||
default=0,
|
default=0,
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class TaskBase:
|
|||||||
UnifiedJob.objects.filter(**filter_args)
|
UnifiedJob.objects.filter(**filter_args)
|
||||||
.exclude(launch_type='sync')
|
.exclude(launch_type='sync')
|
||||||
.exclude(polymorphic_ctype_id=wf_approval_ctype_id)
|
.exclude(polymorphic_ctype_id=wf_approval_ctype_id)
|
||||||
.order_by('-priority','created')
|
.order_by('-priority', 'created')
|
||||||
.prefetch_related('dependent_jobs')
|
.prefetch_related('dependent_jobs')
|
||||||
)
|
)
|
||||||
self.all_tasks = [t for t in qs]
|
self.all_tasks = [t for t in qs]
|
||||||
|
|||||||
Reference in New Issue
Block a user