Bacula-users

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

2010-03-12 04:16:41
Subject: Re: [Bacula-users] Maximum Concurrent Jobs in job definition
From: Matija Nalis <mnalis+bacula AT CARNet DOT hr>
To: Norberto Meijome <numardbsd AT gmail DOT com>
Date: Fri, 12 Mar 2010 10:13:49 +0100
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 ? 
Would it not be easier to just use "Allow Duplicate Jobs = no" ?

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



-- 
Matija Nalis
Odjel racunalno-informacijskih sustava i servisa                                
                                                      
Hrvatska akademska i istrazivacka mreza - CARNet 
Josipa Marohnica 5, 10000 Zagreb
tel. +385 1 6661 616, fax. +385 1 6661 766
www.CARNet.hr

------------------------------------------------------------------------------
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