(restore_config, domain=None, username=None)
return response.name
Process an async restore
    domain and username: added for displaying restore request details on flower
Process an async restore
    domain and username: added for displaying restore request details on flower
Process an async restore domain and username : added for displaying restore request details on flower
def get_async_restore_payload(restore_config, domain=None, username=None):
    """
    Process an async restore
    domain and username: added for displaying restore request details on flower
    """
    try:
        repr(restore_config)
        log.info('RestoreConfig after get_async_restore_payload task is created: %r', restore_config)
    except Exception as e:
        notify_exception(
            None,
            'Something went wrong with RestoreConfig.__repr__()',
            details={'error': str(e)}
        )

    response = restore_config.generate_payload(async_task=current_task)

    # delete the task id from the task, since the payload can now be fetched from the cache
    restore_config.async_restore_task_id_cache.invalidate()

    return response.name
def get_async_restore_payload ( restore_config , domain = None , username = None ) : try : repr ( restore_config ) log . info ( 'RestoreConfig after get_async_restore_payload task is created: %r' , restore_config ) except Exception as e : notify_exception ( None , 'Something went wrong with RestoreConfig.__repr__()' , details = { 'error' : str ( e ) } ) response = restore_config . generate_payload ( async_task = current_task ) # delete the task id from the task, since the payload can now be fetched from the cache restore_config . async_restore_task_id_cache . invalidate ( ) return response . name