help-gnubatch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gnubatch] Conditions with exported variables


From: John Collins (Xi Software Ltd)
Subject: Re: [help-gnubatch] Conditions with exported variables
Date: Fri, 10 Jun 2011 13:40:27 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10

On 09/06/11 21:50, Rommy Smith wrote:
Hello,

I hope somebody can either point me to the right direction or confirm if this is a bug.

Scenario:

The setup includes two hosts: hostA and hostB
There are two jobs: jobX and and jobY
jobX is submitted and executed on hostA, it sets variable jobX_exit with "-s 'jobX_exit=exitcode' \"

The variable is created with: /usr/local/bin/gbch-var -K -E -C -s 4 jobX_exit

The jobY is submitted with "gbch-rr -Q hostB" from hostA. It has condition  "-c 'jobX_exit<4' \"

After jobX is executed on hostA the variable jobX_exit is set to value 0 (confirmed on both hosts with gbch-vlist).

However jobY is never triggered on hostB, gbch-q shows "**Cond**" .
"V" in gbch-q shows hostA:jobX_exit    0   user user Export Cluster". Note, jobY does not have time spec.


P.S. When variable is created without -K (clustered flag) as:  /usr/local/bin/gbch-var -E -C -s 4 jobX_exit , its value never changes on hostB (at least according to gbch-vlist).

I'll have to look at it. In the new version which I promise to come back to next month or die trying I've got rid of "clustering" and made conditions, which can be arbitrarily complicated expressions with bits of variables do the job and with no host prefix it means the local version thus:

hostA:var1 > var2 + hostB:var3

would mean the same everywhere and would compare the local version of var2 (which need not be exported) with hostA:var1 and hostB:var3

--
John Collins address@hidden Xi Software Ltd www.xisl.com

Phone: +44 (0)1707 886110 Home Phone: +44 (0)1707 883174
Mobile: +44 (0)7958 387247 (address@hidden)

Trading Address 3 Mandeville Rise, Welwyn Garden City, Herts, AL8 7JT, UK

Registered in England Company Number 01977148 VAT GB 403 9239 64 R/O: 2 Mill Road, Haverhill, Suffolk, CB9 8BD

reply via email to

[Prev in Thread] Current Thread [Next in Thread]