Esempio n. 1
0
def bst_openaire_update_upload(recid=None):
    """Tasklet to run after a new record has been uploaded."""
    if recid is None:
        return

    # Ship of tasks to Celery for background processing
    datacite_update.delay(recid)
    openaire_altmetric_update.delay([recid])
    calculate_preservation_score.delay(recid=recid)
def bst_openaire_new_upload(recid=None):
    """
    Tasklet to run after a new record has been uploaded.
    """
    if recid is None:
        return

    # Ship of tasks to Celery for background processing
    openaire_register_doi.delay(recid=recid)
    openaire_create_icon.delay(recid=recid)
    openaire_altmetric_update.delay([recid])
    openaire_upload_notification.delay(recid=recid)
Esempio n. 3
0
def bst_openaire_new_upload(recid=None):
    """
    Tasklet to run after a new record has been uploaded.
    """
    if recid is None:
        return

    # Ship of tasks to Celery for background processing
    openaire_register_doi.delay(recid=recid)
    openaire_create_icon.delay(recid=recid)
    openaire_altmetric_update.delay([recid])
    openaire_upload_notification.delay(recid=recid)
    calculate_preservation_score.delay(recid=recid)