On Thursday 06 July 2006 11:30, le dahut wrote: > I finally decided to use my own "mail system" (which naturally uses > "bsmtp" ;-) ), which sends short messages, in french ;-). > This way I can catch all events directly in the python code. > > Maybe "Canceled" could be added in the message types (info, warning, > error, fatal, terminate) and also be logged. > > The problem is that the python script can cancel a job automatically > with 'job.cancel(JobId)'. > For example, if python script tests for sufficient disk space and there > isn't, it can do a job.cancel(JobId). If done this way, nothing is > logged and user won't receive any message that the backup has failed.
I'm not totally convinced that it is necessary to add any new code for several reasons: 1. Python can put messages in the Job Report, so when you cancel a job with Python, you can first add a message saying that Python is canceling the job. 2. All actions, including canceling, that cause the job to stop *should* appear in the Job log as long as you have INFO messages logged. If someone can give me a concrete case of this not working, I'll try to track down where a message has been overlooked. > > > K. > > Ryan Novosielski a écrit : > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > I already get messages when jobs are canceled. I'm not sure what's doing > > it, but I receive all messages. You might want to check the listings for > > the different types. > > > > le dahut wrote: > >> Hello, > >> > >> Is there a way to get an email when a job is canceled ? > >> > >> My actual configuration is : > >> mail = [EMAIL PROTECTED] = error, fatal, mount > >> > >> Could it be something like : > >> mail = [EMAIL PROTECTED] = error, fatal, mount, canceled > >> ? > >> > >> K. > >> > >> Using Tomcat but need to do more? Need to support web services, > >> security? Get stuff done quickly with pre-integrated technology to make > >> your job easier Download IBM WebSphere Application Server v.1.0.1 based > >> on Apache Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Bacula-users mailing list > >> Bacula-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > - -- > > ---- _ _ _ _ ___ _ _ _ > > > > |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III > > |$&| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) > > > > \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2.2 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFEq+cYmb+gadEcsb4RArMQAKCJMV6da5JxAgGx8P7Y6IdLyuR0LgCgiqYE > > 1CgsvFT7Swb5wMB8D2WRQLc= > > =h9+v > > -----END PGP SIGNATURE----- > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users