(export, payload)
Save the contents of an export file to disk for later retrieval.
Save the contents of an export file to disk for later retrieval.
Save the contents of an export file to disk for later retrieval .
def save_export_payload(export, payload):
    """
    Save the contents of an export file to disk for later retrieval.
    """
    if export.last_accessed is None:
        export.last_accessed = datetime.datetime.utcnow()
    export.last_updated = datetime.datetime.utcnow()

    try:
        with export.atomic_blobs():
            export.set_payload(payload)
    except ResourceConflict:
        # task was executed concurrently, so let first to finish win and abort the rest
        pass
def save_export_payload ( export , payload ) : if export . last_accessed is None : export . last_accessed = datetime . datetime . utcnow ( ) export . last_updated = datetime . datetime . utcnow ( ) try : with export . atomic_blobs ( ) : export . set_payload ( payload ) except ResourceConflict : # task was executed concurrently, so let first to finish win and abort the rest pass