def archive_action(user, user_comment, dmfilestat, lockfile=None, msg_banner = False): ''' Archive Action by wrapping invocation with celery task for sync / async execution''' try: backup_directory = dmfilestat.archivepath if dmfilestat.action_state == 'SA' else None dmactions.archive(user, user_comment, dmfilestat, lockfile, msg_banner, backup_directory) except: raise
def archive_action(user, user_comment, dmfilestat): """ Archive Action by wrapping invocation with celery task for sync / async execution""" try: backup_directory = dmfilestat.archivepath if dmfilestat.action_state == "SA" else None dmactions.archive(user, user_comment, dmfilestat, backup_directory) except: raise
def archive_action(user, user_comment, dmfilestat, lockfile=None, msg_banner=False): ''' Archive Action by wrapping invocation with celery task for sync / async execution''' try: backup_directory = dmfilestat.archivepath if dmfilestat.action_state == 'SA' else None dmactions.archive(user, user_comment, dmfilestat, lockfile, msg_banner, backup_directory) except: raise
def archive_action(user, user_comment, dmfilestat, lockfile=None, msg_banner=False): """ Archive Action by wrapping invocation with celery task for sync / async execution""" try: backup_directory = (dmfilestat.archivepath if dmfilestat.action_state == "SA" else None) dmactions.archive(user, user_comment, dmfilestat, lockfile, msg_banner, backup_directory) except Exception: raise