forked from the-distro/ofborg
Load the evaluation strategy in evaluation
This commit is contained in:
parent
4665ea2bbc
commit
721276fbd1
|
@ -129,6 +129,12 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for EvaluationWorker<E>
|
||||||
let issue: Issue;
|
let issue: Issue;
|
||||||
let auto_schedule_build_archs: Vec<systems::System>;
|
let auto_schedule_build_archs: Vec<systems::System>;
|
||||||
|
|
||||||
|
let mut evaluation_strategy: Box<eval::EvaluationStrategy> = if job.is_nixpkgs() {
|
||||||
|
Box::new(eval::NixpkgsStrategy::new())
|
||||||
|
} else {
|
||||||
|
Box::new(eval::GenericStrategy::new())
|
||||||
|
};
|
||||||
|
|
||||||
match issue_ref.get() {
|
match issue_ref.get() {
|
||||||
Ok(iss) => {
|
Ok(iss) => {
|
||||||
if iss.state == "closed" {
|
if iss.state == "closed" {
|
||||||
|
|
Loading…
Reference in a new issue