示例#1
0
def monitor_lunapark_running():
    """ Read running load tests from Redis,
        launch running test processing task.
    """
    running_tests = redis.hgetall(r_adr['monitor_finish'])
    for t, v in running_tests.iteritems():
        v = msgpack.unpackb(v)
        proc_luna_running.delay(redis_value=v, **v)
示例#2
0
def monitor_tank_scheduled():
    """ Read scheduled to Ynadex tank via Tank API load tests from Redis.
        React on test change. In negative case test may not be created on
        3rd party side because metadata inconsistency.
    """
    scheduled_tests = redis.hgetall(r_adr['monitor_start'])
    for t, v in scheduled_tests.iteritems():
        v = msgpack.unpackb(v)
        proc_tank_scheduled.delay(v, **v)