@@ -86,6 +86,7 @@ public class FrameCompleteHandler {
86
86
private WhiteboardDao whiteboardDao ;
87
87
private ServiceDao serviceDao ;
88
88
private ShowDao showDao ;
89
+ private Environment env ;
89
90
90
91
/*
91
92
* The last time a proc was unbooked for subscription or job balancing.
@@ -122,6 +123,7 @@ public void setSatisfyDependOnlyOnFrameSuccess(boolean satisfyDependOnlyOnFrameS
122
123
123
124
@ Autowired
124
125
public FrameCompleteHandler (Environment env ) {
126
+ this .env = env ;
125
127
satisfyDependOnlyOnFrameSuccess = env .getProperty (
126
128
"depend.satisfy_only_on_frame_success" , Boolean .class , true );
127
129
}
@@ -460,7 +462,7 @@ else if (report.getHost().getNimbyLocked()) {
460
462
&& dispatchSupport .isCueBookable (job )) {
461
463
462
464
bookingQueue .execute (new DispatchBookHost (hostManager
463
- .getDispatchHost (proc .getHostId ()), dispatcher ));
465
+ .getDispatchHost (proc .getHostId ()), dispatcher , env ));
464
466
}
465
467
466
468
if (job .state .equals (JobState .FINISHED )) {
@@ -509,7 +511,7 @@ else if (report.getHost().getNimbyLocked()) {
509
511
hostManager .getDispatchHost (proc .getHostId ());
510
512
511
513
bookingQueue .execute (
512
- new DispatchBookHost (host , dispatcher ));
514
+ new DispatchBookHost (host , dispatcher , env ));
513
515
return ;
514
516
}
515
517
} catch (JobLookupException e ) {
@@ -538,7 +540,7 @@ else if (report.getHost().getNimbyLocked()) {
538
540
dispatchSupport .strandCores (host , stranded_cores );
539
541
dispatchSupport .unbookProc (proc );
540
542
bookingQueue .execute (new DispatchBookHost (host , job ,
541
- dispatcher ));
543
+ dispatcher , env ));
542
544
return ;
543
545
}
544
546
}
0 commit comments