Module: SolidQueue

Extended by:
SolidQueue
Included in:
SolidQueue
Defined in:
lib/solid_queue.rb,
lib/solid_queue/cli.rb,
lib/solid_queue/pool.rb,
lib/solid_queue/timer.rb,
lib/solid_queue/engine.rb,
lib/solid_queue/worker.rb,
lib/solid_queue/version.rb,
lib/solid_queue/scheduler.rb,
app/models/solid_queue/job.rb,
lib/solid_queue/dispatcher.rb,
lib/solid_queue/supervisor.rb,
app/models/solid_queue/pause.rb,
app/models/solid_queue/queue.rb,
lib/solid_queue/app_executor.rb,
app/models/solid_queue/record.rb,
lib/solid_queue/configuration.rb,
lib/solid_queue/processes/base.rb,
lib/solid_queue/lifecycle_hooks.rb,
app/models/solid_queue/execution.rb,
app/models/solid_queue/semaphore.rb,
lib/solid_queue/supervisor/pidfile.rb,
lib/solid_queue/supervisor/signals.rb,
lib/solid_queue/supervisor/pidfiled.rb,
app/models/solid_queue/job/clearable.rb,
app/models/solid_queue/job/retryable.rb,
app/models/solid_queue/job/executable.rb,
app/models/solid_queue/job/recurrable.rb,
app/models/solid_queue/queue_selector.rb,
app/models/solid_queue/recurring_task.rb,
app/models/solid_queue/job/schedulable.rb,
app/models/solid_queue/ready_execution.rb,
lib/solid_queue/supervisor/maintenance.rb,
app/models/solid_queue/failed_execution.rb,
app/models/solid_queue/process/executor.rb,
app/models/solid_queue/process/prunable.rb,
app/models/solid_queue/blocked_execution.rb,
app/models/solid_queue/recurring_execution.rb,
app/models/solid_queue/scheduled_execution.rb,
app/models/solid_queue/execution/dispatching.rb,
lib/solid_queue/processes/process_exit_error.rb,
lib/solid_queue/scheduler/recurring_schedule.rb,
lib/solid_queue/processes/process_pruned_error.rb,
app/models/solid_queue/execution/job_attributes.rb,
app/models/solid_queue/job/concurrency_controls.rb,
app/models/solid_queue/recurring_task/arguments.rb,
lib/solid_queue/processes/process_missing_error.rb,
lib/solid_queue/dispatcher/concurrency_maintenance.rb

Defined Under Namespace

Modules: AppExecutor, LifecycleHooks, Processes, Timer Classes: BlockedExecution, ClaimedExecution, Cli, Configuration, Dispatcher, Engine, Execution, FailedExecution, InstallGenerator, Job, LogSubscriber, Pause, Pool, Process, Queue, QueueSelector, ReadyExecution, Record, RecurringExecution, RecurringJob, RecurringTask, ScheduledExecution, Scheduler, Semaphore, Supervisor, Worker

Constant Summary collapse

DEFAULT_LOGGER =
ActiveSupport::Logger.new($stdout)
VERSION =
"1.1.0"

Instance Method Summary collapse

Instance Method Details

#instrument(channel, **options, &block) ⇒ Object



66
67
68
# File 'lib/solid_queue.rb', line 66

def instrument(channel, **options, &block)
  ActiveSupport::Notifications.instrument("#{channel}.solid_queue", **options, &block)
end

#on_worker_startObject



46
47
48
# File 'lib/solid_queue.rb', line 46

def on_worker_start(...)
  Worker.on_start(...)
end

#on_worker_stopObject



50
51
52
# File 'lib/solid_queue.rb', line 50

def on_worker_stop(...)
  Worker.on_stop(...)
end

#preserve_finished_jobs?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/solid_queue.rb', line 62

def preserve_finished_jobs?
  preserve_finished_jobs
end

#silence_polling?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/solid_queue.rb', line 58

def silence_polling?
  silence_polling
end

#supervisor?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/solid_queue.rb', line 54

def supervisor?
  supervisor
end