Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Feb 13, 2017
1 parent 5d06015 commit 41f389a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
26 changes: 2 additions & 24 deletions manuals/en/main/configure.tex
Expand Up @@ -886,30 +886,6 @@ \subsubsection{Variable Expansion}
by using the \ilink{var command}{var}.
\paragraph{Variable Expansion on RunScripts}
At the configuration of RunScripts following variables can be used:
\begin{tabular}{p{2cm}p{7cm}}
\textbf{Variable} & \textbf{Description} \\
\parameter{\%c} & Client's Name\\
\parameter{\%d} & Director's Name\\
\parameter{\%e} & Job Exit Code\\
\parameter{\%i} & JobId\\
\parameter{\%j} & Unique JobId\\
\parameter{\%l} & Job Level\\
\parameter{\%n} & Unadorned Job Name\\
\parameter{\%r} & Recipients\\
\parameter{\%s} & Since Time\\
\parameter{\%b} & Job Bytes \\
\parameter{\%B} & Job Bytes in human readable format \\
\parameter{\%f} & Job Files \\
\parameter{\%t} & Job Type (Backup, ...)\\
\parameter{\%v} & Read Volume Name (only on Director)\\
\parameter{\%V} & Write Volume Name (only on Director)
\end{tabular}
\paragraph{Variable Expansion in Autochanger Commands}
Expand Down Expand Up @@ -948,7 +924,9 @@ \subsubsection{Variable Expansion}
\paragraph{Variable Expansion on RunScripts}
Variable Expansion on RunScripts is described at \linkResourceDirective{Dir}{Job}{Run Script}.
Expand Down
27 changes: 10 additions & 17 deletions manuals/en/main/director-resource-job-definitions.tex
Expand Up @@ -894,16 +894,11 @@
\defDirective{Dir}{Job}{Run}{}{}{%
\index[dir]{Clone a Job}%
The Run directive (not to be confused with the Run option in a
Schedule) allows you to start other jobs or to clone jobs. By using the
cloning keywords (see below), you can backup
the same data (or almost the same data) to two or more drives
at the same time. The {\bf job-name} is normally the same name
as the current Job resource (thus creating a clone). However, it
may be any Job name, so one job may start other related jobs.
Schedule) allows you to start other jobs or to clone the current jobs.

The part after the equal sign must be enclosed in double quotes,
and can contain any string or set of options (overrides) that you
can specify when entering the Run command from the console. For
can specify when entering the \bcommand{run}{} command from the console. For
example {\bf storage=DDS-4 ...}. In addition, there are two special
keywords that permit you to clone the current job. They are {\bf level=\%l}
and {\bf since=\%s}. The \%l in the level keyword permits
Expand All @@ -918,17 +913,15 @@
A cloned job will not start additional clones, so it is not
possible to recurse.

Please note that all cloned jobs, as specified in the Run directives are
submitted for running before the original job is run (while it is being
Jobs started by \linkResourceDirective{Dir}{Job}{Run}
are submitted for running before the original job (while it is being
initialized). This means that any clone job will actually start before
the original job, and may even block the original job from starting
until the original job finishes unless you allow multiple simultaneous
jobs. Even if you set a lower priority on the clone job, if no other
jobs are running, it will start before the original job.

If you are trying to prioritize jobs by using the clone feature (Run
directive), you will find it much easier to do using a \linkResourceDirective{Dir}{Job}{Run Script}
resource, or a \linkResourceDirective{Dir}{Job}{Run Before Job} directive.
the original job, and may even block the original job from starting.
It evens ignores \linkResourceDirective{Dir}{Job}{Priority}.

If you are trying to prioritize jobs,
you will find it much easier to do using a \linkResourceDirective{Dir}{Job}{Run Script}
resource or a \linkResourceDirective{Dir}{Job}{Run Before Job} directive.
}

\defDirective{Dir}{Job}{Run After Failed Job}{}{}{%
Expand Down

0 comments on commit 41f389a

Please sign in to comment.