Zitat von [email protected]:
Zitat von [email protected]:
Hello,
we need to run backup jobs with different priority for incremental
and full backups. Unfortunately i have no found any other place to
set priority beside the job/jobdefs resource. Is it possible at all
have different priority at job schedule?
It looks like there is something which indicates that priority
should or will be configurable in the "run" directive of the
scheduler.
In
https://github.com/bareos/bareos/blob/master/core/src/dird/scheduler_job_item_queue.cc
starting at line 96 we have
int priority = run != nullptr
? (run->Priority != 0 ? run->Priority : job->Priority)
: default_priority;
std::lock_guard<std::mutex> lg(impl_->mutex);
impl_->priority_queue.emplace(job, run, runtime, priority, job_trigger);
Can someone confirm that this should be usable and will maybe get in
the documentation someday?
Tested myself and the schedule run directive with priority override is
working fine, at least with Version 19.2. So only documentation for
this feature is missing:
Run = Level=Full Priority=15 Pool=SHORT-FULL fri at 19:15
Regards
Andi
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/20210720154718.Horde.WaMpt0HkurcYjSJ-M7o2lGY%40webmail.kwsoft.de.