Esempio n. 1
0
def destroy(ctx, queue):
    """
    Destroy an existing queue.
    """
    mgr = BatchManager(yml=ctx.obj['CONFIG'])
    mgr.disable_queue(queue)
    time.sleep(1)
    mgr.destroy_queue(queue)
Esempio n. 2
0
def disable(ctx, queue):
    """
    Disable an existing queue.
    """
    mgr = BatchManager(yml=ctx.obj['CONFIG'])
    mgr.disable_queue(queue)
Esempio n. 3
0
def disable(ctx, queue):
    """
    Disable an existing queue.
    """
    mgr = BatchManager(filename=ctx.obj['CONFIG_FILE'])
    mgr.disable_queue(queue)