예제 #1
0
def check_status():
    commands = [
        "kubectl describe pods",
        "kubectl get pods --selector app=azure-pytorch-elastic",
    ]

    util.run_commands(commands)
예제 #2
0
def run_job(args):
    util.install_blobfuse_drivers()
    commands = [
        "kubectl delete -f config/azure-pytorch-elastic.yaml",
        "kubectl apply -f config/azure-pytorch-elastic.yaml",
        "kubectl describe pods",
        "kubectl get pods --selector app=azure-pytorch-elastic",
    ]

    util.run_commands(commands)
예제 #3
0
def main(opts):

    """
    Execute using docopt-mpe options.
    """

    settings = opts.flags
    return util.run_commands(commands, settings, opts)
예제 #4
0
def main(opts):

    """
    Execute command.
    """

    settings = opts.flags
    return util.run_commands(commands, settings, opts)
예제 #5
0
def main(opts):

    """
    Execute command.
    """

    settings = opts.flags
    opts.default = 'info'
    return util.run_commands(commands, settings, opts)
예제 #6
0
def main(opts):

    """
    Execute command.
    """

    settings = opts.flags
    opts.default = ['balance', 'verify']
    return util.run_commands(commands, settings, opts)
예제 #7
0
파일: host.py 프로젝트: dotmpe/script-mpe
def main(opts):

    """
    Execute command.
    """

    # settings = opts.flags
    opts.flags.configPath = os.path.expanduser(opts.flags.config)
    settings = util.init_config(opts.flags.configPath, dict(nodes={}, interfaces={}, domain={}), opts.flags)
    opts.default = "info"
    return util.run_commands(commands, settings, opts)
예제 #8
0
def main(opts):

    """
    Execute command.
    """

    api_keys = get_keys_from_env()
    opts.api = twitter.Api(**api_keys)
    if opts.flags.cache_timeout != 60:
        opts.api.SetCacheTimeout(opts.flags.cache_timeout)

    return util.run_commands(commands, opts.flags, opts)
예제 #9
0
def main(opts):

    """
    Execute command.
    """

    settings = opts.flags

    if not re.match(r'^[a-z][a-z]*://', settings.dbref):
        settings.dbref = 'sqlite:///' + os.path.expanduser(settings.dbref)

    opts.default = 'info'

    return util.run_commands(commands, settings, opts)
예제 #10
0
def main(opts):

    """
    Execute command.
    """

    #config = confparse.expand_config_path('domain.rc')
    opts.flags.configPath = os.path.expanduser(opts.flags.config)
    settings = util.init_config(opts.flags.configPath, dict(
            nodes = {}, interfaces = {}, domain = {}
        ), opts.flags)

    opts.default = 'info'

    return util.run_commands(commands, settings, opts)
예제 #11
0
파일: gradle.py 프로젝트: pauljriley/infer
 def capture(self):
     cmds = self.get_infer_commands(util.get_build_output(self.build_cmd))
     return util.run_commands(cmds)
예제 #12
0
def get_logs():
    util.run_commands(["kubectl logs --selector app=azure-pytorch-elastic "])