sidejobs 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +80 -0
- data/Rakefile +18 -0
- data/lib/generators/sidejobs/install_generator.rb +24 -0
- data/lib/generators/sidejobs/templates/configuration.rb +7 -0
- data/lib/generators/sidejobs/templates/migration.rb +25 -0
- data/lib/sidejobs.rb +34 -0
- data/lib/sidejobs/configuration.rb +7 -0
- data/lib/sidejobs/daemon.rb +104 -0
- data/lib/sidejobs/extensions/active_job/queue_adapter.rb +47 -0
- data/lib/sidejobs/job.rb +21 -0
- data/lib/sidejobs/processor.rb +23 -0
- data/lib/sidejobs/queue.rb +24 -0
- data/lib/sidejobs/railtie.rb +15 -0
- data/lib/sidejobs/version.rb +3 -0
- data/lib/tasks/sidejobs.rake +11 -0
- data/test/daemon_test.rb +71 -0
- data/test/dummy/Rakefile +5 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/charge_subscriptions_job.rb +8 -0
- data/test/dummy/app/jobs/clear_guest_users_job.rb +8 -0
- data/test/dummy/app/jobs/send_newsletters_job.rb +8 -0
- data/test/dummy/app/jobs/share_products_job.rb +8 -0
- data/test/dummy/app/jobs/update_exchanges_job.rb +8 -0
- data/test/dummy/app/mailers/user_mailer.rb +7 -0
- data/test/dummy/app/views/layouts/application.html.erb +12 -0
- data/test/dummy/app/views/user_mailer/invite.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +25 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +7 -0
- data/test/dummy/config/database.yml.travis +12 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +49 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +45 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/sidejobs.rb +7 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20161022211612_create_sidejobs.rb +25 -0
- data/test/dummy/db/schema.rb +37 -0
- data/test/dummy/log/development.log +228 -0
- data/test/dummy/log/sidejobs.log +1782 -0
- data/test/dummy/log/test.log +14856 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/generator_test.rb +20 -0
- data/test/processor_test.rb +49 -0
- data/test/queue_test.rb +69 -0
- data/test/test_helper.rb +14 -0
- metadata +212 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
|
43
|
+
# Set activejob adapter.
|
44
|
+
config.active_job.queue_adapter = :sidejobs
|
45
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: ed24994bc56ed26e162af469d5bcc0b7e9bd3ce6aad6613e2415d07c459264c337ecde0a8a346137f6647ddbb8a19bbe4c3ca4428a08e2656b098b6c2131ef15
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 68a2537b2e96696ba28be32feb40fcbd35d7783afbcedf2139f054b1d79ffc31c1f26a9bf9a916cb67f191a6c69a3660878d825cc888c2598a15ab779df6f10c
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreateSidejobs < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :sidejobs do |t|
|
4
|
+
if ActiveRecord::Base.connection_config[:adapter] == 'postgresql'
|
5
|
+
t.jsonb :data
|
6
|
+
else
|
7
|
+
t.string :data
|
8
|
+
end
|
9
|
+
t.string :queue
|
10
|
+
t.string :status, default: 'pending'
|
11
|
+
t.integer :priority, default: 0
|
12
|
+
t.integer :attempts, default: 0
|
13
|
+
t.text :error
|
14
|
+
t.datetime :failed_at
|
15
|
+
t.datetime :completed_at
|
16
|
+
t.datetime :processed_at
|
17
|
+
t.datetime :scheduled_at
|
18
|
+
|
19
|
+
t.timestamps null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
add_index :sidejobs, %i(status scheduled_at)
|
23
|
+
add_index :sidejobs, :priority
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20161022211612) do
|
15
|
+
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
|
19
|
+
create_table "sidejobs", force: :cascade do |t|
|
20
|
+
t.jsonb "data"
|
21
|
+
t.string "queue"
|
22
|
+
t.string "status", default: "pending"
|
23
|
+
t.integer "priority", default: 0
|
24
|
+
t.integer "attempts", default: 0
|
25
|
+
t.text "error"
|
26
|
+
t.datetime "failed_at"
|
27
|
+
t.datetime "completed_at"
|
28
|
+
t.datetime "processed_at"
|
29
|
+
t.datetime "scheduled_at"
|
30
|
+
t.datetime "created_at", null: false
|
31
|
+
t.datetime "updated_at", null: false
|
32
|
+
end
|
33
|
+
|
34
|
+
add_index "sidejobs", ["priority"], name: "index_sidejobs_on_priority", using: :btree
|
35
|
+
add_index "sidejobs", ["status", "scheduled_at"], name: "index_sidejobs_on_status_and_scheduled_at", using: :btree
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
[1m[36m (31.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateSidejobs (20161022211612)
|
5
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6
|
+
[1m[36m (26.9ms)[0m [1mCREATE TABLE "sidejobs" ("id" serial primary key, "data" jsonb, "queue" character varying, "status" character varying, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "error" text, "failed_at" timestamp, "performed_at" timestamp, "scheduled_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
7
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
|
8
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")[0m
|
9
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
|
10
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
11
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
12
|
+
[1m[36m (2.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
13
|
+
FROM pg_constraint c
|
14
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
15
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
16
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
17
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
18
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
19
|
+
WHERE c.contype = 'f'
|
20
|
+
AND t1.relname = 'sidejobs'
|
21
|
+
AND t3.nspname = ANY (current_schemas(false))
|
22
|
+
ORDER BY c.conname
|
23
|
+
[0m
|
24
|
+
[1m[36mSidejobs::Job Load (1.8ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 22:26:55.566317' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
25
|
+
[1m[35mSidejobs::Job Load (0.4ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 22:27:05.597745' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
26
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 22:27:15.600056' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
27
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 22:27:25.614027' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
28
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 23:01:42.735657' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
29
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-22 23:01:52.746468' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
30
|
+
[1m[36mSidejobs::Job Load (0.8ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:37:50.157468' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
31
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:00.168321' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
32
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:10.170088' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
33
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:20.173080' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
34
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:30.174826' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
35
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:40.178087' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
36
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:50.181077' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
37
|
+
[1m[36mSidejobs::Job Load (0.5ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:38:59.492882' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
38
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:09.503248' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
39
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:19.507336' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
40
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:29.511222' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
41
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:39.516704' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
42
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:49.520536' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
43
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:39:59.526655' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
44
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:40:09.532315' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
45
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:40:19.540348' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
46
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:40:29.543949' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
47
|
+
[1m[36mSidejobs::Job Load (0.5ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:40:49.905100' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
48
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:40:59.913945' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
49
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:09.919724' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
50
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:19.924642' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
51
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:29.930633' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
52
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:39.933339' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
53
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:49.934999' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
54
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:41:59.937023' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
55
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:42:09.941927' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
56
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:42:19.945347' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
57
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:42:29.947816' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
58
|
+
[1m[36mSidejobs::Job Load (0.7ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:42:43.479949' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
59
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:42:53.495158' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
60
|
+
[1m[36mSidejobs::Job Load (1.1ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:03.497638' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
61
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:13.500788' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
62
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:23.502314' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
63
|
+
[1m[35mSidejobs::Job Load (0.4ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:33.504578' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
64
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:43.506443' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
65
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:43:53.508486' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
66
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:03.512337' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
67
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:13.514716' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
68
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:23.516547' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
69
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:33.518587' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
70
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:43.524827' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
71
|
+
[1m[36mSidejobs::Job Load (1.0ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:44:55.748309' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
72
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:05.770490' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
73
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:15.773354' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
74
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:25.775509' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
75
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:35.777784' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
76
|
+
[1m[35mSidejobs::Job Load (0.4ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:45.779854' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
77
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:45:55.782119' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
78
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:05.783746' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
79
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:15.785725' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
80
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:25.788610' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
81
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:35.791351' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
82
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:45.793684' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
83
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:46:55.568380' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
84
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:47:05.584040' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
85
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:47:15.587053' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
86
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:47:49.988289' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
87
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:00.006185' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
88
|
+
[1m[36mSidejobs::Job Load (0.5ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:08.127890' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
89
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:18.138077' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
90
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:28.140198' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
91
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:38.142397' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
92
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:48.144143' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
93
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:58.146296' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
94
|
+
[1m[36mSidejobs::Job Load (0.5ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:48:58.935288' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
95
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:08.946625' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
96
|
+
[1m[36mSidejobs::Job Load (2.0ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:15.254718' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
97
|
+
[1m[35mSidejobs::Job Load (0.5ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:25.287987' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
98
|
+
[1m[36mSidejobs::Job Load (1.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:30.216926' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
99
|
+
[1m[35mSidejobs::Job Load (0.8ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:40.236912' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
100
|
+
[1m[36mSidejobs::Job Load (0.7ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:49:50.239710' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
101
|
+
[1m[35mSidejobs::Job Load (1.0ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:00.241922' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
102
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:10.244797' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
103
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:20.247671' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
104
|
+
[1m[36mSidejobs::Job Load (0.6ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:30.252234' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
105
|
+
[1m[35mSidejobs::Job Load (0.4ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:39.826743' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
106
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:49.829253' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
107
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:50:59.831364' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
108
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:09.833643' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
109
|
+
[1m[35mSidejobs::Job Load (0.4ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:19.840269' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
110
|
+
[1m[36mSidejobs::Job Load (0.5ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:29.842722' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
111
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:39.845384' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
112
|
+
[1m[36mSidejobs::Job Load (0.4ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:49.848088' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
113
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:51:59.850866' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
114
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:09.853862' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
115
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:19.860374' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
116
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:29.862135' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
117
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:39.868353' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
118
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:49.874601' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
119
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:52:59.876754' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
120
|
+
[1m[36mSidejobs::Job Load (0.3ms)[0m [1mSELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:53:09.878949' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50[0m [["status", "pending"]]
|
121
|
+
[1m[35mSidejobs::Job Load (0.3ms)[0m SELECT "sidejobs".* FROM "sidejobs" WHERE "sidejobs"."status" = $1 AND (scheduled_at <= '2016-10-23 04:53:19.881061' OR scheduled_at IS NULL) ORDER BY "sidejobs"."priority" DESC LIMIT 50 [["status", "pending"]]
|
122
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
123
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
124
|
+
Migrating to CreateSidejobs (20161022211612)
|
125
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
126
|
+
[1m[35m (18.8ms)[0m DROP INDEX "index_sidejobs_on_priority"
|
127
|
+
[1m[36m (0.4ms)[0m [1mDROP INDEX "index_sidejobs_on_status_and_scheduled_at"[0m
|
128
|
+
[1m[35m (1.2ms)[0m DROP TABLE "sidejobs"
|
129
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161022211612"]]
|
130
|
+
[1m[35m (26.2ms)[0m COMMIT
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
133
|
+
Migrating to CreateSidejobs (20161022211612)
|
134
|
+
[1m[35m (0.2ms)[0m BEGIN
|
135
|
+
[1m[36m (25.2ms)[0m [1mCREATE TABLE "sidejobs" ("id" serial primary key, "data" jsonb, "queue" character varying, "status" character varying DEFAULT 'pending', "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "error" text, "failed_at" timestamp, "completed_at" timestamp, "scheduled_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
136
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
|
137
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")[0m
|
138
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
|
139
|
+
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
140
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
141
|
+
[1m[36m (2.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
142
|
+
FROM pg_constraint c
|
143
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
144
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
145
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
146
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
147
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
148
|
+
WHERE c.contype = 'f'
|
149
|
+
AND t1.relname = 'sidejobs'
|
150
|
+
AND t3.nspname = ANY (current_schemas(false))
|
151
|
+
ORDER BY c.conname
|
152
|
+
[0m
|
153
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
154
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
155
|
+
Migrating to CreateSidejobs (20161022211612)
|
156
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
157
|
+
[1m[35m (0.8ms)[0m DROP INDEX "index_sidejobs_on_priority"
|
158
|
+
[1m[36m (9.7ms)[0m [1mDROP INDEX "index_sidejobs_on_status_and_scheduled_at"[0m
|
159
|
+
[1m[35m (6.7ms)[0m DROP TABLE "sidejobs"
|
160
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161022211612"]]
|
161
|
+
[1m[35m (14.8ms)[0m COMMIT
|
162
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
164
|
+
Migrating to CreateSidejobs (20161022211612)
|
165
|
+
[1m[35m (0.2ms)[0m BEGIN
|
166
|
+
[1m[36m (10.6ms)[0m [1mCREATE TABLE "sidejobs" ("id" serial primary key, "data" jsonb, "queue" character varying, "status" character varying DEFAULT 'pending', "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "error" text, "failed_at" timestamp, "completed_at" timestamp, "processed_at" timestamp, "scheduled_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
167
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
|
168
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")[0m
|
169
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
|
170
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
171
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
172
|
+
[1m[36m (2.2ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
173
|
+
FROM pg_constraint c
|
174
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
175
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
176
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
177
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
178
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
179
|
+
WHERE c.contype = 'f'
|
180
|
+
AND t1.relname = 'sidejobs'
|
181
|
+
AND t3.nspname = ANY (current_schemas(false))
|
182
|
+
ORDER BY c.conname
|
183
|
+
[0m
|
184
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
185
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
186
|
+
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
187
|
+
FROM pg_constraint c
|
188
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
189
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
190
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
191
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
192
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
193
|
+
WHERE c.contype = 'f'
|
194
|
+
AND t1.relname = 'sidejobs'
|
195
|
+
AND t3.nspname = ANY (current_schemas(false))
|
196
|
+
ORDER BY c.conname
|
197
|
+
[0m
|
198
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
199
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
200
|
+
Migrating to CreateSidejobs (20161022211612)
|
201
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
202
|
+
[1m[35m (0.7ms)[0m DROP INDEX "index_sidejobs_on_priority"
|
203
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_sidejobs_on_status_and_scheduled_at"[0m
|
204
|
+
[1m[35m (0.9ms)[0m DROP TABLE "sidejobs"
|
205
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161022211612"]]
|
206
|
+
[1m[35m (14.0ms)[0m COMMIT
|
207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
208
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
209
|
+
Migrating to CreateSidejobs (20161022211612)
|
210
|
+
[1m[35m (0.2ms)[0m BEGIN
|
211
|
+
[1m[36m (7.7ms)[0m [1mCREATE TABLE "sidejobs" ("id" serial primary key, "data" jsonb, "queue" character varying, "status" character varying DEFAULT 'pending', "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "error" text, "failed_at" timestamp, "completed_at" timestamp, "processed_at" timestamp, "scheduled_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
212
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
|
213
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")[0m
|
214
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
|
215
|
+
[1m[36m (6.4ms)[0m [1mCOMMIT[0m
|
216
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
217
|
+
[1m[36m (3.3ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
218
|
+
FROM pg_constraint c
|
219
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
220
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
221
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
222
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
223
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
224
|
+
WHERE c.contype = 'f'
|
225
|
+
AND t1.relname = 'sidejobs'
|
226
|
+
AND t3.nspname = ANY (current_schemas(false))
|
227
|
+
ORDER BY c.conname
|
228
|
+
[0m
|