Override Job priority

64 views
Skip to first unread message

lst_...@kwsoft.de

unread,
Jul 13, 2021, 11:48:19 AM7/13/21
to bareos-users
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?

Thanks

Andi


lst_...@kwsoft.de

unread,
Jul 19, 2021, 10:44:57 AM7/19/21
to bareos...@googlegroups.com
Zitat von lst_...@kwsoft.de:
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?

Thanks

Andi


lst_...@kwsoft.de

unread,
Jul 20, 2021, 11:47:22 AM7/20/21
to bareos...@googlegroups.com

Zitat von lst_...@kwsoft.de:
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

Reply all
Reply to author
Forward
0 new messages