clean up logging
This commit is contained in:
parent
3554a1fb43
commit
5c383b6175
1 changed files with 1 additions and 2 deletions
|
|
@ -1049,14 +1049,13 @@ class TaskManager(object):
|
|||
|
||||
# get our assigned tasks
|
||||
tasks = self.session.host.getTasks()
|
||||
self.logger.debug("Got tasks: %r", tasks)
|
||||
for task in tasks:
|
||||
self.logger.debug("task: %r" % task)
|
||||
if task['id'] in self.tasks:
|
||||
# we were running this task, but it apparently has been
|
||||
# reassigned. We can't do anything with it until
|
||||
# updateTasks notices this and cleans up.
|
||||
self.logger.info("Task %(id)s freed or reassigned", task)
|
||||
self.logger.info("Task %(id)s reassigned", task)
|
||||
continue
|
||||
if task['state'] != koji.TASK_STATES['ASSIGNED']:
|
||||
# shouldn't happen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue