grisu / gricli

Grisu commandline client
7 stars 2 forks source link

email is sent if options are set to false #237

Open sina-masoud-ansari opened 12 years ago

sina-masoud-ansari commented 12 years ago

Scheduler will send emails if an email address has been set and the email_on_start and email_on_finish are both set to false.

vladimir-mencl-eresearch commented 12 years ago

Hi, this is not really specific to Gricli - just a little bit.

The extensions used by Grisu for notification emails use four custom extensions to the RSL:

( email_on_abort = "yes" ) ( email_on_execution = "yes" ) ( email_on_termination = "yes" ) ( email_address = "vladimir.mencl@canterbury.ac.nz" )

The "Start" and "Finish" buttons control the email_on_execution and email_on_termination flags.

Grisu always sets email_on_abort to "yes".

It is then up to the module translating this to the Local Resource Manager (LRM) - either PBS or LoadLeveler in our case.

And up to what options the underlying LRM really offers.

Because the module always receive the email_on_abort, it has to set some notification options - and that depends on what the underlying LRM offers.

What cluster are you getting this on? (And what LRM)?

BTW, I have just coded this into my loadleveler.pm - so I properly translate these settings into LoadLeveler. Happy to share the code.

Cheers, Vlad

sina-masoud-ansari commented 12 years ago

Cheers Vlad,

The emails come from both LL (uoa.nesi.org.nz) and PBS (ceres.auckland.ac.nz)

PBS Job Id: 161955.cluster.local Job Name: lsdyna Exec host: compute-44/11+compute-44/2 Execution terminated Exit_status=0 resources_used.cput=00:00:00 resources_used.mem=0kb resources_used.vmem=0kb resources_used.walltime=00:00:00

LoadLeveler Job Step: login1-p.48603.0 Executable: /home/mfel395/.globus/job/pandora/16217849902262910601.17994140295620493186/scheduler_loadleveler_job_script Executable arguments: State for machine: compute-a1-051-p LoadL_starter: The program, scheduler_loadleveler_job_script, exited normally and returned an exit code of 0.

This job step was dispatched to run 1 time(s). This job step was rejected by Starter 0 time(s). Submitted at: Thu Apr 26 17:27:39 2012 Started at: Thu Apr 26 17:27:39 2012 Exited at: Thu Apr 26 17:29:19 2012 Real Time: 0 00:01:40 Job Step User Time: 0 00:00:00 Job Step System Time: 0 00:00:00 Total Job Step Time: 0 00:00:00

  Starter User Time:   0 00:00:00
Starter System Time:   0 00:00:00
 Total Starter Time:   0 00:00:00

Canterbury seems to be ok

vladimir-mencl-eresearch commented 12 years ago

Hi Sina,

Glad to hear it's working fine at Canterbury.

I'm happy to share the extra code I developed for LoadLeleveler to handle this (email address & notification options).

Yuriy (@yuriyh) can get these (via GridFTP) from gram5bgp.canterbury.ac.nz:/usr/share/perl5/vendor_perl/Globus/GRAM/JobManager/loadleveler.pm

Cheers, Vlad

makkus commented 12 years ago

Sina, does that work now?