Exemplo n.º 1
0
def default_store_clean_command(node_config):
    """Command to clean store on resource using remote node storage"""
    return r'ssh -n %s %s@%s "%s"' % (
        ' '.join(default_ssh_options()), node_config['storage_user'],
        node_config['storage_node'], local_store_clean_command(node_config))
Exemplo n.º 2
0
def default_store_clean_command(execution_dir, execution_node):
    return r'ssh %s %s \\"%s\\"' % (' '.join(default_ssh_options()),
                                    execution_node,
                                    local_store_clean_command(execution_dir,
                                    execution_node))
Exemplo n.º 3
0
def default_exe_clean_command(node_config):
    """Command to clean exe on resource using remote node execution"""
    return r'ssh -n %s %s@%s "%s"' % (
        ' '.join(default_ssh_options()), node_config['execution_user'],
        node_config['execution_node'], local_exe_clean_command(node_config))
Exemplo n.º 4
0
def default_exe_status_command(execution_dir, execution_node):
    pgid_file = execution_dir + 'job.pgid'
    return r'ssh %s %s  \"MIG_EXE_PGID=$mig_exe_pgid ; if [ \\\\\\`ps -o pid= -g \\\\\\$MIG_EXE_PGID | wc -l \\\\\\` -eq 0 ]; then exit 1; else exit 0;fi \"'\
         % (' '.join(default_ssh_options()), execution_node)