mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
catch errors with titles, run sidekiq jobs immediately in development
This commit is contained in:
parent
3fa67447bb
commit
c93d0bbc7f
2 changed files with 23 additions and 5 deletions
|
@ -54,6 +54,21 @@ Sidekiq.configure_client do |config|
|
|||
config.redis = sidekiq_redis_config
|
||||
end
|
||||
|
||||
# :nocov:
|
||||
if ENV['RACK_ENV'] == 'development'
|
||||
# Run async jobs immediately in development.
|
||||
module Sidekiq
|
||||
module Worker
|
||||
module ClassMethods
|
||||
def perform_async(*args)
|
||||
self.new.perform *args
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
# :nocov:
|
||||
|
||||
# :nocov:
|
||||
if $config['pubsub_url']
|
||||
$pubsub_pool = ConnectionPool.new(size: 10, timeout: 5) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue