(
        index_name, sketch_id, analysis_id, analyzer_name,
        timeline_id=None, **kwargs)
return index_name
Create a Celery task for a sketch analyzer.

    Args:
        index_name: Name of the datastore index.
        sketch_id: ID of the sketch to analyze.
        analysis_id: ID of the analysis.
        analyzer_name: Name of the analyzer.
        timeline_id: Int of the timeline this analyzer belongs to.

    Returns:
      Name (str) of the index.
Create a Celery task for a sketch analyzer.
Create a Celery task for a sketch analyzer .
def run_sketch_analyzer(
        index_name, sketch_id, analysis_id, analyzer_name,
        timeline_id=None, **kwargs):
    """Create a Celery task for a sketch analyzer.

    Args:
        index_name: Name of the datastore index.
        sketch_id: ID of the sketch to analyze.
        analysis_id: ID of the analysis.
        analyzer_name: Name of the analyzer.
        timeline_id: Int of the timeline this analyzer belongs to.

    Returns:
      Name (str) of the index.
    """
    analyzer_class = manager.AnalysisManager.get_analyzer(analyzer_name)
    analyzer = analyzer_class(
        sketch_id=sketch_id, index_name=index_name,
        timeline_id=timeline_id, **kwargs)

    result = analyzer.run_wrapper(analysis_id)
    logger.info('[{0:s}] result: {1:s}'.format(analyzer_name, result))
    return index_name
def run_sketch_analyzer ( index_name , sketch_id , analysis_id , analyzer_name , timeline_id = None , * * kwargs ) : analyzer_class = manager . AnalysisManager . get_analyzer ( analyzer_name ) analyzer = analyzer_class ( sketch_id = sketch_id , index_name = index_name , timeline_id = timeline_id , * * kwargs ) result = analyzer . run_wrapper ( analysis_id ) logger . info ( '[{0:s}] result: {1:s}' . format ( analyzer_name , result ) ) return index_name