This commit is contained in:
Elijah DeLee
2025-03-11 14:39:14 -04:00
parent 97d03e434e
commit a2decc7c60
2 changed files with 4 additions and 2 deletions

View File

@@ -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,

View File

@@ -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]