[gt-user] Re: [torqueusers] Send a job to PBS and get it to have
other name than STDIN
Matias Alberto Gavinowich
mattlistas at gmail.com
Mon Apr 23 14:42:30 MDT 2007
Thank you very much for your reply.
I managed to add this parameter for pre-WS GRAM only. I had to make
changes apart from those to pbs.pm, I describe them below.
I tried to do the same for WS-GRAM by adding the following lines to my
$GLOBUS_LOCATION/share/schema/gram/job_description.xsd file, with no
after xsd:element jobType...
<!-- Extension to RSL schema to be able to specify a name for the job -->
<xsd:element name="jobName" type="xsd:string">
This specifies a name for the job.
after xsd:element ref="tns:jobType" ...
<!-- attributes for specifying the name of job to run -->
<xsd:element ref="tns:jobName" minOccurs="0"/>
I restarted the container after those modifications. What might I be missing?
This were my steps for pre-WS GRAM. These worked:
In $GLOBUS_LOCATION/share/globus_gram_job_manager/pbs.rvf I added:
Description: "Name for the job."
right before Attribute: queue
and in $GLOBUS_LOCATION/lib/perl/Globus/GRAM/JobManager/pbs.pm I added:
if($description->jobname() ne '')
print JOB '#PBS -N ', $description->jobname(), "\n";
I can run the command globus-job-run
myhost.mydomain.com/jobmanager-pbs -x "&(jobName=thisisaname)"
-host-count 1 -count 5 /bin/hostname
and it works.
However, If I run it with globusrun-ws and an rsl.file I get:
globusrun-ws: Error loading rsl
globus_soap_message_module: Unexpected jobName element in message
while looking for an end tag
This is my .rsl file:
On 4/23/07, Chris Samuel <csamuel at vpac.org> wrote:
> On Sat, 21 Apr 2007, Matias Alberto Gavinowich wrote:
> > Is there any way to get the job to be named something else than STDIN?
> > What are the possible workarounds? (I would choose the solution which
> > poses the least risk to my current globus environment).
> Hi Matias,
> This is from Graham Jenkins, one of our grid people, in response to your plea
> for help (thanks Graham!). I've copied him in on this.
> > Works fine at our place:
> > graham at sys09 /tmp > globus-job-run ng1/jobmanager-pbs /bin/sleep 1000
> > graham at edda /home/san04/graham> qstat |grep graham
> > 179232.edda-m Grid_ng1_ graham 00:00:00 R dque
> > This magic is accomplished in pbs.pm on our gateway machines, using the
> > lines:
> > chomp($submit_host = `/bin/hostname -s`);
> > print JOB '#PBS -N Grid_', $submit_host, "_",$description->jobname(), "\n";
> > It will be apparent that if a jobname description is supplied in the
> > Globus job, then it will be appended.
> How does that sound ?
> All the best,
> Christopher Samuel - (03)9925 4751 - VPAC Deputy Systems Manager
> Victorian Partnership for Advanced Computing http://www.vpac.org/
> Bldg 91, 110 Victoria Street, Carlton South, VIC 3053, Australia
More information about the torqueusers