Skip to content

Remove print statement? #22

@ehenneken

Description

@ehenneken

Just raising this so we won't forget. Is the following print statement in run.py a debug left-over?

def queue_references(references: list, source_filename: str, source_bibcode: str, parsername: str) -> None:
    """
    queues references for processing by preparing a task and sending it to the queue

    :param references: a list of reference objects to be queued for processing
    :param source_filename: the name of the source file from which references are being queued
    :param source_bibcode: the bibcode associated with the source of the references
    :param parsername: the name of the parser used to extract the references
    :return: None
    """
    resolver_service_url = config['REFERENCE_PIPELINE_SERVICE_URL'] + app.get_reference_service_endpoint(parsername)
    for reference in references:
        reference_task = {'reference': reference,
                          'source_bibcode': source_bibcode,
                          'source_filename': source_filename,
                          'resolver_service_url': resolver_service_url}
        # tasks.task_process_reference.delay(reference_task)
        print('---here')
        tasks.task_process_reference(reference_task)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions