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?

Thanks

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/20210719144453.Horde.ldwLTpdPXTDGMz4_uwdT2bu%40webmail.kwsoft.de.

Reply via email to