gd_submitunique

Submits a GRAM job to a unique working directory.

 

Syntax

(jobhandle,uniquedir) = gd_submitunique(rsl,host, files=None,remotedir=None)

 

Description

This command creates a unique working directory on a Globus server, transferring files as required, and submits the compute job to the GRAM job manager. Upon a successful submission the command returns a job handle and the name of the unique directory.

 

(jobhandle,uniquedir) = gd_submitunique(rsl,host) where rsl is a string describing the submitted job, and host is the name of the Globus server. Returns a tuple containing the GRAM job handle and the name of the unique working directory. Where jobhandle is the handle for a successfully submitted job and uniquedir is the location of the working directory created on host.

 

(jobhandle,uniquedir) = gd_submitunique(rsl,host,files)  as above, where files is a list of the files to be transferred to the working directory on the host.

 

(jobhandle,uniquedir) = gd_submitunique(rsl,host,files, remotedir) as above, where remotedir is the directory on the host within which the unique working directory is created. files can be empty if no files are required.

 

Example

This command creates a directory '20040427T130607_643492' in the user's home directory on the machine host. The working directory in the user supplied RSL string is set to the unique directory.

 

from gdcompute import *

rsl = '&(executable=/bin/date) (stdout="test.out")'

(jobhandle,dirname) = gd_submitunique(rsl,host)

print jobhandle

print dirname

 

 

https://host.domain.com:40001/15678/1083067567/

 

20040427T130607_643492/

 

 

Notes

A valid proxy certificate is required to submit a GRAM job.  For more information about RSL see http://www.globus.org/gram/.

 

See also

gd_jobsubmit, gd_createproxy, gd_jobkill, gd_jobstatus



gd_rmuniquedir

contents

gd_transferfile

Copyright © 2005, The Geodise Project, University of Southampton