Bug 1336423 - Reduce warnings for SETA; r=jmaher

MozReview-Commit-ID: 5npX51kX2hB

--HG--
extra : rebase_source : 49b4c3c1003ac53e118e213f2060b6eab51fddd9
This commit is contained in:
Rob Wood 2017-02-03 11:04:21 -05:00
Родитель 2f6e025e60
Коммит 655b557dbe
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -47,7 +47,6 @@ class SETA(object):
def query_low_value_tasks(self, project):
# Request the set of low value tasks from the SETA service. Low value tasks will be
# optimized out of the task graph.
logger.debug("Querying SETA service for low-value tasks on {}".format(project))
low_value_tasks = []
url = SETA_ENDPOINT % project
@ -121,7 +120,6 @@ class SETA(object):
url = PUSH_ENDPOINT % (project, cur_push_id - 2, prev_push_id)
try:
logger.debug("Retrieving datetime of previous push")
response = retry(requests.get, attempts=2, sleeptime=10,
args=(url, ),
kwargs={'timeout': 5, 'headers': headers})
@ -166,7 +164,6 @@ class SETA(object):
def is_low_value_task(self, label, project, pushlog_id, push_date):
# marking a task as low_value means it will be optimized out by tc
if project not in SETA_PROJECTS:
logger.debug("SETA is not enabled for project `{}`".format(project))
return False
schedule_all_every = PROJECT_SCHEDULE_ALL_EVERY_PUSHES.get(project, 5)