lib/right_chimp/queue/ChimpQueue.rb in right_chimp-1.1.1 vs lib/right_chimp/queue/ChimpQueue.rb in right_chimp-1.1.2
- old
+ new
@@ -46,16 +46,9 @@
#
# Push a task into the queue
#
def push(g, w)
- if w.exec.right_script && w.exec.right_script.kind_of?(Hash)
- Log.debug "Pushing job '#{w.exec.right_script['name']}' into group '#{g}'"
- if w.status == Executor::STATUS_HOLDING
- Log.info "Holding job '#{w.exec.right_script['name']}'"
- end
- end
-
raise "no group specified" unless g
create_group(g) if not ChimpQueue[g]
ChimpQueue[g].push(w)
end