lib/right_chimp/queue/ExecutionGroup.rb in right_chimp-2.1.22.2 vs lib/right_chimp/queue/ExecutionGroup.rb in right_chimp-2.1.24

- old
+ new

@@ -170,21 +170,21 @@ # def done? return ( get_jobs_by_status(Executor::STATUS_NONE).size == 0 && get_jobs_by_status(Executor::STATUS_RUNNING).size == 0 && - get_jobs_by_status(Executor::STATUS_DONE).size > 0 - ) + get_jobs_by_status(Executor::STATUS_DONE).size > 0 + ) end # # Is this execution group running anything? # def running? total_jobs_running = get_jobs_by_status(Executor::STATUS_NONE).size + - get_jobs_by_status(Executor::STATUS_RUNNING).size + - get_jobs_by_status(Executor::STATUS_RETRYING).size - return(total_jobs_running > 0) + get_jobs_by_status(Executor::STATUS_RUNNING).size + + get_jobs_by_status(Executor::STATUS_RETRYING).size + (total_jobs_running > 0) end # # Requeue all failed jobs #