Module: PerfectQueue
- Defined in:
- lib/perfectqueue/task.rb,
lib/perfectqueue.rb,
lib/perfectqueue/error.rb,
lib/perfectqueue/model.rb,
lib/perfectqueue/queue.rb,
lib/perfectqueue/client.rb,
lib/perfectqueue/engine.rb,
lib/perfectqueue/runner.rb,
lib/perfectqueue/worker.rb,
lib/perfectqueue/backend.rb,
lib/perfectqueue/version.rb,
lib/perfectqueue/supervisor.rb,
lib/perfectqueue/application.rb,
lib/perfectqueue/task_status.rb,
lib/perfectqueue/task_monitor.rb,
lib/perfectqueue/blocking_flag.rb,
lib/perfectqueue/signal_thread.rb,
lib/perfectqueue/task_metadata.rb,
lib/perfectqueue/daemons_logger.rb,
lib/perfectqueue/application/base.rb,
lib/perfectqueue/application/router.rb,
lib/perfectqueue/backend/rdb_compat.rb,
lib/perfectqueue/application/decider.rb,
lib/perfectqueue/application/dispatch.rb,
lib/perfectqueue/multiprocess/child_process.rb,
lib/perfectqueue/multiprocess/fork_processor.rb,
lib/perfectqueue/multiprocess/thread_processor.rb,
lib/perfectqueue/multiprocess/child_process_monitor.rb
Overview
PerfectQueue
Copyright © 2012-2013 Sadayuki Furuhashi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing and
limitations under the License.
Defined Under Namespace
Modules: Application, Backend, BackendHelper, IdempotentError, Model, Multiprocess, TaskMetadataAccessors, TaskMonitorHook, TaskStatus Classes: AcquiredTask, AlreadyExistsError, AlreadyFinishedError, BlockingFlag, CancelRequestedError, Client, ConfigError, DaemonsLogger, Engine, GracefulProcessStopError, IdempotentAlreadyExistsError, IdempotentAlreadyFinishedError, IdempotentNotFoundError, ImmediateProcessStopError, NotFoundError, NotSupportedError, PreemptedError, ProcessStopError, Queue, Runner, SignalThread, Supervisor, Task, TaskError, TaskMetadata, TaskMonitor, TaskWithMetadata, Worker
Constant Summary collapse
- VERSION =
"0.8.50"
Class Method Summary collapse
Class Method Details
.open(config, &block) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/perfectqueue.rb', line 52 def self.open(config, &block) c = Client.new(config) begin q = Queue.new(c) if block block.call(q) else c = nil return q end ensure c.close if c end end |