Fix setting of hub jo count. #626
This commit is contained in:
parent
e6d3043556
commit
840cbe2463
2 changed files with 3 additions and 1 deletions
|
|
@ -71,6 +71,8 @@ class HubDistributor
|
||||||
|
|
||||||
// check if hub is in hash. if not, hub has no jobs
|
// check if hub is in hash. if not, hub has no jobs
|
||||||
// but should still be added to results
|
// but should still be added to results
|
||||||
|
// TODO: rename the jo_count key so that it won't collide
|
||||||
|
// later on with the dispatch JO page.
|
||||||
if ($hub_jo_count != null)
|
if ($hub_jo_count != null)
|
||||||
{
|
{
|
||||||
$arranged_hubs[] = [
|
$arranged_hubs[] = [
|
||||||
|
|
|
||||||
|
|
@ -2121,7 +2121,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
$hub['redis_jo_count'] = $hub['jo_count'];
|
$hub['redis_jo_count'] = $hub['jo_count'];
|
||||||
//$hub['redis_jo_count'] = 0;
|
//$hub['redis_jo_count'] = 0;
|
||||||
// $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
// $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||||
//$hub['jo_count'] = $hub['jo_count'];
|
$hub['jo_count'] = $hub['redis_jo_count'];
|
||||||
|
|
||||||
// check for rejection
|
// check for rejection
|
||||||
$hub['flag_rejected'] = false;
|
$hub['flag_rejected'] = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue