Exemple #1
0
def async_analysis_start():
    """
    Starts the Analysis and set the lock.
    """
    task = async_analysis.apply_async((PasswordManager.get_session_pwdh(),))
    redis.Redis().set(ANALYSE_KEY, task.id)
    return jsonify({'key': task.id})
Exemple #2
0
def start_scan_all_devices_async():
    """
    Starts the scan and set the lock.
    """
    task = scan_all_devices_async.apply_async((PasswordManager.get_session_pwdh(),))
    redis.Redis().set(SCAN_KEY, task.id)
    return jsonify({'key': task.id})