Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

lsb_mig()

Migrates a job from one host to another.

DESCRIPTION

lsb_mig() migrates a job from one host to another.

The submig structure contains the following fields:

jobId

The job ID of the job to be migrated.

options

See lsb_submit().

numAskedHosts

The number of hosts supplied as candidates for migration.

askedHosts

An array of pointers to the names of candidate hosts for migration.

Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.

SYNOPSIS

#include <lsf/lsbatch.h>
int lsb_mig(struct submig *mig, int *badHostIdx)

struct submig {
    LS_LONG_INT jobId;
    int options;
    int numAskedHosts;
    char **askedHosts;
}; 

PARAMETERS

*mig

The job to be migrated.

*badHostIdx

If the call fails, (**askedHosts)[*badHostIdx] is not a host known to the LSF system.

RETURN VALUES

integer:0

The function was successful.

integer:-1

Function failed.

ERRORS

If the function fails, lsberrno is set to indicate the error and badHostIdx indicates which askedHost is not acceptable.

SEE ALSO

Related APIs

lsb_submit() - Submits or restarts a job in the batch system

Equivalent line command

none

Files

${LSF_ENVDIR}/lsf.conf


Platform Computing Inc.
www.platform.com
Knowledge Center         Contents    Previous  Next