lib/lazylead/schedule.rb in lazylead-0.10.3 vs lib/lazylead/schedule.rb in lazylead-0.10.4

- old
+ new

@@ -45,10 +45,14 @@ # like ll-xxx. def register(task) raise "ll-002: task can't be a null" if task.nil? @trigger.method(task.type).call(task.unit) do ActiveRecord::Base.connection_pool.with_connection do - ORM::VerboseTask.new(task, @log).exec + if task.props.key? "no_logs" + task.exec + else + ORM::VerboseTask.new(task, @log).exec + end end end @log.debug "Task scheduled: #{task}" end