Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@_target_task('default')
def target_tasks_default(full_task_graph, parameters, graph_config):
"""Target the tasks which have indicated they should be run on this project
via the `run_on_projects` attributes."""
return [l for l, t in full_task_graph.tasks.iteritems() if _old_decision_filter(t, parameters)]
@_target_task("nightly")
def target_tasks_nightly(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a nightly build."""
def filter(task, parameters):
if task.attributes.get("nightly", False):
return True
return _old_decision_filter(task, parameters)
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
@_target_task("production")
def target_tasks_production(full_task_graph, parameters, graph_config):
return [l for l, task in full_task_graph.tasks.iteritems() if tag_filter("production", task, parameters)]
@_target_task("lat")
def target_tasks_production(full_task_graph, parameters, graph_config):
return [l for l, task in full_task_graph.tasks.iteritems() if tag_filter("lat", task, parameters)]
@_target_task('raptor')
def target_tasks_raptor(full_task_graph, parameters, graph_config):
def filter(t, params):
if t.kind == 'raptor':
return True
return _old_decision_filter(t, params)
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
@_target_task("default")
def target_tasks_default(full_task_graph, parameters, graph_config):
filter = standard_filter
return [l for l, task in full_task_graph.tasks.iteritems() if filter(task, parameters)]