Bug 1333255: replace uses of index_paths with optimizations; r=jonasfj

MozReview-Commit-ID: 1w8HVv94xoD
This commit is contained in:
Dustin J. Mitchell
2017-03-10 20:20:50 +00:00
parent 154a1cb600
commit b249b845c2
5 changed files with 8 additions and 26 deletions

View File

@@ -52,10 +52,6 @@ task_description_schema = Schema({
# automatically
Optional('routes'): [basestring],
# The index paths where this task may be cached. Transforms are expected to
# fill these automatically when wanted.
Optional('index-paths'): [basestring],
# custom scopes for this task; any scopes required for the worker will be
# added automatically
Optional('scopes'): [basestring],
@@ -799,7 +795,6 @@ def add_files_changed(config, tasks):
def setup_optimizations(config, tasks):
for task in tasks:
optimizations = task.setdefault('optimizations', [])
optimizations.extend([['index-search', idx] for idx in task.get('index-paths', [])])
optimizations.append(['seta'])
if 'when' in task and 'files-changed' in task['when']:
optimizations.append(['files-changed', task['when']['files-changed']])