fix ordering in get_tasks_for_host
This commit is contained in:
parent
c0284b0fa1
commit
feb5d0e8ab
1 changed files with 1 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ def get_tasks_for_host(hostID, retry=True):
|
|||
columns=fields, aliases=aliases, tables=['task'],
|
||||
clauses=['host_id = %(hostID)s', 'state=%(assigned)s'],
|
||||
values={'hostID': hostID, 'assigned': koji.TASK_STATES['ASSIGNED']},
|
||||
opts={'order': 'priority,create_ts'},
|
||||
)
|
||||
|
||||
tasks = query.execute()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue