next up previous contents
Next: Customized Configuration Files Up: Job Submission Previous: New Features   Contents

edg-job-submit Usage

To submit a job, you must first create a .jdl file stating the executable image and the output files as in the following minimal jdl:

Minimal JDL File hnam.jdl
Executable = "/bin/hostname";
StdOutput = "hnam.out";
StdError = "hnam.err";
OutputSandbox = {"hnam.out","hnam.err"};

JDL directives must fit into one single line and terminate with semi-colon.
Submission is performed either with:

$ edg-job-submit --vo alice -o JID hnam.jdl

or with:

$ edg-job-submit --config my.conf --config-vo my-vo.conf -o JID hnam.jdl

If job submission is successfull, the middleware displays a message of the following type:

Connecting to host, port 7772
Logging to host, port 9002
========================== edg-job-submit Success==============================
 The job has been successfully submitted to the Network Server.
 Use edg-job-status command to check job current status. Your job identifier
(edg_jobId) is:
 The edg_jobId has been saved in the following file:

In this example, the job is submitted using either the default configuration file or user supplied configuration files. In the first case, the virtual organization is specified using the --vo option. In the second case, the job is submitted specifying customized configurations. Configuration files are required to submit the job to a user defined broker different from the one defined in the default UI configuration.
The job URL is stored in file JID.

As EDG2 does not support the e-mail notification option, it is good practice to store job URLs in a file (ex. JID) that can be used at query and output recovery levels. As new jobs are submitted, the JID file is updated. To ignore older jobs, edit JID and comment out URLs to ignore:

###Submitted Job Ids###

Monitor execution and recover output as follows:

$ edg-job-status -i JID # wait for done status flag

Printing status info for the Job :
Current Status:    Done (Success)
Exit code:         0
Status Reason:     Job terminated successfully
reached on:        Fri Oct  3 13:44:23 2003
$ edg-job-get-output -i JID # recover output sandbox
Retrieving files from host
                        JOB GET OUTPUT OUTCOME
 Output sandbox files for the job:
 have been successfully retrieved and stored in the directory:

If you try to recover output for a job ID for which you have already run edg-job-get-output, the retrieval process prints the following message:

The OutputSandbox files for job
have been already successfully retrieved

Status flag values and meaning are listed in the table below.

Summary of Status Flags
Flag Meaning
SUBMITTED submission logged in the LB
WAIT job match making for resources
READY job being sent to executing CE
SCHEDULED job scheduled in the CE queue manager
RUNNING job executing on a WN of the selected CE queue
DONE job terminated without grid errors
CLEARED job output retrieved
ABORT job aborted by middleware, check reason

next up previous contents
Next: Customized Configuration Files Up: Job Submission Previous: New Features   Contents
luvisetto 2003-12-17