sidejobs 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +80 -0
  4. data/Rakefile +18 -0
  5. data/lib/generators/sidejobs/install_generator.rb +24 -0
  6. data/lib/generators/sidejobs/templates/configuration.rb +7 -0
  7. data/lib/generators/sidejobs/templates/migration.rb +25 -0
  8. data/lib/sidejobs.rb +34 -0
  9. data/lib/sidejobs/configuration.rb +7 -0
  10. data/lib/sidejobs/daemon.rb +104 -0
  11. data/lib/sidejobs/extensions/active_job/queue_adapter.rb +47 -0
  12. data/lib/sidejobs/job.rb +21 -0
  13. data/lib/sidejobs/processor.rb +23 -0
  14. data/lib/sidejobs/queue.rb +24 -0
  15. data/lib/sidejobs/railtie.rb +15 -0
  16. data/lib/sidejobs/version.rb +3 -0
  17. data/lib/tasks/sidejobs.rake +11 -0
  18. data/test/daemon_test.rb +71 -0
  19. data/test/dummy/Rakefile +5 -0
  20. data/test/dummy/app/assets/javascripts/application.js +13 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  22. data/test/dummy/app/controllers/application_controller.rb +5 -0
  23. data/test/dummy/app/helpers/application_helper.rb +2 -0
  24. data/test/dummy/app/jobs/charge_subscriptions_job.rb +8 -0
  25. data/test/dummy/app/jobs/clear_guest_users_job.rb +8 -0
  26. data/test/dummy/app/jobs/send_newsletters_job.rb +8 -0
  27. data/test/dummy/app/jobs/share_products_job.rb +8 -0
  28. data/test/dummy/app/jobs/update_exchanges_job.rb +8 -0
  29. data/test/dummy/app/mailers/user_mailer.rb +7 -0
  30. data/test/dummy/app/views/layouts/application.html.erb +12 -0
  31. data/test/dummy/app/views/user_mailer/invite.text.erb +1 -0
  32. data/test/dummy/bin/bundle +3 -0
  33. data/test/dummy/bin/rails +4 -0
  34. data/test/dummy/bin/rake +4 -0
  35. data/test/dummy/bin/setup +29 -0
  36. data/test/dummy/config.ru +4 -0
  37. data/test/dummy/config/application.rb +25 -0
  38. data/test/dummy/config/boot.rb +5 -0
  39. data/test/dummy/config/database.yml +7 -0
  40. data/test/dummy/config/database.yml.travis +12 -0
  41. data/test/dummy/config/environment.rb +5 -0
  42. data/test/dummy/config/environments/development.rb +49 -0
  43. data/test/dummy/config/environments/production.rb +79 -0
  44. data/test/dummy/config/environments/test.rb +45 -0
  45. data/test/dummy/config/initializers/assets.rb +11 -0
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  47. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  48. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  49. data/test/dummy/config/initializers/inflections.rb +16 -0
  50. data/test/dummy/config/initializers/mime_types.rb +4 -0
  51. data/test/dummy/config/initializers/session_store.rb +3 -0
  52. data/test/dummy/config/initializers/sidejobs.rb +7 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +23 -0
  55. data/test/dummy/config/routes.rb +56 -0
  56. data/test/dummy/config/secrets.yml +22 -0
  57. data/test/dummy/db/migrate/20161022211612_create_sidejobs.rb +25 -0
  58. data/test/dummy/db/schema.rb +37 -0
  59. data/test/dummy/log/development.log +228 -0
  60. data/test/dummy/log/sidejobs.log +1782 -0
  61. data/test/dummy/log/test.log +14856 -0
  62. data/test/dummy/public/404.html +67 -0
  63. data/test/dummy/public/422.html +67 -0
  64. data/test/dummy/public/500.html +66 -0
  65. data/test/dummy/public/favicon.ico +0 -0
  66. data/test/generator_test.rb +20 -0
  67. data/test/processor_test.rb +49 -0
  68. data/test/queue_test.rb +69 -0
  69. data/test/test_helper.rb +14 -0
  70. 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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -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,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,7 @@
