Bacula-users

Re: [Bacula-users] Maximum Concurrent Jobs in job definition

2010-03-21 01:51:31
Subject: Re: [Bacula-users] Maximum Concurrent Jobs in job definition
From: Norberto Meijome <numardbsd AT gmail DOT com>
To: Matija Nalis <mnalis+bacula AT CARNet DOT hr>
Date: Sun, 21 Mar 2010 16:49:27 +1100
On Fri, 12 Mar 2010 10:13:49 +0100
Matija Nalis <mnalis+bacula AT CARNet DOT hr> wrote:

> On Fri, Mar 12, 2010 at 11:21:13AM +1100, Norberto Meijome wrote:
> > On 11 March 2010 13:40, Norberto Meijome <numardbsd AT gmail DOT com> wrote:
> > 
> > > Hi everyone,
> > > I have a job that runs very frequently, and successive runs take different
> > > sets of data (as determined by a pre-job script). To avoid problems, my
> > > pre-job script sets a lock file and the post-clears it.
> > >
> > > When I configure my director for concurrent jobs = 2, i sometimes get 2 of
> > > these jobs trying to run in parallel (which is understandable, many times
> > > a run has more data than the average and is still running while the next
> > > one is due). My pre-script will then cancel the execution of the 2nd
> > > script (because it finds the lock file). Great.
> 
> 
> Why the pre/post locking script ? 

Because I prefer explicitly checking for the errors I know i need to handle :) 

> Would it not be easier to just use "Allow Duplicate Jobs = no" ?

I reckon it would be. I didn't change this value, and 
http://www.bacula.org/5.0.x-manuals/en/main/main/New_Features_in_3_0_0.html#SECTION007101000000000000000
 says it defaults to NO. 

Which is why I make sure via my own code things work properly ;)

I will review the whole thing soon and see whether i've missed anything,
thanks!
B

> 
> See
> http://www.bacula.org/en/dev-manual/New_Features.html#SECTION003101000000000000000



_________________________
{Beto|Norberto|Numard} Meijome

"Egotism is the anesthetic that dulls the pain of stupidity."
  Frank Leahy

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users