Using the Grid/Job status

From BiGGrid Wiki
Revision as of 10:34, 28 June 2011 by Machiel.Jansen (talk | contribs) (Created page with "category:Job submission *Problem: You want to know the status of the jobs you have submitted. *Solution: Use ''glite-wms-job-status''. *First: [[Using the Grid/Job submission...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In order to know the status of your submitted jobs use

glite-wms-job-status <JobID>

This command queries the Logging and Bookkeeping service (LB) for the status of the job whose job id is used as an argument.

If you have saved your jobIds into a file you can use the -i option and use the filename as an argument. Here follows an example with a file called myjobs. This file contains two job identifiers. A menu will pop up asking for the user's input. Here you can choose of which jobs you want to see the status. In the example below, I have chosen to view the status of all listed jobs by typing a.

mgjansen$ glite-wms-job-status -i myjobs

------------------------------------------------------------------
1 : https://wms.grid.sara.nl:9000/8Ey04s3x9xIEE_6hCwb8hw
2 : https://wms.grid.sara.nl:9000/L4kprOVqd9QwdSTg2cbGCw
a : all
q : quit
------------------------------------------------------------------


Choose one or more jobId(s) in the list - [1-2]all:a


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://wms.grid.sara.nl:9000/8Ey04s3x9xIEE_6hCwb8hw
Current Status:     Scheduled
Status Reason:      Job successfully submitted to Globus
Destination:        ce.gina.sara.nl:2119/jobmanager-pbs-short
Submitted:          Wed Mar 12 13:23:43 2008 CET
*************************************************************


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://wms.grid.sara.nl:9000/L4kprOVqd9QwdSTg2cbGCw
Current Status:     Scheduled
Status Reason:      Job successfully submitted to Globus
Destination:        ce.gina.sara.nl:2119/jobmanager-pbs-short
Submitted:          Wed Mar 12 13:23:49 2008 CET
*************************************************************

Note that this command doesn't require a delegation identifier to be specified. The status of the two jobs shown above is Scheduled.

NOTE: In order to know the status of your jobs you have to use this polling mechanism of actively querying for the status. Please do NOT do this every second, but wait at least several minutes before trying again.

When the job finished, you can retrieve the output of the job: How to retrieve the output of a job?