1
+ Sidejobs.configure do |config|
2
+
3
+ config.max_attempts = 3
4
+ config.sleep_delay = 15
5
+ config.batch_size = 20
6
+
7
+ 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
+  (31.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateSidejobs (20161022211612)
5
+  (0.2ms) BEGIN
6
+  (26.9ms) CREATE 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) 
7
+  (0.7ms) CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
8
+  (1.2ms) CREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")
9
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
10
+  (6.0ms) COMMIT
11
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (2.4ms) SELECT 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
+ 
24
+ Sidejobs::Job Load (1.8ms) SELECT "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 [["status", "pending"]]
25
+ Sidejobs::Job Load (0.4ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
27
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
29
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.8ms) SELECT "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 [["status", "pending"]]
31
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
33
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
35
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
37
+ Sidejobs::Job Load (0.5ms) SELECT "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 [["status", "pending"]]
38
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
40
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
42
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
44
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
46
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.5ms) SELECT "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 [["status", "pending"]]
48
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
50
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
52
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
54
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
56
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
58
+ Sidejobs::Job Load (0.7ms) SELECT "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 [["status", "pending"]]
59
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (1.1ms) SELECT "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 [["status", "pending"]]
61
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
63
+ Sidejobs::Job Load (0.4ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
65
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
67
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
69
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
71
+ Sidejobs::Job Load (1.0ms) SELECT "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 [["status", "pending"]]
72
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
74
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
76
+ Sidejobs::Job Load (0.4ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
78
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
80
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
82
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
84
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
86
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
87
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.5ms) SELECT "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 [["status", "pending"]]
89
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
91
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
93
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.5ms) SELECT "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 [["status", "pending"]]
95
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (2.0ms) SELECT "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 [["status", "pending"]]
97
+ Sidejobs::Job Load (0.5ms) 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
+ Sidejobs::Job Load (1.3ms) SELECT "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 [["status", "pending"]]
99
+ Sidejobs::Job Load (0.8ms) 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
+ Sidejobs::Job Load (0.7ms) SELECT "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 [["status", "pending"]]
101
+ Sidejobs::Job Load (1.0ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
103
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.6ms) SELECT "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 [["status", "pending"]]
105
+ Sidejobs::Job Load (0.4ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
107
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
109
+ Sidejobs::Job Load (0.4ms) 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
+ Sidejobs::Job Load (0.5ms) SELECT "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 [["status", "pending"]]
111
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.4ms) SELECT "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 [["status", "pending"]]
113
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
115
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
117
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
119
+ Sidejobs::Job Load (0.3ms) 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
+ Sidejobs::Job Load (0.3ms) SELECT "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 [["status", "pending"]]
121
+ Sidejobs::Job Load (0.3ms) 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
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
123
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
124
+ Migrating to CreateSidejobs (20161022211612)
125
+  (0.2ms) BEGIN
126
+  (18.8ms) DROP INDEX "index_sidejobs_on_priority"
127
+  (0.4ms) DROP INDEX "index_sidejobs_on_status_and_scheduled_at"
128
+  (1.2ms) DROP TABLE "sidejobs"
129
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161022211612"]]
130
+  (26.2ms) COMMIT
131
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
133
+ Migrating to CreateSidejobs (20161022211612)
134
+  (0.2ms) BEGIN
135
+  (25.2ms) CREATE 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) 
136
+  (1.0ms) CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
137
+  (0.6ms) CREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")
138
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
139
+  (6.1ms) COMMIT
140
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
141
+  (2.0ms) SELECT 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
+ 
153
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
155
+ Migrating to CreateSidejobs (20161022211612)
156
+  (0.1ms) BEGIN
157
+  (0.8ms) DROP INDEX "index_sidejobs_on_priority"
158
+  (9.7ms) DROP INDEX "index_sidejobs_on_status_and_scheduled_at"
159
+  (6.7ms) DROP TABLE "sidejobs"
160
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161022211612"]]
161
+  (14.8ms) COMMIT
162
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
163
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
164
+ Migrating to CreateSidejobs (20161022211612)
165
+  (0.2ms) BEGIN
166
+  (10.6ms) CREATE 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) 
167
+  (0.9ms) CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
168
+  (0.7ms) CREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")
169
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
170
+  (0.5ms) COMMIT
171
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
+  (2.2ms) SELECT 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
+ 
184
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
185
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
186
+  (1.9ms) SELECT 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
+ 
198
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
199
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
200
+ Migrating to CreateSidejobs (20161022211612)
201
+  (0.1ms) BEGIN
202
+  (0.7ms) DROP INDEX "index_sidejobs_on_priority"
203
+  (0.2ms) DROP INDEX "index_sidejobs_on_status_and_scheduled_at"
204
+  (0.9ms) DROP TABLE "sidejobs"
205
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161022211612"]]
206
+  (14.0ms) COMMIT
207
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
209
+ Migrating to CreateSidejobs (20161022211612)
210
+  (0.2ms) BEGIN
211
+  (7.7ms) CREATE 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) 
212
+  (1.0ms) CREATE INDEX "index_sidejobs_on_status_and_scheduled_at" ON "sidejobs" ("status", "scheduled_at")
213
+  (0.6ms) CREATE INDEX "index_sidejobs_on_priority" ON "sidejobs" ("priority")
214
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161022211612"]]
215
+  (6.4ms) COMMIT
216
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
217
+  (3.3ms) SELECT 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
+