зеркало из https://github.com/mozilla/treeherder.git
Bug 1335898 - Increase SETA logger level when changing job priority (#2126)
This commit is contained in:
Родитель
90ad380c16
Коммит
345019b801
|
@ -28,7 +28,7 @@ class AnalyzeFailures:
|
|||
high_value_jobs = get_high_value_jobs(fixed_by_commit_jobs)
|
||||
|
||||
if not self.dry_run:
|
||||
logger.info("Let's see if we need to increase the priority of any job")
|
||||
logger.warn("Let's see if we need to increase the priority of any job")
|
||||
JobPriority.objects.clear_expiration_field_for_expired_jobs()
|
||||
JobPriority.objects.adjust_jobs_priority(high_value_jobs)
|
||||
|
||||
|
@ -104,5 +104,5 @@ def get_failures_fixed_by_commit():
|
|||
logger.warning('job_note {} has no job associated to it'.format(job_note.id))
|
||||
continue
|
||||
|
||||
logger.info("failures: {}".format(len(failures)))
|
||||
logger.warn("failures: {}".format(len(failures)))
|
||||
return failures
|
||||
|
|
|
@ -30,11 +30,11 @@ class JobPriorityManager(models.Manager):
|
|||
for jp in JobPriority.objects.filter(expiration_date__isnull=True):
|
||||
if jp.unique_identifier() not in high_value_jobs:
|
||||
if jp.priority != SETA_LOW_VALUE_PRIORITY:
|
||||
logger.info('Decreasing priority of {}'.format(jp.unique_identifier()))
|
||||
logger.warn('Decreasing priority of {}'.format(jp.unique_identifier()))
|
||||
jp.priority = SETA_LOW_VALUE_PRIORITY
|
||||
jp.save(update_fields=['priority'])
|
||||
elif jp.priority != priority:
|
||||
logger.info('Increasing priority of {}'.format(jp.unique_identifier()))
|
||||
logger.warn('Increasing priority of {}'.format(jp.unique_identifier()))
|
||||
jp.priority = priority
|
||||
jp.save(update_fields=['priority'])
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче