when a job is canceled, its RunScripts (with "When = After") are not executed.
This makes it difficult to trigger any process after job cancellation.
While the documentation does not clearly state that the scripts are executed,
the description of the exit codes suggests that -- it says that %e may, e.g.,
contain the string "Canceled". This is, of course, only true if canceled jobs
run their runscripts at all.
The attached (micro-)patch adds the call to "run_scripts" identically to the
way it is done in the "job_thread" function to the "cancel_job" code.
a) Do you approve of calling the run scripts there at all? "Runs on Failure"
b) Do you see any problems with this code modification (other than the change
of beahvior, that is)
c) Feel free to include the patch in bacula.
Collax GmbH . Basler Str. 115a . 79115 Freiburg . Germany
p: +49 (0) 89-990 157-28 http://www.collax.com
Geschäftsführer: Falk Birkner, Ralf Elias
AG München HRB 173695. Ust.-IdNr: DE270819312
Get latest updates about Open Source Projects, Conferences and News.