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

[Condor-users] USER_JOB_WRAPPER



Dear Ian,

 

I am trying using the USER_JOB_WRAPPER variable.

I have defined this variable in the global configuration file (condor_config) of the execute machine. Is this correct?

 

Could you please also confirm if the following is correct,

If I define in the .sub file transfer_executable = true, then the executable file will be transferred to the var/lib/condor/execute directory of the execute machine.

Is this correct?

 

Will the executable file remain in the execute directory until it is executed?

Will the executable file be deleted if for some reason it cannot be executed?

 

Thanks,

Best regards,

Sónia

 

 

Från: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] För Ian Chesal
Skickat: den 21 oktober 2010 18:59
Till: Condor-Users Mail List
Ämne: Re: [Condor-users] Condor pool = Windows + Linux ?

 

On Thu, Oct 21, 2010 at 12:15 PM, Sónia Liléo <sonia.lileo@xxxxx> wrote:

Thanks  Ian!

Is it possible to define on some way in the .sub file or in the condor_config which program should be used by the execute machine to run the executable file?

 

It is. You can use:

 

executable = myexe.$(OpSys)

 

And keep an myexe.WINNT50 and myexe.LINUX set of executables on disk. But this is not really a very easy route to go down. Most would instead limit their submission to run only on one operating system or the other with:

 

requirements = OpSys == "linux"

 

-or-

 

requirements = OpSys == "winnt50" || OpSys == "winnt51"

 

Is the executable file transferred/copied by Condor from the submitter to the  /var/lib/condor/execute directory in the execute nodes?

 

It is if you tell Condor that's what you want it to do. See transfer_executable in the condor_submit documentation: http://www.cs.wisc.edu/condor/manual/v7.4/condor_submit.html#72716

 

How does Condor run the executable file?

 

It depends on the OS and what options you've given Condor (run_as_owner changes the behaviour on Windows for example).

 

Can we define in the condor_config how Condor should execute the job?

 

You can write anything you want for 'executable =' in the submit ticket. You can also write execution wrappers that Condor will call to execute your job (see USER_JOB_WRAPPER here: http://www.cs.wisc.edu/condor/manual/v7.4/3_3Configuration.html#17901).

 

- Ian