#3758 kojira: prioritize awaited repos
Closed by tkopecek. Opened by tkopecek.
tkopecek/koji issue3757  into  master

Download 3758.patch

Related: https://pagure.io/koji/issue/3757

@mikem Do you think it is a reasonable idea? And what about multiplication factor?

Overall the the idea is fine. It will only really help a very narrow range of cases. Most issues we have with stale repos don't involve a waitrepo task.

The code that examines the tasks should catch errors so that a malformed task doesn't break kojira.

The adjustment needs to allow for the case where score_adjust is not set.

The factor could probably go higher, maybe 2?

1 new commit added

  • error handling

works for me

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

There's a bug. This call needs decode=True

awaited = self.session.listTasks(opts={'method': ['waitrepo'],
                                       'state': [koji.TASK_STATES['FREE'],
                                                 koji.TASK_STATES['ASSIGNED'],
                                                 koji.TASK_STATES['OPEN']]})

Also, we should probably allow for the possibility that the tag arg for the task is specified differently, e.g. by name.

Fixes in #3798

Metadata Update from @mikem:
- Pull-request untagged with: testing-ready

Pull-Request has been closed by tkopecek

Metadata