journaled 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -6
  3. data/Rakefile +7 -1
  4. data/app/jobs/journaled/application_job.rb +4 -0
  5. data/app/jobs/journaled/delivery_job.rb +96 -0
  6. data/app/models/concerns/journaled/changes.rb +5 -5
  7. data/app/models/journaled/change.rb +3 -0
  8. data/app/models/journaled/change_writer.rb +1 -0
  9. data/app/models/journaled/delivery.rb +5 -2
  10. data/app/models/journaled/event.rb +5 -2
  11. data/app/models/journaled/writer.rb +10 -8
  12. data/lib/journaled.rb +26 -5
  13. data/lib/journaled/engine.rb +5 -0
  14. data/lib/journaled/relation_change_protection.rb +1 -1
  15. data/lib/journaled/version.rb +1 -1
  16. data/spec/dummy/config/application.rb +1 -2
  17. data/spec/dummy/config/database.yml +4 -19
  18. data/spec/dummy/config/environments/development.rb +0 -13
  19. data/spec/dummy/config/environments/test.rb +3 -5
  20. data/spec/dummy/db/schema.rb +3 -16
  21. data/spec/jobs/journaled/delivery_job_spec.rb +221 -0
  22. data/spec/lib/journaled_spec.rb +39 -0
  23. data/spec/models/concerns/journaled/changes_spec.rb +11 -0
  24. data/spec/models/database_change_protection_spec.rb +19 -25
  25. data/spec/models/journaled/change_writer_spec.rb +5 -0
  26. data/spec/models/journaled/delivery_spec.rb +33 -0
  27. data/spec/models/journaled/event_spec.rb +23 -16
  28. data/spec/models/journaled/writer_spec.rb +34 -18
  29. data/spec/rails_helper.rb +1 -2
  30. data/spec/spec_helper.rb +1 -3
  31. metadata +38 -62
  32. data/config/routes.rb +0 -2
  33. data/lib/journaled/job_priority.rb +0 -5
  34. data/spec/dummy/config/environments/production.rb +0 -78
  35. data/spec/dummy/config/initializers/assets.rb +0 -8
  36. data/spec/dummy/db/migrate/20180606205114_create_delayed_jobs.rb +0 -18
  37. data/spec/dummy/log/development.log +0 -29
  38. data/spec/dummy/log/test.log +0 -2482
  39. data/spec/support/delayed_job_spec_helper.rb +0 -11
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- Rails.application.routes.draw do
2
- end
@@ -1,5 +0,0 @@
1
- module Journaled::JobPriority
2
- INTERACTIVE = 0 # These jobs will actively hinder end-user interactions until complete, e.g. assembling a report a user is polling for.
3
- USER_VISIBLE = 10 # These jobs have end-user-visible side effects that will not obviously impact customers, e.g. welcome emails
4
- EVENTUAL = 20 # These jobs affect business process that are tolerant to some degree of queue backlog, e.g. desk record synchronization
5
- end
@@ -1,78 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
36
-
37
- # Specifies the header that your server uses for sending files.
38
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
39
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
40
-
41
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
42
- # config.force_ssl = true
43
-
44
- # Set to :debug to see everything in the log.
45
- config.log_level = :info
46
-
47
- # Prepend all log lines with the following tags.
48
- # config.log_tags = [ :subdomain, :uuid ]
49
-
50
- # Use a different logger for distributed setups.
51
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
52
-
53
- # Use a different cache store in production.
54
- # config.cache_store = :mem_cache_store
55
-
56
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
57
- # config.action_controller.asset_host = "http://assets.example.com"
58
-
59
- # Ignore bad email addresses and do not raise email delivery errors.
60
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
61
- # config.action_mailer.raise_delivery_errors = false
62
-
63
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
64
- # the I18n.default_locale when a translation cannot be found).
65
- config.i18n.fallbacks = true
66
-
67
- # Send deprecation notices to registered listeners.
68
- config.active_support.deprecation = :notify
69
-
70
- # Disable automatic flushing of the log to improve performance.
71
- # config.autoflush_log = false
72
-
73
- # Use default logging formatter so that PID and timestamp are not suppressed.
74
- config.log_formatter = ::Logger::Formatter.new
75
-
76
- # Do not dump schema after migrations.
77
- config.active_record.dump_schema_after_migration = false
78
- end
@@ -1,8 +0,0 @@
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
- # Precompile additional assets.
7
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
- # Rails.application.config.assets.precompile += %w( search.js )
@@ -1,18 +0,0 @@
1
- class CreateDelayedJobs < ActiveRecord::Migration[5.1]
2
- def change
3
- create_table :delayed_jobs do |t|
4
- t.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue
5
- t.integer :attempts, default: 0, null: false # Provides for retries, but still fail eventually.
6
- t.text :handler, null: false # YAML-encoded string of the object that will do work
7
- t.text :last_error # reason for last failure (See Note below)
8
- t.datetime :run_at # When to run. Could be Time.zone.now for immediately, or sometime in the future.
9
- t.datetime :locked_at # Set when a client is working on this object
10
- t.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
11
- t.string :locked_by # Who is working on this object (if locked)
12
- t.string :queue # The name of the queue this job is in
13
- t.timestamps null: true
14
- end
15
-
16
- add_index :delayed_jobs, [:priority, :run_at], name: "delayed_jobs_priority"
17
- end
18
- end
@@ -1,29 +0,0 @@
1
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2
-  (0.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
3
-  (6.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
4
-  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
5
-  (7.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
6
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES (20180606205114)
8
-  (4.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
10
-  (0.2ms) BEGIN
11
- SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-07-10 18:07:21.808837"], ["updated_at", "2019-07-10 18:07:21.808837"]]
12
-  (0.4ms) COMMIT
13
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
14
-  (0.2ms) BEGIN
15
-  (0.2ms) COMMIT
16
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
17
-  (3.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
18
-  (11.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
19
-  (2.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
20
-  (5.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
21
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
22
-  (0.2ms) BEGIN
23
- SQL (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2019-07-10 18:07:21.875246"], ["key", "environment"]]
24
-  (0.4ms) COMMIT
25
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
26
-  (0.2ms) BEGIN
27
- SQL (0.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2019-07-10 18:07:21.879252"], ["key", "environment"]]
28
-  (0.5ms) COMMIT
29
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
@@ -1,2482 +0,0 @@
1
-  (806.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3
-  (0.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
4
-  (6.9ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
5
-  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
6
-  (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
7
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180606205114)
9
-  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
11
-  (0.3ms) BEGIN
12
- ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-07-10 17:49:37.159358"], ["updated_at", "2019-07-10 17:49:37.159358"]]
13
-  (5.2ms) COMMIT
14
- ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
15
-  (0.2ms) BEGIN
16
-  (0.1ms) COMMIT
17
-  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
19
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
20
-  (8.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
21
-  (4.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
22
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
23
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
24
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
25
-  (3.1ms) BEGIN
26
-  (0.4ms) COMMIT
27
-  (0.3ms) BEGIN
28
-  Load (0.6ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
29
-  (0.4ms) ROLLBACK
30
-  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
31
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
32
-  (5.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
33
-  (64.2ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
34
-  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
35
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
36
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
37
-  (0.2ms) BEGIN
38
-  (0.2ms) COMMIT
39
-  (0.3ms) BEGIN
40
-  (0.2ms) SAVEPOINT active_record_1
41
- #<Class:0x00007fbdbd181118> Create (1.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 17:50:54.877813"], ["created_at", "2019-07-10 17:50:54.877878"], ["updated_at", "2019-07-10 17:50:54.877878"]]
42
- Delayed::Backend::ActiveRecord::Job Create (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"2564544c-92e8-406a-9a6e-0a36cb0fec07\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T17:50:55.002Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"1\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 17:50:55.016767"], ["created_at", "2019-07-10 17:50:55.016814"], ["updated_at", "2019-07-10 17:50:55.016814"]]
43
-  (0.1ms) RELEASE SAVEPOINT active_record_1
44
-  (0.1ms) SAVEPOINT active_record_1
45
- #<Class:0x00007fbdbd181118> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
46
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"e935381a-7e1e-41f7-9140-0d2ca9741a48\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T17:50:55.021Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"1\",\"database_operation\":\"delete\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 17:50:55.024375"], ["created_at", "2019-07-10 17:50:55.024402"], ["updated_at", "2019-07-10 17:50:55.024402"]]
47
-  (0.1ms) RELEASE SAVEPOINT active_record_1
48
-  (0.2ms) ROLLBACK
49
-  (0.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
50
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
51
-  (4.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
52
-  (6.3ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
53
-  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
54
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
55
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
56
-  (0.4ms) BEGIN
57
-  (0.2ms) COMMIT
58
-  (0.6ms) BEGIN
59
-  (0.3ms) SAVEPOINT active_record_1
60
- SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 17:52:44.250467"], ["created_at", "2019-07-10 17:52:44.250556"], ["updated_at", "2019-07-10 17:52:44.250556"]]
61
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"8356072a-4cdb-42d8-aca6-40fb34786ddf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T17:52:44.357Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"1\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 17:52:44.368830"], ["created_at", "2019-07-10 17:52:44.368867"], ["updated_at", "2019-07-10 17:52:44.368867"]]
62
-  (0.1ms) RELEASE SAVEPOINT active_record_1
63
-  (0.1ms) SAVEPOINT active_record_1
64
-  (0.8ms) ROLLBACK TO SAVEPOINT active_record_1
65
-  (0.4ms) ROLLBACK
66
-  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
67
- SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
68
-  (7.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
69
-  (6.7ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
70
-  (3.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
71
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
72
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
73
-  (0.3ms) BEGIN
74
-  (0.1ms) COMMIT
75
-  (0.3ms) BEGIN
76
-  (0.6ms) ROLLBACK
77
-  (0.4ms) BEGIN
78
-  (0.2ms) ROLLBACK
79
-  (0.1ms) BEGIN
80
-  (0.3ms) ROLLBACK
81
-  (0.2ms) BEGIN
82
-  (2.6ms) ROLLBACK
83
-  (0.1ms) BEGIN
84
-  (0.2ms) ROLLBACK
85
-  (0.1ms) BEGIN
86
-  (0.2ms) ROLLBACK
87
-  (0.2ms) BEGIN
88
-  (0.2ms) ROLLBACK
89
-  (0.2ms) BEGIN
90
-  (0.3ms) ROLLBACK
91
-  (0.2ms) BEGIN
92
-  (0.4ms) ROLLBACK
93
-  (0.1ms) BEGIN
94
-  (0.1ms) ROLLBACK
95
-  (0.1ms) BEGIN
96
-  (0.2ms) ROLLBACK
97
-  (0.2ms) BEGIN
98
-  (0.1ms) ROLLBACK
99
-  (0.1ms) BEGIN
100
-  (0.1ms) ROLLBACK
101
-  (0.1ms) BEGIN
102
-  (1.2ms) ROLLBACK
103
-  (0.2ms) BEGIN
104
-  (0.2ms) ROLLBACK
105
-  (0.2ms) BEGIN
106
-  (0.2ms) ROLLBACK
107
-  (0.1ms) BEGIN
108
-  (0.1ms) ROLLBACK
109
-  (0.1ms) BEGIN
110
-  (0.1ms) ROLLBACK
111
-  (0.1ms) BEGIN
112
-  (0.1ms) ROLLBACK
113
-  (0.8ms) BEGIN
114
-  (0.1ms) ROLLBACK
115
-  (0.2ms) BEGIN
116
-  (0.1ms) ROLLBACK
117
-  (0.2ms) BEGIN
118
-  (0.4ms) ROLLBACK
119
-  (0.2ms) BEGIN
120
-  (0.1ms) ROLLBACK
121
-  (0.2ms) BEGIN
122
-  (0.2ms) ROLLBACK
123
-  (0.1ms) BEGIN
124
-  (0.6ms) ROLLBACK
125
-  (0.1ms) BEGIN
126
-  (0.1ms) ROLLBACK
127
-  (0.1ms) BEGIN
128
-  (0.1ms) ROLLBACK
129
-  (0.1ms) BEGIN
130
-  (0.1ms) ROLLBACK
131
-  (0.1ms) BEGIN
132
-  (0.2ms) ROLLBACK
133
-  (0.1ms) BEGIN
134
-  (1.5ms) ROLLBACK
135
-  (0.3ms) BEGIN
136
-  (0.2ms) ROLLBACK
137
-  (0.3ms) BEGIN
138
-  (0.3ms) ROLLBACK
139
-  (0.1ms) BEGIN
140
-  (0.1ms) ROLLBACK
141
-  (0.1ms) BEGIN
142
-  (0.1ms) ROLLBACK
143
-  (0.1ms) BEGIN
144
-  (0.1ms) ROLLBACK
145
-  (0.1ms) BEGIN
146
-  (0.1ms) ROLLBACK
147
-  (0.1ms) BEGIN
148
-  (0.1ms) ROLLBACK
149
-  (0.3ms) BEGIN
150
-  (0.2ms) ROLLBACK
151
-  (1.4ms) BEGIN
152
-  (0.3ms) ROLLBACK
153
-  (0.2ms) BEGIN
154
-  (0.1ms) ROLLBACK
155
-  (0.1ms) BEGIN
156
-  (0.2ms) ROLLBACK
157
-  (0.1ms) BEGIN
158
-  (0.1ms) ROLLBACK
159
-  (0.1ms) BEGIN
160
-  (0.1ms) ROLLBACK
161
-  (0.1ms) BEGIN
162
-  (0.1ms) ROLLBACK
163
-  (0.1ms) BEGIN
164
-  (0.1ms) ROLLBACK
165
-  (0.1ms) BEGIN
166
-  (0.1ms) ROLLBACK
167
-  (0.1ms) BEGIN
168
-  (4.1ms) ROLLBACK
169
-  (0.1ms) BEGIN
170
-  (0.2ms) ROLLBACK
171
-  (0.5ms) BEGIN
172
-  (0.3ms) ROLLBACK
173
-  (0.2ms) BEGIN
174
-  (0.4ms) ROLLBACK
175
-  (0.1ms) BEGIN
176
-  (0.1ms) ROLLBACK
177
-  (0.1ms) BEGIN
178
-  (0.1ms) ROLLBACK
179
-  (0.3ms) BEGIN
180
-  (0.5ms) ROLLBACK
181
-  (0.2ms) BEGIN
182
-  (0.2ms) ROLLBACK
183
-  (0.2ms) BEGIN
184
-  (0.2ms) ROLLBACK
185
-  (0.1ms) BEGIN
186
-  (0.2ms) ROLLBACK
187
-  (0.1ms) BEGIN
188
-  (0.8ms) ROLLBACK
189
-  (0.1ms) BEGIN
190
-  (0.3ms) ROLLBACK
191
-  (0.2ms) BEGIN
192
-  (0.1ms) ROLLBACK
193
-  (0.1ms) BEGIN
194
-  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
195
- Delayed::Backend::ActiveRecord::Job Load (4.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.174212', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.173637' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.173648') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
196
-  (0.2ms) ROLLBACK
197
-  (0.4ms) BEGIN
198
-  (0.4ms) SAVEPOINT active_record_1
199
- SQL (0.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:09:50.182Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:09:50.198839"], ["created_at", "2019-07-10 19:09:50.198889"], ["updated_at", "2019-07-10 19:09:50.198889"]]
200
-  (0.2ms) RELEASE SAVEPOINT active_record_1
201
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.201584', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.201325' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.201334') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
202
-  (0.2ms) SAVEPOINT active_record_1
203
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
204
-  (0.1ms) RELEASE SAVEPOINT active_record_1
205
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.204953', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.204654' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.204666') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
206
-  (0.2ms) ROLLBACK
207
-  (0.1ms) BEGIN
208
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
209
-  (0.2ms) SAVEPOINT active_record_1
210
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:09:50.217Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:09:50.219508"], ["created_at", "2019-07-10 19:09:50.219548"], ["updated_at", "2019-07-10 19:09:50.219548"]]
211
-  (0.3ms) RELEASE SAVEPOINT active_record_1
212
-  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
213
- Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.222934', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.222529' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.222540') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
214
-  (0.6ms) SAVEPOINT active_record_1
215
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
216
-  (0.2ms) RELEASE SAVEPOINT active_record_1
217
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.229748', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.229484' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.229498') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
218
-  (0.2ms) ROLLBACK
219
-  (0.1ms) BEGIN
220
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
221
-  (0.2ms) SAVEPOINT active_record_1
222
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:09:50.233Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:09:50.234825"], ["created_at", "2019-07-10 19:09:50.234864"], ["updated_at", "2019-07-10 19:09:50.234864"]]
223
-  (0.1ms) RELEASE SAVEPOINT active_record_1
224
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
225
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.236757', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.236542' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.236550') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
226
-  (0.1ms) SAVEPOINT active_record_1
227
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
228
-  (0.1ms) RELEASE SAVEPOINT active_record_1
229
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.239127', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.238916' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.238925') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
230
-  (0.2ms) ROLLBACK
231
-  (0.1ms) BEGIN
232
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
233
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:09:50.243788', locked_by = 'host:Sam-Moore-MBP13 pid:94471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:09:50.243525' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:09:50.243538') OR locked_by = 'host:Sam-Moore-MBP13 pid:94471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
234
-  (0.1ms) ROLLBACK
235
-  (0.1ms) BEGIN
236
-  (0.1ms) ROLLBACK
237
-  (0.3ms) BEGIN
238
-  (0.2ms) ROLLBACK
239
-  (0.1ms) BEGIN
240
-  (0.1ms) ROLLBACK
241
-  (0.1ms) BEGIN
242
-  (0.3ms) SAVEPOINT active_record_1
243
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.267016"], ["created_at", "2019-07-10 19:09:50.267068"], ["updated_at", "2019-07-10 19:09:50.267068"]]
244
-  (0.2ms) RELEASE SAVEPOINT active_record_1
245
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]
246
-  (0.1ms) ROLLBACK
247
-  (0.1ms) BEGIN
248
-  (0.3ms) SAVEPOINT active_record_1
249
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.287348"], ["created_at", "2019-07-10 19:09:50.287387"], ["updated_at", "2019-07-10 19:09:50.287387"]]
250
- SQL (1.0ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"b79357d0-0bb9-43f3-8a0c-be4de93547c7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:09:50.288Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"5\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:09:50.291839"], ["created_at", "2019-07-10 19:09:50.291892"], ["updated_at", "2019-07-10 19:09:50.291892"]]
251
-  (0.8ms) RELEASE SAVEPOINT active_record_1
252
-  (0.3ms) ROLLBACK
253
-  (0.2ms) BEGIN
254
-  (0.2ms) SAVEPOINT active_record_1
255
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.324615"], ["created_at", "2019-07-10 19:09:50.324677"], ["updated_at", "2019-07-10 19:09:50.324677"]]
256
- SQL (6.0ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"5b305d28-b151-483e-bc1c-8abc45e66c21\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:09:50.326Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"7\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:09:50.346507"], ["created_at", "2019-07-10 19:09:50.346547"], ["updated_at", "2019-07-10 19:09:50.346547"]]
257
-  (0.2ms) RELEASE SAVEPOINT active_record_1
258
-  (0.2ms) SAVEPOINT active_record_1
259
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
260
-  (0.1ms) ROLLBACK
261
-  (0.1ms) BEGIN
262
-  (0.2ms) SAVEPOINT active_record_1
263
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.368185"], ["created_at", "2019-07-10 19:09:50.368225"], ["updated_at", "2019-07-10 19:09:50.368225"]]
264
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"0fd21302-e354-4f3a-9473-4a5346244510\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:09:50.369Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"9\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:09:50.371054"], ["created_at", "2019-07-10 19:09:50.371080"], ["updated_at", "2019-07-10 19:09:50.371080"]]
265
-  (0.1ms) RELEASE SAVEPOINT active_record_1
266
- SQL (0.3ms) UPDATE "delayed_jobs" SET "handler" = '' WHERE "delayed_jobs"."id" = $1 [["id", 9]]
267
-  (0.1ms) ROLLBACK
268
-  (0.1ms) BEGIN
269
-  (0.3ms) SAVEPOINT active_record_1
270
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.388971"], ["created_at", "2019-07-10 19:09:50.389010"], ["updated_at", "2019-07-10 19:09:50.389010"]]
271
- SQL (1.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"3256527e-e9ac-45de-bec4-71a8573d7015\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:09:50.390Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"11\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:09:50.392151"], ["created_at", "2019-07-10 19:09:50.392189"], ["updated_at", "2019-07-10 19:09:50.392189"]]
272
-  (0.2ms) RELEASE SAVEPOINT active_record_1
273
-  (0.2ms) ROLLBACK
274
-  (0.2ms) BEGIN
275
-  (0.2ms) SAVEPOINT active_record_1
276
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:09:50.407758"], ["created_at", "2019-07-10 19:09:50.407802"], ["updated_at", "2019-07-10 19:09:50.407802"]]
277
- SQL (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"ab5af778-b40a-4c2b-b607-b0aaaa10f743\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:09:50.409Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"13\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:09:50.411401"], ["created_at", "2019-07-10 19:09:50.411432"], ["updated_at", "2019-07-10 19:09:50.411432"]]
278
-  (0.3ms) RELEASE SAVEPOINT active_record_1
279
-  (0.3ms) ROLLBACK
280
-  (0.1ms) BEGIN
281
- SQL (0.3ms) DELETE FROM "delayed_jobs"
282
-  (0.1ms) ROLLBACK
283
-  (0.2ms) BEGIN
284
- SQL (0.3ms) DELETE FROM "delayed_jobs"
285
-  (0.1ms) ROLLBACK
286
-  (0.1ms) BEGIN
287
-  (0.2ms) ROLLBACK
288
-  (0.1ms) BEGIN
289
-  (0.5ms) ROLLBACK
290
-  (0.1ms) BEGIN
291
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
292
-  (0.1ms) ROLLBACK
293
-  (0.1ms) BEGIN
294
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
295
-  (0.2ms) ROLLBACK
296
-  (0.1ms) BEGIN
297
-  (0.2ms) ROLLBACK
298
-  (0.1ms) BEGIN
299
- SQL (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''
300
-  (0.2ms) ROLLBACK
301
-  (0.2ms) BEGIN
302
- SQL (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
303
-  (0.1ms) ROLLBACK
304
-  (0.1ms) BEGIN
305
-  (0.5ms) ROLLBACK
306
-  (0.1ms) BEGIN
307
-  (0.3ms) ROLLBACK
308
-  (0.1ms) BEGIN
309
-  (0.3ms) ROLLBACK
310
-  (0.2ms) BEGIN
311
-  (0.2ms) ROLLBACK
312
-  (0.1ms) BEGIN
313
-  (0.5ms) ROLLBACK
314
-  (0.1ms) BEGIN
315
-  (0.3ms) ROLLBACK
316
-  (9.7ms) BEGIN
317
-  (1.4ms) ROLLBACK
318
-  (0.2ms) BEGIN
319
-  (0.2ms) ROLLBACK
320
-  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
321
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
322
-  (9.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
323
-  (5.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
324
-  (1.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
325
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
326
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
327
-  (0.2ms) BEGIN
328
-  (0.1ms) COMMIT
329
-  (0.3ms) BEGIN
330
-  (0.7ms) ROLLBACK
331
-  (0.1ms) BEGIN
332
-  (0.1ms) ROLLBACK
333
-  (0.1ms) BEGIN
334
-  (0.2ms) ROLLBACK
335
-  (0.1ms) BEGIN
336
-  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
337
- Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:23.958485', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:23.957915' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:23.957928') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
338
-  (0.2ms) ROLLBACK
339
-  (0.1ms) BEGIN
340
-  (0.3ms) SAVEPOINT active_record_1
341
- SQL (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:15:23.961Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:15:23.983135"], ["created_at", "2019-07-10 19:15:23.983179"], ["updated_at", "2019-07-10 19:15:23.983179"]]
342
-  (0.2ms) RELEASE SAVEPOINT active_record_1
343
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:23.988989', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:23.987957' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:23.987967') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
344
-  (0.2ms) SAVEPOINT active_record_1
345
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
346
-  (0.1ms) RELEASE SAVEPOINT active_record_1
347
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:23.993119', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:23.992333' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:23.992896') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
348
-  (0.2ms) ROLLBACK
349
-  (0.1ms) BEGIN
350
-  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
351
-  (0.2ms) SAVEPOINT active_record_1
352
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:15:24.002Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:15:24.007720"], ["created_at", "2019-07-10 19:15:24.007750"], ["updated_at", "2019-07-10 19:15:24.007750"]]
353
-  (0.2ms) RELEASE SAVEPOINT active_record_1
354
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
355
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:24.010570', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:24.010359' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:24.010368') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
356
-  (0.5ms) SAVEPOINT active_record_1
357
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
358
-  (0.1ms) RELEASE SAVEPOINT active_record_1
359
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:24.017795', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:24.016311' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:24.016324') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
360
-  (0.1ms) ROLLBACK
361
-  (0.1ms) BEGIN
362
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
363
-  (0.2ms) SAVEPOINT active_record_1
364
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:15:24.021Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:15:24.025412"], ["created_at", "2019-07-10 19:15:24.025444"], ["updated_at", "2019-07-10 19:15:24.025444"]]
365
-  (0.2ms) RELEASE SAVEPOINT active_record_1
366
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
367
- Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:24.028193', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:24.027959' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:24.027969') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
368
-  (0.2ms) SAVEPOINT active_record_1
369
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
370
-  (0.2ms) RELEASE SAVEPOINT active_record_1
371
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:24.032206', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:24.031985' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:24.031995') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
372
-  (0.1ms) ROLLBACK
373
-  (0.2ms) BEGIN
374
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
375
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:15:24.040376', locked_by = 'host:Sam-Moore-MBP13 pid:94859' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:15:24.040117' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:15:24.040130') OR locked_by = 'host:Sam-Moore-MBP13 pid:94859') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
376
-  (0.2ms) ROLLBACK
377
-  (0.1ms) BEGIN
378
-  (0.2ms) ROLLBACK
379
-  (0.1ms) BEGIN
380
-  (0.1ms) ROLLBACK
381
-  (0.1ms) BEGIN
382
-  (0.1ms) ROLLBACK
383
-  (0.1ms) BEGIN
384
-  (0.1ms) ROLLBACK
385
-  (0.1ms) BEGIN
386
-  (0.2ms) ROLLBACK
387
-  (0.1ms) BEGIN
388
-  (0.1ms) ROLLBACK
389
-  (0.1ms) BEGIN
390
-  (0.1ms) ROLLBACK
391
-  (0.1ms) BEGIN
392
-  (0.1ms) ROLLBACK
393
-  (0.1ms) BEGIN
394
-  (0.1ms) ROLLBACK
395
-  (0.1ms) BEGIN
396
-  (0.2ms) ROLLBACK
397
-  (0.2ms) BEGIN
398
-  (0.3ms) ROLLBACK
399
-  (0.1ms) BEGIN
400
-  (0.1ms) ROLLBACK
401
-  (0.1ms) BEGIN
402
-  (0.2ms) ROLLBACK
403
-  (0.1ms) BEGIN
404
-  (0.7ms) ROLLBACK
405
-  (0.1ms) BEGIN
406
-  (0.2ms) ROLLBACK
407
-  (0.2ms) BEGIN
408
-  (0.2ms) ROLLBACK
409
-  (0.2ms) BEGIN
410
-  (0.2ms) ROLLBACK
411
-  (0.1ms) BEGIN
412
-  (0.2ms) ROLLBACK
413
-  (0.2ms) BEGIN
414
-  (0.2ms) ROLLBACK
415
-  (0.1ms) BEGIN
416
-  (0.6ms) ROLLBACK
417
-  (0.1ms) BEGIN
418
-  (0.1ms) ROLLBACK
419
-  (0.1ms) BEGIN
420
-  (4.4ms) ROLLBACK
421
-  (0.1ms) BEGIN
422
-  (0.3ms) ROLLBACK
423
-  (0.1ms) BEGIN
424
-  (0.2ms) ROLLBACK
425
-  (0.1ms) BEGIN
426
-  (0.2ms) ROLLBACK
427
-  (0.1ms) BEGIN
428
-  (0.2ms) ROLLBACK
429
-  (0.1ms) BEGIN
430
-  (0.2ms) ROLLBACK
431
-  (0.3ms) BEGIN
432
-  (0.4ms) ROLLBACK
433
-  (0.3ms) BEGIN
434
-  (0.3ms) ROLLBACK
435
-  (0.2ms) BEGIN
436
-  (0.2ms) ROLLBACK
437
-  (0.1ms) BEGIN
438
-  (0.2ms) ROLLBACK
439
-  (0.1ms) BEGIN
440
-  (0.1ms) ROLLBACK
441
-  (0.2ms) BEGIN
442
-  (0.2ms) ROLLBACK
443
-  (0.1ms) BEGIN
444
-  (0.2ms) ROLLBACK
445
-  (0.2ms) BEGIN
446
-  (0.1ms) ROLLBACK
447
-  (0.1ms) BEGIN
448
-  (0.3ms) ROLLBACK
449
-  (0.2ms) BEGIN
450
-  (0.1ms) ROLLBACK
451
-  (0.1ms) BEGIN
452
-  (0.2ms) SAVEPOINT active_record_1
453
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.289044"], ["created_at", "2019-07-10 19:15:24.289087"], ["updated_at", "2019-07-10 19:15:24.289087"]]
454
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"33d62680-77e5-4832-9df6-d85e0946a390\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:15:24.291Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"4\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:15:24.293276"], ["created_at", "2019-07-10 19:15:24.293305"], ["updated_at", "2019-07-10 19:15:24.293305"]]
455
-  (0.2ms) RELEASE SAVEPOINT active_record_1
456
-  (0.2ms) SAVEPOINT active_record_1
457
-  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1
458
-  (0.3ms) ROLLBACK
459
-  (0.1ms) BEGIN
460
-  (0.3ms) SAVEPOINT active_record_1
461
- SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.311503"], ["created_at", "2019-07-10 19:15:24.311557"], ["updated_at", "2019-07-10 19:15:24.311557"]]
462
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"36782d4b-e481-4ff0-bc98-90803dff3111\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:15:24.315Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:15:24.316853"], ["created_at", "2019-07-10 19:15:24.316881"], ["updated_at", "2019-07-10 19:15:24.316881"]]
463
-  (0.2ms) RELEASE SAVEPOINT active_record_1
464
-  (0.1ms) ROLLBACK
465
-  (0.2ms) BEGIN
466
-  (0.2ms) SAVEPOINT active_record_1
467
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.330993"], ["created_at", "2019-07-10 19:15:24.331026"], ["updated_at", "2019-07-10 19:15:24.331026"]]
468
-  (0.2ms) RELEASE SAVEPOINT active_record_1
469
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]
470
-  (0.1ms) ROLLBACK
471
-  (0.1ms) BEGIN
472
-  (0.3ms) SAVEPOINT active_record_1
473
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.369701"], ["created_at", "2019-07-10 19:15:24.369741"], ["updated_at", "2019-07-10 19:15:24.369741"]]
474
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"526f4ab4-0bbd-40ac-bd77-193a2ce2900e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:15:24.370Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"9\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:15:24.372501"], ["created_at", "2019-07-10 19:15:24.372526"], ["updated_at", "2019-07-10 19:15:24.372526"]]
475
-  (0.1ms) RELEASE SAVEPOINT active_record_1
476
-  (0.1ms) ROLLBACK
477
-  (0.2ms) BEGIN
478
-  (0.2ms) SAVEPOINT active_record_1
479
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.385520"], ["created_at", "2019-07-10 19:15:24.385570"], ["updated_at", "2019-07-10 19:15:24.385570"]]
480
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"f39c8ce5-e66b-4d4c-b4e3-556f0841c206\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:15:24.386Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"11\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:15:24.389075"], ["created_at", "2019-07-10 19:15:24.389105"], ["updated_at", "2019-07-10 19:15:24.389105"]]
481
-  (0.2ms) RELEASE SAVEPOINT active_record_1
482
-  (0.2ms) ROLLBACK
483
-  (0.1ms) BEGIN
484
-  (0.4ms) SAVEPOINT active_record_1
485
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:15:24.405535"], ["created_at", "2019-07-10 19:15:24.405597"], ["updated_at", "2019-07-10 19:15:24.405597"]]
486
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"20522fff-a6af-472a-a3b6-130ddfecfe56\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:15:24.407Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"13\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:15:24.408596"], ["created_at", "2019-07-10 19:15:24.408621"], ["updated_at", "2019-07-10 19:15:24.408621"]]
487
-  (0.1ms) RELEASE SAVEPOINT active_record_1
488
- SQL (0.2ms) UPDATE "delayed_jobs" SET "handler" = '' WHERE "delayed_jobs"."id" = $1 [["id", 13]]
489
-  (0.1ms) ROLLBACK
490
-  (0.1ms) BEGIN
491
- SQL (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''
492
-  (0.2ms) ROLLBACK
493
-  (0.2ms) BEGIN
494
- SQL (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
495
-  (0.2ms) ROLLBACK
496
-  (0.1ms) BEGIN
497
-  (0.2ms) ROLLBACK
498
-  (0.2ms) BEGIN
499
-  (0.2ms) ROLLBACK
500
-  (0.2ms) BEGIN
501
- SQL (0.3ms) DELETE FROM "delayed_jobs"
502
-  (0.3ms) ROLLBACK
503
-  (0.1ms) BEGIN
504
- SQL (0.3ms) DELETE FROM "delayed_jobs"
505
-  (0.1ms) ROLLBACK
506
-  (0.1ms) BEGIN
507
-  (0.1ms) ROLLBACK
508
-  (0.2ms) BEGIN
509
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
510
-  (0.2ms) ROLLBACK
511
-  (0.2ms) BEGIN
512
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
513
-  (0.2ms) ROLLBACK
514
-  (0.3ms) BEGIN
515
-  (0.2ms) ROLLBACK
516
-  (0.1ms) BEGIN
517
-  (0.2ms) ROLLBACK
518
-  (0.8ms) BEGIN
519
-  (0.3ms) ROLLBACK
520
-  (0.2ms) BEGIN
521
-  (0.2ms) ROLLBACK
522
-  (0.1ms) BEGIN
523
-  (0.4ms) ROLLBACK
524
-  (0.1ms) BEGIN
525
-  (0.2ms) ROLLBACK
526
-  (0.1ms) BEGIN
527
-  (0.2ms) ROLLBACK
528
-  (0.1ms) BEGIN
529
-  (0.1ms) ROLLBACK
530
-  (0.5ms) BEGIN
531
-  (0.8ms) ROLLBACK
532
-  (0.1ms) BEGIN
533
-  (0.2ms) ROLLBACK
534
-  (0.1ms) BEGIN
535
-  (0.2ms) ROLLBACK
536
-  (0.1ms) BEGIN
537
-  (0.1ms) ROLLBACK
538
-  (0.1ms) BEGIN
539
-  (0.1ms) ROLLBACK
540
-  (0.3ms) BEGIN
541
-  (0.2ms) ROLLBACK
542
-  (0.1ms) BEGIN
543
-  (0.2ms) ROLLBACK
544
-  (0.1ms) BEGIN
545
-  (0.1ms) ROLLBACK
546
-  (0.2ms) BEGIN
547
-  (0.1ms) ROLLBACK
548
-  (0.1ms) BEGIN
549
-  (0.1ms) ROLLBACK
550
-  (0.1ms) BEGIN
551
-  (0.1ms) ROLLBACK
552
-  (0.1ms) BEGIN
553
-  (0.4ms) ROLLBACK
554
-  (0.1ms) BEGIN
555
-  (0.1ms) ROLLBACK
556
-  (0.1ms) BEGIN
557
-  (0.2ms) ROLLBACK
558
-  (0.1ms) BEGIN
559
-  (0.1ms) ROLLBACK
560
-  (0.3ms) BEGIN
561
-  (0.2ms) ROLLBACK
562
-  (0.1ms) BEGIN
563
-  (0.1ms) ROLLBACK
564
-  (0.1ms) BEGIN
565
-  (0.2ms) ROLLBACK
566
-  (0.1ms) BEGIN
567
-  (0.1ms) ROLLBACK
568
-  (0.1ms) BEGIN
569
-  (0.1ms) ROLLBACK
570
-  (0.1ms) BEGIN
571
-  (0.1ms) ROLLBACK
572
-  (0.1ms) BEGIN
573
-  (0.5ms) ROLLBACK
574
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
575
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
576
-  (4.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
577
-  (8.1ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
578
-  (3.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
579
-  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
580
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
581
-  (0.2ms) BEGIN
582
-  (0.1ms) COMMIT
583
-  (0.3ms) BEGIN
584
-  (0.4ms) ROLLBACK
585
-  (0.1ms) BEGIN
586
-  (0.5ms) ROLLBACK
587
-  (0.1ms) BEGIN
588
-  (0.2ms) ROLLBACK
589
-  (0.1ms) BEGIN
590
-  (0.2ms) ROLLBACK
591
-  (0.1ms) BEGIN
592
-  (0.2ms) ROLLBACK
593
-  (0.1ms) BEGIN
594
-  (0.2ms) ROLLBACK
595
-  (0.1ms) BEGIN
596
-  (0.2ms) ROLLBACK
597
-  (0.1ms) BEGIN
598
-  (0.2ms) ROLLBACK
599
-  (0.2ms) BEGIN
600
-  (0.2ms) ROLLBACK
601
-  (0.1ms) BEGIN
602
-  (0.2ms) ROLLBACK
603
-  (0.1ms) BEGIN
604
-  (0.3ms) ROLLBACK
605
-  (0.1ms) BEGIN
606
-  (0.3ms) SAVEPOINT active_record_1
607
- SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.494430"], ["created_at", "2019-07-10 19:17:35.494474"], ["updated_at", "2019-07-10 19:17:35.494474"]]
608
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"2ce5a2b4-b36e-419e-9771-f3f812bcbf6c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:17:35.563Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"1\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:17:35.565684"], ["created_at", "2019-07-10 19:17:35.565717"], ["updated_at", "2019-07-10 19:17:35.565717"]]
609
-  (0.1ms) RELEASE SAVEPOINT active_record_1
610
-  (0.2ms) ROLLBACK
611
-  (0.1ms) BEGIN
612
-  (0.2ms) SAVEPOINT active_record_1
613
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.580718"], ["created_at", "2019-07-10 19:17:35.580755"], ["updated_at", "2019-07-10 19:17:35.580755"]]
614
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"98e3093f-4b9d-41e6-92ab-3187e64d4bed\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:17:35.582Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"3\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:17:35.583613"], ["created_at", "2019-07-10 19:17:35.583644"], ["updated_at", "2019-07-10 19:17:35.583644"]]
615
-  (0.2ms) RELEASE SAVEPOINT active_record_1
616
-  (0.1ms) SAVEPOINT active_record_1
617
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
618
-  (0.2ms) ROLLBACK
619
-  (0.1ms) BEGIN
620
-  (0.3ms) SAVEPOINT active_record_1
621
- SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.601992"], ["created_at", "2019-07-10 19:17:35.602065"], ["updated_at", "2019-07-10 19:17:35.602065"]]
622
-  (0.2ms) RELEASE SAVEPOINT active_record_1
623
- SQL (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]
624
-  (0.2ms) ROLLBACK
625
-  (0.1ms) BEGIN
626
-  (0.2ms) SAVEPOINT active_record_1
627
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.623309"], ["created_at", "2019-07-10 19:17:35.623346"], ["updated_at", "2019-07-10 19:17:35.623346"]]
628
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"1425d3a2-58f2-4abb-9f8f-be699b6c53ad\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:17:35.624Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:17:35.626349"], ["created_at", "2019-07-10 19:17:35.626383"], ["updated_at", "2019-07-10 19:17:35.626383"]]
629
-  (0.1ms) RELEASE SAVEPOINT active_record_1
630
-  (0.1ms) ROLLBACK
631
-  (0.2ms) BEGIN
632
-  (0.2ms) SAVEPOINT active_record_1
633
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.643179"], ["created_at", "2019-07-10 19:17:35.643220"], ["updated_at", "2019-07-10 19:17:35.643220"]]
634
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"dde6ea3b-cb52-43d4-bf69-5f8f5a32de1b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:17:35.644Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"8\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:17:35.646998"], ["created_at", "2019-07-10 19:17:35.647070"], ["updated_at", "2019-07-10 19:17:35.647070"]]
635
-  (0.2ms) RELEASE SAVEPOINT active_record_1
636
-  (0.2ms) ROLLBACK
637
-  (0.1ms) BEGIN
638
-  (0.4ms) SAVEPOINT active_record_1
639
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:17:35.663656"], ["created_at", "2019-07-10 19:17:35.663708"], ["updated_at", "2019-07-10 19:17:35.663708"]]
640
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"5d10b878-9b4f-4c25-858b-f14b0ea927b4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:17:35.665Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:17:35.666971"], ["created_at", "2019-07-10 19:17:35.667002"], ["updated_at", "2019-07-10 19:17:35.667002"]]
641
-  (0.1ms) RELEASE SAVEPOINT active_record_1
642
- SQL (0.3ms) UPDATE "delayed_jobs" SET "handler" = '' WHERE "delayed_jobs"."id" = $1 [["id", 10]]
643
-  (0.3ms) ROLLBACK
644
-  (0.2ms) BEGIN
645
-  (0.6ms) ROLLBACK
646
-  (0.4ms) BEGIN
647
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
648
-  (0.2ms) ROLLBACK
649
-  (0.3ms) BEGIN
650
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
651
-  (0.2ms) ROLLBACK
652
-  (0.2ms) BEGIN
653
- SQL (0.2ms) DELETE FROM "delayed_jobs"
654
-  (0.2ms) ROLLBACK
655
-  (0.1ms) BEGIN
656
- SQL (0.4ms) DELETE FROM "delayed_jobs"
657
-  (0.2ms) ROLLBACK
658
-  (0.1ms) BEGIN
659
-  (0.3ms) ROLLBACK
660
-  (0.1ms) BEGIN
661
-  (0.3ms) ROLLBACK
662
-  (0.1ms) BEGIN
663
- SQL (1.0ms) UPDATE "delayed_jobs" SET "handler" = ''
664
-  (0.3ms) ROLLBACK
665
-  (0.2ms) BEGIN
666
- SQL (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
667
-  (0.3ms) ROLLBACK
668
-  (0.1ms) BEGIN
669
-  (0.1ms) ROLLBACK
670
-  (0.1ms) BEGIN
671
-  (0.1ms) ROLLBACK
672
-  (0.1ms) BEGIN
673
-  (0.1ms) ROLLBACK
674
-  (0.1ms) BEGIN
675
-  (0.1ms) ROLLBACK
676
-  (0.1ms) BEGIN
677
-  (0.2ms) ROLLBACK
678
-  (0.1ms) BEGIN
679
-  (0.3ms) ROLLBACK
680
-  (0.4ms) BEGIN
681
-  (0.2ms) ROLLBACK
682
-  (0.2ms) BEGIN
683
-  (0.2ms) ROLLBACK
684
-  (0.1ms) BEGIN
685
-  (0.2ms) ROLLBACK
686
-  (0.2ms) BEGIN
687
-  (0.2ms) ROLLBACK
688
-  (0.1ms) BEGIN
689
-  (0.2ms) ROLLBACK
690
-  (0.1ms) BEGIN
691
-  (0.1ms) ROLLBACK
692
-  (0.2ms) BEGIN
693
-  (0.1ms) ROLLBACK
694
-  (0.1ms) BEGIN
695
-  (0.2ms) ROLLBACK
696
-  (0.2ms) BEGIN
697
-  (0.5ms) ROLLBACK
698
-  (0.3ms) BEGIN
699
-  (0.2ms) ROLLBACK
700
-  (0.1ms) BEGIN
701
-  (0.2ms) ROLLBACK
702
-  (0.1ms) BEGIN
703
-  (0.2ms) ROLLBACK
704
-  (0.1ms) BEGIN
705
-  (0.3ms) ROLLBACK
706
-  (0.2ms) BEGIN
707
-  (0.3ms) ROLLBACK
708
-  (0.1ms) BEGIN
709
-  (0.3ms) ROLLBACK
710
-  (0.1ms) BEGIN
711
-  (0.2ms) ROLLBACK
712
-  (0.2ms) BEGIN
713
-  (0.2ms) ROLLBACK
714
-  (0.1ms) BEGIN
715
-  (0.2ms) ROLLBACK
716
-  (0.2ms) BEGIN
717
-  (0.2ms) ROLLBACK
718
-  (0.3ms) BEGIN
719
-  (0.2ms) ROLLBACK
720
-  (0.2ms) BEGIN
721
-  (0.2ms) ROLLBACK
722
-  (0.1ms) BEGIN
723
-  (0.6ms) ROLLBACK
724
-  (0.2ms) BEGIN
725
-  (0.2ms) ROLLBACK
726
-  (0.2ms) BEGIN
727
-  (0.1ms) ROLLBACK
728
-  (0.1ms) BEGIN
729
-  (0.3ms) ROLLBACK
730
-  (0.1ms) BEGIN
731
-  (0.2ms) ROLLBACK
732
-  (0.1ms) BEGIN
733
-  (0.1ms) ROLLBACK
734
-  (0.1ms) BEGIN
735
-  (0.1ms) ROLLBACK
736
-  (0.1ms) BEGIN
737
-  (0.1ms) ROLLBACK
738
-  (0.1ms) BEGIN
739
-  (0.1ms) ROLLBACK
740
-  (0.1ms) BEGIN
741
-  (0.1ms) ROLLBACK
742
-  (0.6ms) BEGIN
743
-  (0.4ms) ROLLBACK
744
-  (0.1ms) BEGIN
745
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
746
- Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.861638', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.860939' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.860952') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
747
-  (0.2ms) ROLLBACK
748
-  (0.1ms) BEGIN
749
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
750
-  (0.2ms) SAVEPOINT active_record_1
751
- SQL (1.0ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:17:35.868Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:17:35.871612"], ["created_at", "2019-07-10 19:17:35.871648"], ["updated_at", "2019-07-10 19:17:35.871648"]]
752
-  (0.4ms) RELEASE SAVEPOINT active_record_1
753
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
754
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.876072', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.875605' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.875621') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
755
-  (0.2ms) SAVEPOINT active_record_1
756
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
757
-  (0.2ms) RELEASE SAVEPOINT active_record_1
758
- Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.880257', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.879920' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.879934') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
759
-  (0.2ms) ROLLBACK
760
-  (0.1ms) BEGIN
761
-  (0.3ms) SAVEPOINT active_record_1
762
- SQL (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:17:35.883Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:17:35.884693"], ["created_at", "2019-07-10 19:17:35.884719"], ["updated_at", "2019-07-10 19:17:35.884719"]]
763
-  (0.1ms) RELEASE SAVEPOINT active_record_1
764
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.886149', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.885850' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.885856') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
765
-  (0.1ms) SAVEPOINT active_record_1
766
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
767
-  (0.5ms) RELEASE SAVEPOINT active_record_1
768
- Delayed::Backend::ActiveRecord::Job Load (5.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.889895', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.889434' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.889456') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
769
-  (0.3ms) ROLLBACK
770
-  (0.1ms) BEGIN
771
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
772
-  (0.2ms) SAVEPOINT active_record_1
773
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:17:35.899Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:17:35.901521"], ["created_at", "2019-07-10 19:17:35.901549"], ["updated_at", "2019-07-10 19:17:35.901549"]]
774
-  (0.1ms) RELEASE SAVEPOINT active_record_1
775
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
776
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.903715', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.903496' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.903505') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
777
-  (0.2ms) SAVEPOINT active_record_1
778
- SQL (1.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]
779
-  (0.4ms) RELEASE SAVEPOINT active_record_1
780
- Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.908181', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.907763' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.907788') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
781
-  (0.2ms) ROLLBACK
782
-  (0.1ms) BEGIN
783
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
784
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:17:35.914294', locked_by = 'host:Sam-Moore-MBP13 pid:95384' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:17:35.913936' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:17:35.913948') OR locked_by = 'host:Sam-Moore-MBP13 pid:95384') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
785
-  (0.2ms) ROLLBACK
786
-  (0.1ms) BEGIN
787
-  (0.1ms) ROLLBACK
788
-  (0.2ms) BEGIN
789
-  (0.1ms) ROLLBACK
790
-  (0.1ms) BEGIN
791
-  (0.1ms) ROLLBACK
792
-  (0.2ms) BEGIN
793
-  (0.1ms) ROLLBACK
794
-  (0.1ms) BEGIN
795
-  (0.2ms) ROLLBACK
796
-  (0.2ms) BEGIN
797
-  (0.2ms) ROLLBACK
798
-  (0.1ms) BEGIN
799
-  (0.1ms) ROLLBACK
800
-  (0.1ms) BEGIN
801
-  (0.1ms) ROLLBACK
802
-  (0.1ms) BEGIN
803
-  (0.3ms) ROLLBACK
804
-  (0.1ms) BEGIN
805
-  (0.1ms) ROLLBACK
806
-  (0.1ms) BEGIN
807
-  (0.1ms) ROLLBACK
808
-  (0.1ms) BEGIN
809
-  (0.2ms) ROLLBACK
810
-  (0.1ms) BEGIN
811
-  (0.1ms) ROLLBACK
812
-  (0.1ms) BEGIN
813
-  (0.2ms) ROLLBACK
814
-  (0.2ms) BEGIN
815
-  (0.5ms) ROLLBACK
816
-  (0.2ms) BEGIN
817
-  (0.1ms) ROLLBACK
818
-  (0.1ms) BEGIN
819
-  (0.1ms) ROLLBACK
820
-  (0.1ms) BEGIN
821
-  (0.1ms) ROLLBACK
822
-  (0.1ms) BEGIN
823
-  (0.3ms) ROLLBACK
824
-  (0.2ms) BEGIN
825
-  (0.2ms) ROLLBACK
826
-  (0.1ms) BEGIN
827
-  (0.2ms) ROLLBACK
828
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
829
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
830
-  (6.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
831
-  (5.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
832
-  (8.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
833
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
834
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
835
-  (0.2ms) BEGIN
836
-  (0.2ms) COMMIT
837
-  (0.2ms) BEGIN
838
-  (0.3ms) ROLLBACK
839
-  (0.2ms) BEGIN
840
-  (0.1ms) ROLLBACK
841
-  (0.1ms) BEGIN
842
-  (0.2ms) ROLLBACK
843
-  (0.1ms) BEGIN
844
-  (0.2ms) ROLLBACK
845
-  (0.1ms) BEGIN
846
-  (0.7ms) ROLLBACK
847
-  (0.2ms) BEGIN
848
-  (0.3ms) ROLLBACK
849
-  (0.3ms) BEGIN
850
-  (0.2ms) ROLLBACK
851
-  (0.1ms) BEGIN
852
-  (0.2ms) ROLLBACK
853
-  (0.2ms) BEGIN
854
-  (0.5ms) ROLLBACK
855
-  (0.2ms) BEGIN
856
- SQL (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
857
-  (0.2ms) ROLLBACK
858
-  (0.1ms) BEGIN
859
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
860
-  (0.2ms) ROLLBACK
861
-  (1.4ms) BEGIN
862
- SQL (0.3ms) DELETE FROM "delayed_jobs"
863
-  (0.2ms) ROLLBACK
864
-  (0.2ms) BEGIN
865
- SQL (0.3ms) DELETE FROM "delayed_jobs"
866
-  (0.2ms) ROLLBACK
867
-  (0.1ms) BEGIN
868
-  (0.2ms) ROLLBACK
869
-  (0.2ms) BEGIN
870
- SQL (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''
871
-  (0.2ms) ROLLBACK
872
-  (0.2ms) BEGIN
873
- SQL (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
874
-  (0.2ms) ROLLBACK
875
-  (0.3ms) BEGIN
876
-  (0.2ms) ROLLBACK
877
-  (0.2ms) BEGIN
878
-  (0.2ms) SAVEPOINT active_record_1
879
- SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.774265"], ["created_at", "2019-07-10 19:22:15.774317"], ["updated_at", "2019-07-10 19:22:15.774317"]]
880
-  (0.2ms) RELEASE SAVEPOINT active_record_1
881
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
882
-  (0.2ms) ROLLBACK
883
-  (0.2ms) BEGIN
884
-  (0.2ms) SAVEPOINT active_record_1
885
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.791803"], ["created_at", "2019-07-10 19:22:15.791844"], ["updated_at", "2019-07-10 19:22:15.791844"]]
886
- SQL (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"77ae21cf-2b05-490b-87b8-d55101f2ac14\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:22:15.849Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"2\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:22:15.852540"], ["created_at", "2019-07-10 19:22:15.852590"], ["updated_at", "2019-07-10 19:22:15.852590"]]
887
-  (0.2ms) RELEASE SAVEPOINT active_record_1
888
-  (0.2ms) ROLLBACK
889
-  (0.2ms) BEGIN
890
-  (0.2ms) SAVEPOINT active_record_1
891
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.866497"], ["created_at", "2019-07-10 19:22:15.866534"], ["updated_at", "2019-07-10 19:22:15.866534"]]
892
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"4a869add-580e-405a-baad-39fa903b9d49\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:22:15.867Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"4\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:22:15.870452"], ["created_at", "2019-07-10 19:22:15.870501"], ["updated_at", "2019-07-10 19:22:15.870501"]]
893
-  (0.1ms) RELEASE SAVEPOINT active_record_1
894
- SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]
895
-  (0.2ms) ROLLBACK
896
-  (0.1ms) BEGIN
897
-  (2.0ms) SAVEPOINT active_record_1
898
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.892265"], ["created_at", "2019-07-10 19:22:15.892409"], ["updated_at", "2019-07-10 19:22:15.892409"]]
899
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"70cc8c64-822e-4765-87ef-910666730301\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:22:15.894Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:22:15.896250"], ["created_at", "2019-07-10 19:22:15.896280"], ["updated_at", "2019-07-10 19:22:15.896280"]]
900
-  (0.2ms) RELEASE SAVEPOINT active_record_1
901
- SQL (0.2ms) UPDATE "delayed_jobs" SET "handler" = '' WHERE "delayed_jobs"."id" = $1 [["id", 6]]
902
-  (0.1ms) ROLLBACK
903
-  (0.2ms) BEGIN
904
-  (0.3ms) SAVEPOINT active_record_1
905
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.913246"], ["created_at", "2019-07-10 19:22:15.913283"], ["updated_at", "2019-07-10 19:22:15.913283"]]
906
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"94ef764a-433f-4064-9f11-1c688fa5ec64\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:22:15.914Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"8\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:22:15.916010"], ["created_at", "2019-07-10 19:22:15.916034"], ["updated_at", "2019-07-10 19:22:15.916034"]]
907
-  (0.1ms) RELEASE SAVEPOINT active_record_1
908
-  (0.1ms) ROLLBACK
909
-  (0.3ms) BEGIN
910
-  (0.3ms) SAVEPOINT active_record_1
911
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:22:15.933482"], ["created_at", "2019-07-10 19:22:15.933521"], ["updated_at", "2019-07-10 19:22:15.933521"]]
912
- SQL (0.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"5ded2d36-5167-4989-89b6-2d6afacd7389\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:22:15.934Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:22:15.937481"], ["created_at", "2019-07-10 19:22:15.937547"], ["updated_at", "2019-07-10 19:22:15.937547"]]
913
-  (0.1ms) RELEASE SAVEPOINT active_record_1
914
- SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = NULL WHERE "delayed_jobs"."id" = $1 [["id", 10]]
915
-  (0.1ms) ROLLBACK
916
-  (0.1ms) BEGIN
917
-  (0.2ms) SAVEPOINT active_record_1
918
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:22:15.942Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:22:15.944876"], ["created_at", "2019-07-10 19:22:15.944908"], ["updated_at", "2019-07-10 19:22:15.944908"]]
919
-  (0.1ms) RELEASE SAVEPOINT active_record_1
920
- Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.947914', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.947295' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.947305') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
921
-  (0.2ms) SAVEPOINT active_record_1
922
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
923
-  (0.1ms) RELEASE SAVEPOINT active_record_1
924
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.951336', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.950994' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.951003') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
925
-  (0.2ms) ROLLBACK
926
-  (0.2ms) BEGIN
927
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
928
-  (0.2ms) SAVEPOINT active_record_1
929
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:22:15.958Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:22:15.960546"], ["created_at", "2019-07-10 19:22:15.960576"], ["updated_at", "2019-07-10 19:22:15.960576"]]
930
-  (0.1ms) RELEASE SAVEPOINT active_record_1
931
-  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
932
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.962503', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.962291' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.962299') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
933
-  (0.2ms) SAVEPOINT active_record_1
934
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
935
-  (0.2ms) RELEASE SAVEPOINT active_record_1
936
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.964974', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.964769' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.964779') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
937
-  (0.1ms) ROLLBACK
938
-  (0.1ms) BEGIN
939
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
940
-  (0.2ms) SAVEPOINT active_record_1
941
- SQL (1.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:22:15.968Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:22:15.970170"], ["created_at", "2019-07-10 19:22:15.970220"], ["updated_at", "2019-07-10 19:22:15.970220"]]
942
-  (0.1ms) RELEASE SAVEPOINT active_record_1
943
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
944
- Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.975185', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.974832' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.974845') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
945
-  (0.2ms) SAVEPOINT active_record_1
946
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]
947
-  (0.1ms) RELEASE SAVEPOINT active_record_1
948
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.978500', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.978293' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.978303') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
949
-  (0.2ms) ROLLBACK
950
-  (0.1ms) BEGIN
951
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
952
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.982896', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.982684' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.982693') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
953
-  (0.1ms) ROLLBACK
954
-  (0.1ms) BEGIN
955
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
956
- Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:22:15.988239', locked_by = 'host:Sam-Moore-MBP13 pid:95946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:22:15.987570' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:22:15.987607') OR locked_by = 'host:Sam-Moore-MBP13 pid:95946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
957
-  (0.1ms) ROLLBACK
958
-  (0.1ms) BEGIN
959
-  (0.3ms) ROLLBACK
960
-  (0.1ms) BEGIN
961
-  (0.1ms) ROLLBACK
962
-  (0.2ms) BEGIN
963
-  (0.1ms) ROLLBACK
964
-  (0.1ms) BEGIN
965
-  (0.2ms) ROLLBACK
966
-  (0.1ms) BEGIN
967
-  (0.2ms) ROLLBACK
968
-  (0.2ms) BEGIN
969
-  (0.2ms) ROLLBACK
970
-  (0.2ms) BEGIN
971
-  (0.3ms) ROLLBACK
972
-  (0.2ms) BEGIN
973
-  (0.3ms) ROLLBACK
974
-  (0.1ms) BEGIN
975
-  (0.9ms) ROLLBACK
976
-  (0.2ms) BEGIN
977
-  (0.2ms) ROLLBACK
978
-  (0.1ms) BEGIN
979
-  (0.2ms) ROLLBACK
980
-  (0.1ms) BEGIN
981
-  (0.1ms) ROLLBACK
982
-  (0.2ms) BEGIN
983
-  (0.8ms) ROLLBACK
984
-  (0.1ms) BEGIN
985
-  (0.1ms) ROLLBACK
986
-  (0.1ms) BEGIN
987
-  (0.1ms) ROLLBACK
988
-  (0.2ms) BEGIN
989
-  (0.3ms) ROLLBACK
990
-  (0.1ms) BEGIN
991
-  (0.2ms) ROLLBACK
992
-  (0.1ms) BEGIN
993
-  (0.1ms) ROLLBACK
994
-  (0.1ms) BEGIN
995
-  (0.1ms) ROLLBACK
996
-  (0.1ms) BEGIN
997
-  (0.1ms) ROLLBACK
998
-  (0.2ms) BEGIN
999
-  (0.1ms) ROLLBACK
1000
-  (0.1ms) BEGIN
1001
-  (0.3ms) ROLLBACK
1002
-  (0.4ms) BEGIN
1003
-  (0.3ms) ROLLBACK
1004
-  (0.4ms) BEGIN
1005
-  (0.2ms) ROLLBACK
1006
-  (0.1ms) BEGIN
1007
-  (0.2ms) ROLLBACK
1008
-  (0.2ms) BEGIN
1009
-  (0.1ms) ROLLBACK
1010
-  (0.1ms) BEGIN
1011
-  (0.1ms) ROLLBACK
1012
-  (0.1ms) BEGIN
1013
-  (0.2ms) ROLLBACK
1014
-  (0.2ms) BEGIN
1015
-  (0.1ms) ROLLBACK
1016
-  (0.2ms) BEGIN
1017
-  (0.1ms) ROLLBACK
1018
-  (0.2ms) BEGIN
1019
-  (0.5ms) ROLLBACK
1020
-  (0.2ms) BEGIN
1021
-  (0.1ms) ROLLBACK
1022
-  (0.2ms) BEGIN
1023
-  (0.3ms) ROLLBACK
1024
-  (0.1ms) BEGIN
1025
-  (0.3ms) ROLLBACK
1026
-  (0.1ms) BEGIN
1027
-  (0.2ms) ROLLBACK
1028
-  (1.1ms) BEGIN
1029
-  (0.2ms) ROLLBACK
1030
-  (0.2ms) BEGIN
1031
-  (0.2ms) ROLLBACK
1032
-  (0.1ms) BEGIN
1033
-  (0.1ms) ROLLBACK
1034
-  (0.2ms) BEGIN
1035
-  (0.1ms) ROLLBACK
1036
-  (0.1ms) BEGIN
1037
-  (0.1ms) ROLLBACK
1038
-  (0.1ms) BEGIN
1039
-  (0.1ms) ROLLBACK
1040
-  (0.1ms) BEGIN
1041
-  (0.1ms) ROLLBACK
1042
-  (0.1ms) BEGIN
1043
-  (0.5ms) ROLLBACK
1044
-  (0.4ms) BEGIN
1045
-  (0.2ms) ROLLBACK
1046
-  (0.2ms) BEGIN
1047
-  (0.3ms) ROLLBACK
1048
-  (0.1ms) BEGIN
1049
-  (0.1ms) ROLLBACK
1050
-  (0.1ms) BEGIN
1051
-  (0.1ms) ROLLBACK
1052
-  (0.2ms) BEGIN
1053
-  (0.2ms) ROLLBACK
1054
-  (0.1ms) BEGIN
1055
-  (0.1ms) ROLLBACK
1056
-  (0.2ms) BEGIN
1057
-  (0.1ms) ROLLBACK
1058
-  (0.1ms) BEGIN
1059
-  (0.2ms) ROLLBACK
1060
-  (0.1ms) BEGIN
1061
-  (0.1ms) ROLLBACK
1062
-  (0.1ms) BEGIN
1063
-  (0.1ms) ROLLBACK
1064
-  (0.2ms) BEGIN
1065
-  (0.2ms) ROLLBACK
1066
-  (0.4ms) BEGIN
1067
-  (0.2ms) ROLLBACK
1068
-  (0.1ms) BEGIN
1069
-  (0.4ms) ROLLBACK
1070
-  (0.1ms) BEGIN
1071
-  (0.2ms) ROLLBACK
1072
-  (0.1ms) BEGIN
1073
-  (0.1ms) ROLLBACK
1074
-  (0.2ms) BEGIN
1075
-  (0.2ms) ROLLBACK
1076
-  (0.1ms) BEGIN
1077
-  (0.3ms) ROLLBACK
1078
-  (0.3ms) BEGIN
1079
-  (0.2ms) ROLLBACK
1080
-  (0.2ms) BEGIN
1081
-  (0.2ms) ROLLBACK
1082
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1083
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1084
-  (3.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1085
-  (6.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1086
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1087
-  (5.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1088
- ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1089
-  (0.3ms) BEGIN
1090
-  (0.3ms) COMMIT
1091
-  (0.3ms) BEGIN
1092
-  (0.3ms) ROLLBACK
1093
-  (0.2ms) BEGIN
1094
-  (0.2ms) ROLLBACK
1095
-  (0.1ms) BEGIN
1096
-  (0.1ms) ROLLBACK
1097
-  (0.1ms) BEGIN
1098
-  (0.3ms) ROLLBACK
1099
-  (0.3ms) BEGIN
1100
-  (0.2ms) ROLLBACK
1101
-  (0.1ms) BEGIN
1102
-  (0.2ms) ROLLBACK
1103
-  (0.1ms) BEGIN
1104
-  (0.1ms) ROLLBACK
1105
-  (0.2ms) BEGIN
1106
-  (0.1ms) ROLLBACK
1107
-  (0.1ms) BEGIN
1108
-  (0.2ms) ROLLBACK
1109
-  (0.1ms) BEGIN
1110
-  (0.2ms) ROLLBACK
1111
-  (0.1ms) BEGIN
1112
-  (0.1ms) ROLLBACK
1113
-  (0.3ms) BEGIN
1114
-  (0.2ms) ROLLBACK
1115
-  (0.1ms) BEGIN
1116
-  (0.1ms) ROLLBACK
1117
-  (0.1ms) BEGIN
1118
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1119
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.218262', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.217651' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.217674') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1120
-  (0.2ms) ROLLBACK
1121
-  (0.2ms) BEGIN
1122
-  (0.3ms) SAVEPOINT active_record_1
1123
- SQL (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:23:14.221Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:23:14.255603"], ["created_at", "2019-07-10 19:23:14.255639"], ["updated_at", "2019-07-10 19:23:14.255639"]]
1124
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1125
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.257855', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.257606' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.257614') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1126
-  (0.2ms) SAVEPOINT active_record_1
1127
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1128
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1129
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.261913', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.261683' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.261694') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1130
-  (0.1ms) ROLLBACK
1131
-  (0.1ms) BEGIN
1132
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1133
-  (0.2ms) SAVEPOINT active_record_1
1134
- SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:23:14.268Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:23:14.272450"], ["created_at", "2019-07-10 19:23:14.272480"], ["updated_at", "2019-07-10 19:23:14.272480"]]
1135
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1136
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1137
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.276912', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.275873' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.275884') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1138
-  (0.2ms) SAVEPOINT active_record_1
1139
- SQL (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
1140
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1141
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.282097', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.281832' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.281845') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1142
-  (0.2ms) ROLLBACK
1143
-  (0.1ms) BEGIN
1144
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1145
-  (0.2ms) SAVEPOINT active_record_1
1146
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:23:14.287Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:23:14.292154"], ["created_at", "2019-07-10 19:23:14.292186"], ["updated_at", "2019-07-10 19:23:14.292186"]]
1147
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1148
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1149
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.297440', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.295395' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.297004') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1150
-  (0.2ms) SAVEPOINT active_record_1
1151
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
1152
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1153
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.302441', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.301318' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.301328') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1154
-  (0.2ms) ROLLBACK
1155
-  (0.1ms) BEGIN
1156
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1157
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:23:14.311250', locked_by = 'host:Sam-Moore-MBP13 pid:96208' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:23:14.310978' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:23:14.310988') OR locked_by = 'host:Sam-Moore-MBP13 pid:96208') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1158
-  (0.2ms) ROLLBACK
1159
-  (6.4ms) BEGIN
1160
-  (0.2ms) ROLLBACK
1161
-  (0.1ms) BEGIN
1162
-  (0.1ms) ROLLBACK
1163
-  (0.5ms) BEGIN
1164
-  (0.3ms) ROLLBACK
1165
-  (0.1ms) BEGIN
1166
-  (0.2ms) ROLLBACK
1167
-  (0.1ms) BEGIN
1168
-  (0.2ms) ROLLBACK
1169
-  (0.1ms) BEGIN
1170
-  (0.1ms) ROLLBACK
1171
-  (0.1ms) BEGIN
1172
-  (0.2ms) ROLLBACK
1173
-  (0.2ms) BEGIN
1174
-  (0.2ms) ROLLBACK
1175
-  (0.4ms) BEGIN
1176
-  (0.2ms) ROLLBACK
1177
-  (0.2ms) BEGIN
1178
-  (0.2ms) ROLLBACK
1179
-  (0.2ms) BEGIN
1180
-  (0.2ms) ROLLBACK
1181
-  (0.1ms) BEGIN
1182
-  (0.4ms) ROLLBACK
1183
-  (0.1ms) BEGIN
1184
-  (0.3ms) ROLLBACK
1185
-  (0.1ms) BEGIN
1186
-  (0.2ms) ROLLBACK
1187
-  (0.1ms) BEGIN
1188
-  (0.3ms) ROLLBACK
1189
-  (0.3ms) BEGIN
1190
-  (0.3ms) ROLLBACK
1191
-  (0.1ms) BEGIN
1192
-  (0.2ms) ROLLBACK
1193
-  (0.1ms) BEGIN
1194
-  (0.3ms) ROLLBACK
1195
-  (0.3ms) BEGIN
1196
-  (0.2ms) ROLLBACK
1197
-  (0.1ms) BEGIN
1198
-  (0.2ms) ROLLBACK
1199
-  (0.1ms) BEGIN
1200
-  (0.2ms) ROLLBACK
1201
-  (0.2ms) BEGIN
1202
-  (0.1ms) ROLLBACK
1203
-  (1.4ms) BEGIN
1204
-  (0.2ms) ROLLBACK
1205
-  (0.3ms) BEGIN
1206
-  (0.2ms) ROLLBACK
1207
-  (0.2ms) BEGIN
1208
-  (0.1ms) ROLLBACK
1209
-  (0.1ms) BEGIN
1210
-  (0.1ms) ROLLBACK
1211
-  (0.1ms) BEGIN
1212
-  (0.1ms) ROLLBACK
1213
-  (0.5ms) BEGIN
1214
-  (0.3ms) ROLLBACK
1215
-  (0.1ms) BEGIN
1216
-  (0.2ms) ROLLBACK
1217
-  (0.1ms) BEGIN
1218
-  (0.1ms) ROLLBACK
1219
-  (0.1ms) BEGIN
1220
-  (0.1ms) ROLLBACK
1221
-  (0.1ms) BEGIN
1222
-  (0.2ms) ROLLBACK
1223
-  (0.1ms) BEGIN
1224
-  (0.3ms) ROLLBACK
1225
-  (0.1ms) BEGIN
1226
-  (0.1ms) ROLLBACK
1227
-  (0.1ms) BEGIN
1228
-  (0.2ms) ROLLBACK
1229
-  (0.1ms) BEGIN
1230
-  (0.1ms) ROLLBACK
1231
-  (0.1ms) BEGIN
1232
-  (0.1ms) ROLLBACK
1233
-  (0.1ms) BEGIN
1234
-  (0.1ms) ROLLBACK
1235
-  (0.1ms) BEGIN
1236
-  (0.2ms) ROLLBACK
1237
-  (0.2ms) BEGIN
1238
-  (0.1ms) ROLLBACK
1239
-  (0.1ms) BEGIN
1240
-  (0.1ms) ROLLBACK
1241
-  (0.1ms) BEGIN
1242
-  (0.1ms) ROLLBACK
1243
-  (0.1ms) BEGIN
1244
-  (0.1ms) ROLLBACK
1245
-  (0.1ms) BEGIN
1246
-  (0.3ms) ROLLBACK
1247
-  (0.2ms) BEGIN
1248
-  (0.2ms) ROLLBACK
1249
-  (0.6ms) BEGIN
1250
-  (0.2ms) ROLLBACK
1251
-  (0.1ms) BEGIN
1252
-  (0.1ms) ROLLBACK
1253
-  (0.1ms) BEGIN
1254
-  (0.2ms) ROLLBACK
1255
-  (0.1ms) BEGIN
1256
-  (0.2ms) ROLLBACK
1257
-  (0.1ms) BEGIN
1258
-  (0.2ms) ROLLBACK
1259
-  (0.1ms) BEGIN
1260
-  (0.1ms) ROLLBACK
1261
-  (0.1ms) BEGIN
1262
-  (0.3ms) ROLLBACK
1263
-  (0.2ms) BEGIN
1264
-  (0.2ms) ROLLBACK
1265
-  (0.1ms) BEGIN
1266
-  (0.2ms) ROLLBACK
1267
-  (0.1ms) BEGIN
1268
-  (0.1ms) ROLLBACK
1269
-  (1.2ms) BEGIN
1270
-  (0.2ms) ROLLBACK
1271
-  (0.1ms) BEGIN
1272
-  (0.1ms) ROLLBACK
1273
-  (0.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1274
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1275
-  (9.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1276
-  (10.9ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1277
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1278
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1279
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1280
-  (0.2ms) BEGIN
1281
-  (0.1ms) COMMIT
1282
-  (0.2ms) BEGIN
1283
-  (0.3ms) ROLLBACK
1284
-  (0.1ms) BEGIN
1285
-  (0.3ms) ROLLBACK
1286
-  (0.1ms) BEGIN
1287
-  (0.1ms) ROLLBACK
1288
-  (0.1ms) BEGIN
1289
-  (0.2ms) ROLLBACK
1290
-  (0.2ms) BEGIN
1291
-  (0.4ms) ROLLBACK
1292
-  (0.7ms) BEGIN
1293
-  (2.4ms) ROLLBACK
1294
-  (0.2ms) BEGIN
1295
-  (0.2ms) ROLLBACK
1296
-  (0.2ms) BEGIN
1297
-  (0.2ms) ROLLBACK
1298
-  (0.1ms) BEGIN
1299
-  (0.2ms) ROLLBACK
1300
-  (0.1ms) BEGIN
1301
-  (0.1ms) ROLLBACK
1302
-  (0.1ms) BEGIN
1303
-  (0.2ms) ROLLBACK
1304
-  (0.1ms) BEGIN
1305
- #<Class:0x00007f869b8c26b0> Update All (1.5ms) UPDATE "delayed_jobs" SET "handler" = ''
1306
-  (0.5ms) ROLLBACK
1307
-  (0.2ms) BEGIN
1308
- #<Class:0x00007f869b929838> Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
1309
-  (0.2ms) ROLLBACK
1310
-  (0.1ms) BEGIN
1311
-  (0.2ms) ROLLBACK
1312
-  (0.1ms) BEGIN
1313
-  (0.2ms) ROLLBACK
1314
-  (0.2ms) BEGIN
1315
- #<Class:0x00007f8697f410f8> Destroy (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1316
-  (0.3ms) ROLLBACK
1317
-  (0.3ms) BEGIN
1318
- #<Class:0x00007f8698b162c0> Destroy (1.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1319
-  (0.6ms) ROLLBACK
1320
-  (0.2ms) BEGIN
1321
- #<Class:0x00007f8698b32e20> Destroy (0.3ms) DELETE FROM "delayed_jobs"
1322
-  (0.1ms) ROLLBACK
1323
-  (0.1ms) BEGIN
1324
- #<Class:0x00007f869b96ccf0> Destroy (0.3ms) DELETE FROM "delayed_jobs"
1325
-  (0.1ms) ROLLBACK
1326
-  (0.2ms) BEGIN
1327
-  (0.2ms) ROLLBACK
1328
-  (0.2ms) BEGIN
1329
-  (0.3ms) SAVEPOINT active_record_1
1330
- #<Class:0x00007f8698b38398> Create (3.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.507041"], ["created_at", "2019-07-10 19:24:43.507083"], ["updated_at", "2019-07-10 19:24:43.507083"]]
1331
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1332
- #<Class:0x00007f8698b38398> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1333
-  (0.2ms) ROLLBACK
1334
-  (0.1ms) BEGIN
1335
-  (0.2ms) SAVEPOINT active_record_1
1336
- #<Class:0x00007f8697fd2af8> Create (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.529704"], ["created_at", "2019-07-10 19:24:43.529766"], ["updated_at", "2019-07-10 19:24:43.529766"]]
1337
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"e0dcc1a1-b349-49e0-97b8-c1d9a5e8e639\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:24:43.533Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"2\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:24:43.537082"], ["created_at", "2019-07-10 19:24:43.537114"], ["updated_at", "2019-07-10 19:24:43.537114"]]
1338
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1339
-  (0.1ms) ROLLBACK
1340
-  (0.1ms) BEGIN
1341
-  (0.2ms) SAVEPOINT active_record_1
1342
- #<Class:0x00007f869d06aad8> Create (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.555371"], ["created_at", "2019-07-10 19:24:43.555407"], ["updated_at", "2019-07-10 19:24:43.555407"]]
1343
- Delayed::Backend::ActiveRecord::Job Create (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"1ca5f90c-5e07-449a-bcdb-c98c44737770\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:24:43.558Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"4\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:24:43.562671"], ["created_at", "2019-07-10 19:24:43.562709"], ["updated_at", "2019-07-10 19:24:43.562709"]]
1344
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1345
- #<Class:0x00007f869d06aad8> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]
1346
-  (0.1ms) ROLLBACK
1347
-  (0.2ms) BEGIN
1348
-  (0.3ms) SAVEPOINT active_record_1
1349
- #<Class:0x00007f8698c12408> Create (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.588156"], ["created_at", "2019-07-10 19:24:43.588211"], ["updated_at", "2019-07-10 19:24:43.588211"]]
1350
- Delayed::Backend::ActiveRecord::Job Create (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"45d09c04-50f6-4bff-afd5-47252288cca2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:24:43.591Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:24:43.595581"], ["created_at", "2019-07-10 19:24:43.595618"], ["updated_at", "2019-07-10 19:24:43.595618"]]
1351
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1352
- #<Class:0x00007f8698c12408> Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]
1353
-  (0.2ms) ROLLBACK
1354
-  (0.2ms) BEGIN
1355
-  (0.2ms) SAVEPOINT active_record_1
1356
- #<Class:0x00007f869babdca8> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.612650"], ["created_at", "2019-07-10 19:24:43.612697"], ["updated_at", "2019-07-10 19:24:43.612697"]]
1357
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"be5fc01a-348f-47db-8ff5-8cd523a5e234\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:24:43.615Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"8\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:24:43.617525"], ["created_at", "2019-07-10 19:24:43.617576"], ["updated_at", "2019-07-10 19:24:43.617576"]]
1358
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1359
-  (0.1ms) ROLLBACK
1360
-  (0.1ms) BEGIN
1361
-  (0.2ms) SAVEPOINT active_record_1
1362
- #<Class:0x00007f869bac6970> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:24:43.634695"], ["created_at", "2019-07-10 19:24:43.634752"], ["updated_at", "2019-07-10 19:24:43.634752"]]
1363
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"49364f9b-59b1-49dd-814f-87320562582a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:24:43.637Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:24:43.638931"], ["created_at", "2019-07-10 19:24:43.638956"], ["updated_at", "2019-07-10 19:24:43.638956"]]
1364
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1365
- #<Class:0x00007f869bac6970> Update (0.9ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]
1366
-  (0.3ms) ROLLBACK
1367
-  (0.2ms) BEGIN
1368
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1369
- Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.649718', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.649301' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.649310') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1370
-  (0.2ms) ROLLBACK
1371
-  (0.2ms) BEGIN
1372
-  (0.1ms) SAVEPOINT active_record_1
1373
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:24:43.652Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:24:43.654247"], ["created_at", "2019-07-10 19:24:43.654274"], ["updated_at", "2019-07-10 19:24:43.654274"]]
1374
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1375
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.655629', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.655400' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.655406') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1376
-  (0.2ms) SAVEPOINT active_record_1
1377
- Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
1378
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1379
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.658456', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.658229' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.658237') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1380
-  (0.1ms) ROLLBACK
1381
-  (0.1ms) BEGIN
1382
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1383
-  (0.2ms) SAVEPOINT active_record_1
1384
- Delayed::Backend::ActiveRecord::Job Create (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:24:43.663Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:24:43.664904"], ["created_at", "2019-07-10 19:24:43.664932"], ["updated_at", "2019-07-10 19:24:43.664932"]]
1385
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1386
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1387
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.667827', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.667548' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.667557') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1388
-  (0.1ms) SAVEPOINT active_record_1
1389
- Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
1390
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1391
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.670241', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.670023' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.670032') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1392
-  (0.2ms) ROLLBACK
1393
-  (0.1ms) BEGIN
1394
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1395
-  (0.2ms) SAVEPOINT active_record_1
1396
- Delayed::Backend::ActiveRecord::Job Create (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:24:43.673Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:24:43.675203"], ["created_at", "2019-07-10 19:24:43.675230"], ["updated_at", "2019-07-10 19:24:43.675230"]]
1397
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1398
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1399
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.679122', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.678814' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.678828') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1400
-  (0.1ms) SAVEPOINT active_record_1
1401
- Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]
1402
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1403
- Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.681929', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.681635' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.681658') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1404
-  (0.2ms) ROLLBACK
1405
-  (0.1ms) BEGIN
1406
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1407
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:24:43.686784', locked_by = 'host:Sam-Moore-MBP13 pid:96769' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:24:43.686543' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:24:43.686552') OR locked_by = 'host:Sam-Moore-MBP13 pid:96769') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1408
-  (0.2ms) ROLLBACK
1409
-  (0.1ms) BEGIN
1410
-  (0.2ms) ROLLBACK
1411
-  (0.1ms) BEGIN
1412
-  (0.1ms) ROLLBACK
1413
-  (0.1ms) BEGIN
1414
-  (0.3ms) ROLLBACK
1415
-  (0.3ms) BEGIN
1416
-  (0.1ms) ROLLBACK
1417
-  (0.1ms) BEGIN
1418
-  (0.2ms) ROLLBACK
1419
-  (0.2ms) BEGIN
1420
-  (0.1ms) ROLLBACK
1421
-  (0.2ms) BEGIN
1422
-  (0.2ms) ROLLBACK
1423
-  (0.1ms) BEGIN
1424
-  (0.1ms) ROLLBACK
1425
-  (0.1ms) BEGIN
1426
-  (0.1ms) ROLLBACK
1427
-  (0.1ms) BEGIN
1428
-  (0.1ms) ROLLBACK
1429
-  (0.1ms) BEGIN
1430
-  (0.1ms) ROLLBACK
1431
-  (0.1ms) BEGIN
1432
-  (0.2ms) ROLLBACK
1433
-  (0.1ms) BEGIN
1434
-  (0.5ms) ROLLBACK
1435
-  (0.1ms) BEGIN
1436
-  (0.2ms) ROLLBACK
1437
-  (0.1ms) BEGIN
1438
-  (0.2ms) ROLLBACK
1439
-  (0.1ms) BEGIN
1440
-  (0.1ms) ROLLBACK
1441
-  (0.1ms) BEGIN
1442
-  (0.2ms) ROLLBACK
1443
-  (0.1ms) BEGIN
1444
-  (0.1ms) ROLLBACK
1445
-  (0.1ms) BEGIN
1446
-  (0.1ms) ROLLBACK
1447
-  (0.3ms) BEGIN
1448
-  (0.5ms) ROLLBACK
1449
-  (0.1ms) BEGIN
1450
-  (0.2ms) ROLLBACK
1451
-  (0.1ms) BEGIN
1452
-  (0.1ms) ROLLBACK
1453
-  (0.4ms) BEGIN
1454
-  (0.3ms) ROLLBACK
1455
-  (0.1ms) BEGIN
1456
-  (0.2ms) ROLLBACK
1457
-  (0.1ms) BEGIN
1458
-  (0.2ms) ROLLBACK
1459
-  (0.2ms) BEGIN
1460
-  (0.1ms) ROLLBACK
1461
-  (0.1ms) BEGIN
1462
-  (0.2ms) ROLLBACK
1463
-  (0.1ms) BEGIN
1464
-  (0.5ms) ROLLBACK
1465
-  (0.1ms) BEGIN
1466
-  (0.2ms) ROLLBACK
1467
-  (0.1ms) BEGIN
1468
-  (0.2ms) ROLLBACK
1469
-  (0.2ms) BEGIN
1470
-  (0.2ms) ROLLBACK
1471
-  (0.1ms) BEGIN
1472
-  (0.1ms) ROLLBACK
1473
-  (0.1ms) BEGIN
1474
-  (0.1ms) ROLLBACK
1475
-  (0.1ms) BEGIN
1476
-  (0.2ms) ROLLBACK
1477
-  (0.2ms) BEGIN
1478
-  (0.2ms) ROLLBACK
1479
-  (0.1ms) BEGIN
1480
-  (0.1ms) ROLLBACK
1481
-  (0.1ms) BEGIN
1482
-  (0.1ms) ROLLBACK
1483
-  (0.1ms) BEGIN
1484
-  (0.5ms) ROLLBACK
1485
-  (0.2ms) BEGIN
1486
-  (0.2ms) ROLLBACK
1487
-  (0.2ms) BEGIN
1488
-  (0.2ms) ROLLBACK
1489
-  (0.2ms) BEGIN
1490
-  (0.2ms) ROLLBACK
1491
-  (0.1ms) BEGIN
1492
-  (0.1ms) ROLLBACK
1493
-  (0.1ms) BEGIN
1494
-  (0.1ms) ROLLBACK
1495
-  (0.1ms) BEGIN
1496
-  (0.1ms) ROLLBACK
1497
-  (0.1ms) BEGIN
1498
-  (0.2ms) ROLLBACK
1499
-  (0.1ms) BEGIN
1500
-  (0.2ms) ROLLBACK
1501
-  (0.1ms) BEGIN
1502
-  (0.2ms) ROLLBACK
1503
-  (0.1ms) BEGIN
1504
-  (0.2ms) ROLLBACK
1505
-  (0.2ms) BEGIN
1506
-  (0.2ms) ROLLBACK
1507
-  (0.1ms) BEGIN
1508
-  (0.2ms) ROLLBACK
1509
-  (0.1ms) BEGIN
1510
-  (0.2ms) ROLLBACK
1511
-  (0.2ms) BEGIN
1512
-  (0.2ms) ROLLBACK
1513
-  (0.2ms) BEGIN
1514
-  (0.2ms) ROLLBACK
1515
-  (0.1ms) BEGIN
1516
-  (0.1ms) ROLLBACK
1517
-  (0.1ms) BEGIN
1518
-  (0.1ms) ROLLBACK
1519
-  (0.1ms) BEGIN
1520
-  (0.2ms) ROLLBACK
1521
-  (0.1ms) BEGIN
1522
-  (1.1ms) ROLLBACK
1523
-  (0.2ms) BEGIN
1524
-  (0.2ms) ROLLBACK
1525
-  (0.1ms) BEGIN
1526
-  (0.3ms) ROLLBACK
1527
-  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1528
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1529
-  (3.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1530
-  (3.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1531
-  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1532
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1533
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1534
-  (0.2ms) BEGIN
1535
-  (0.2ms) COMMIT
1536
-  (0.4ms) BEGIN
1537
-  (0.3ms) ROLLBACK
1538
-  (0.1ms) BEGIN
1539
-  (0.3ms) ROLLBACK
1540
-  (0.2ms) BEGIN
1541
-  (0.2ms) ROLLBACK
1542
-  (0.3ms) BEGIN
1543
-  (0.2ms) ROLLBACK
1544
-  (0.1ms) BEGIN
1545
-  (0.3ms) ROLLBACK
1546
-  (0.2ms) BEGIN
1547
-  (0.2ms) ROLLBACK
1548
-  (0.1ms) BEGIN
1549
-  (0.3ms) ROLLBACK
1550
-  (0.5ms) BEGIN
1551
-  (0.2ms) ROLLBACK
1552
-  (0.1ms) BEGIN
1553
-  (0.2ms) ROLLBACK
1554
-  (0.1ms) BEGIN
1555
-  (0.1ms) ROLLBACK
1556
-  (0.1ms) BEGIN
1557
-  (0.1ms) ROLLBACK
1558
-  (0.1ms) BEGIN
1559
-  (0.3ms) ROLLBACK
1560
-  (0.3ms) BEGIN
1561
-  (0.2ms) ROLLBACK
1562
-  (0.3ms) BEGIN
1563
-  (0.1ms) ROLLBACK
1564
-  (0.1ms) BEGIN
1565
-  (0.1ms) ROLLBACK
1566
-  (0.8ms) BEGIN
1567
-  (0.2ms) ROLLBACK
1568
-  (0.1ms) BEGIN
1569
-  (0.3ms) ROLLBACK
1570
-  (0.1ms) BEGIN
1571
-  (0.2ms) ROLLBACK
1572
-  (0.2ms) BEGIN
1573
-  (0.9ms) ROLLBACK
1574
-  (0.3ms) BEGIN
1575
-  (0.2ms) ROLLBACK
1576
-  (0.2ms) BEGIN
1577
-  (0.2ms) ROLLBACK
1578
-  (0.2ms) BEGIN
1579
-  (0.2ms) ROLLBACK
1580
-  (0.3ms) BEGIN
1581
-  (3.7ms) ROLLBACK
1582
-  (0.2ms) BEGIN
1583
-  (1.1ms) ROLLBACK
1584
-  (0.1ms) BEGIN
1585
-  (0.2ms) ROLLBACK
1586
-  (0.2ms) BEGIN
1587
-  (0.3ms) ROLLBACK
1588
-  (0.2ms) BEGIN
1589
-  (0.2ms) ROLLBACK
1590
-  (0.1ms) BEGIN
1591
-  (0.1ms) ROLLBACK
1592
-  (0.1ms) BEGIN
1593
-  (0.1ms) ROLLBACK
1594
-  (0.2ms) BEGIN
1595
-  (0.3ms) ROLLBACK
1596
-  (0.1ms) BEGIN
1597
-  (0.1ms) ROLLBACK
1598
-  (0.1ms) BEGIN
1599
-  (0.2ms) ROLLBACK
1600
-  (0.1ms) BEGIN
1601
-  (0.2ms) ROLLBACK
1602
-  (0.2ms) BEGIN
1603
-  (0.7ms) ROLLBACK
1604
-  (0.2ms) BEGIN
1605
-  (0.1ms) ROLLBACK
1606
-  (0.2ms) BEGIN
1607
-  (0.3ms) ROLLBACK
1608
-  (0.1ms) BEGIN
1609
-  (0.1ms) ROLLBACK
1610
-  (0.1ms) BEGIN
1611
-  (0.1ms) ROLLBACK
1612
-  (0.1ms) BEGIN
1613
-  (0.1ms) ROLLBACK
1614
-  (0.2ms) BEGIN
1615
-  (0.1ms) ROLLBACK
1616
-  (0.2ms) BEGIN
1617
-  (0.1ms) ROLLBACK
1618
-  (0.1ms) BEGIN
1619
-  (0.2ms) ROLLBACK
1620
-  (0.1ms) BEGIN
1621
-  (0.1ms) ROLLBACK
1622
-  (0.6ms) BEGIN
1623
-  (0.3ms) ROLLBACK
1624
-  (0.1ms) BEGIN
1625
-  (0.3ms) ROLLBACK
1626
-  (0.1ms) BEGIN
1627
-  (0.2ms) ROLLBACK
1628
-  (0.1ms) BEGIN
1629
-  (0.1ms) ROLLBACK
1630
-  (0.1ms) BEGIN
1631
-  (0.2ms) ROLLBACK
1632
-  (0.1ms) BEGIN
1633
-  (0.1ms) ROLLBACK
1634
-  (0.1ms) BEGIN
1635
-  (0.1ms) ROLLBACK
1636
-  (0.2ms) BEGIN
1637
-  (0.3ms) ROLLBACK
1638
-  (0.2ms) BEGIN
1639
-  (0.2ms) ROLLBACK
1640
-  (0.3ms) BEGIN
1641
-  (0.2ms) ROLLBACK
1642
-  (0.1ms) BEGIN
1643
-  (0.3ms) ROLLBACK
1644
-  (0.2ms) BEGIN
1645
-  (0.2ms) ROLLBACK
1646
-  (0.2ms) BEGIN
1647
-  (0.1ms) ROLLBACK
1648
-  (0.1ms) BEGIN
1649
-  (0.1ms) ROLLBACK
1650
-  (0.1ms) BEGIN
1651
-  (0.1ms) ROLLBACK
1652
-  (0.1ms) BEGIN
1653
-  (0.1ms) ROLLBACK
1654
-  (0.1ms) BEGIN
1655
-  (0.2ms) ROLLBACK
1656
-  (0.1ms) BEGIN
1657
-  (0.1ms) ROLLBACK
1658
-  (0.1ms) BEGIN
1659
-  (0.1ms) ROLLBACK
1660
-  (0.1ms) BEGIN
1661
-  (0.1ms) ROLLBACK
1662
-  (0.1ms) BEGIN
1663
-  (0.2ms) ROLLBACK
1664
-  (0.1ms) BEGIN
1665
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1666
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.086907', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.086189' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.086202') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1667
-  (0.1ms) ROLLBACK
1668
-  (0.1ms) BEGIN
1669
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1670
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.092599', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.092395' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.092404') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1671
-  (0.2ms) ROLLBACK
1672
-  (0.1ms) BEGIN
1673
-  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1674
-  (0.3ms) SAVEPOINT active_record_1
1675
- SQL (1.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:37.104Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:37.119525"], ["created_at", "2019-07-10 19:27:37.119582"], ["updated_at", "2019-07-10 19:27:37.119582"]]
1676
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1677
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1678
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.124153', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.123828' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.123840') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1679
-  (0.2ms) SAVEPOINT active_record_1
1680
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1681
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1682
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.128055', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.127735' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.127748') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1683
-  (0.2ms) ROLLBACK
1684
-  (0.1ms) BEGIN
1685
-  (0.3ms) SAVEPOINT active_record_1
1686
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:37.131Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:37.134790"], ["created_at", "2019-07-10 19:27:37.134824"], ["updated_at", "2019-07-10 19:27:37.134824"]]
1687
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1688
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.136746', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.136468' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.136477') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1689
-  (0.1ms) SAVEPOINT active_record_1
1690
- SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
1691
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1692
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.139365', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.139167' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.139177') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1693
-  (0.1ms) ROLLBACK
1694
-  (0.1ms) BEGIN
1695
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1696
-  (0.2ms) SAVEPOINT active_record_1
1697
- SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:37.142Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:37.144074"], ["created_at", "2019-07-10 19:27:37.144104"], ["updated_at", "2019-07-10 19:27:37.144104"]]
1698
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1699
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1700
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.146460', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.146214' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.146224') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1701
-  (0.3ms) SAVEPOINT active_record_1
1702
- SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
1703
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1704
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:37.150256', locked_by = 'host:Sam-Moore-MBP13 pid:98556' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:37.149927' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:37.149941') OR locked_by = 'host:Sam-Moore-MBP13 pid:98556') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1705
-  (0.2ms) ROLLBACK
1706
-  (0.1ms) BEGIN
1707
-  (0.1ms) ROLLBACK
1708
-  (0.1ms) BEGIN
1709
-  (0.1ms) ROLLBACK
1710
-  (0.1ms) BEGIN
1711
-  (0.1ms) ROLLBACK
1712
-  (0.1ms) BEGIN
1713
-  (0.2ms) ROLLBACK
1714
-  (0.1ms) BEGIN
1715
-  (0.1ms) ROLLBACK
1716
-  (0.1ms) BEGIN
1717
-  (0.1ms) ROLLBACK
1718
-  (0.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1719
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1720
-  (3.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1721
-  (4.2ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1722
-  (4.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1723
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1724
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1725
-  (0.2ms) BEGIN
1726
-  (0.1ms) COMMIT
1727
-  (0.2ms) BEGIN
1728
-  (0.5ms) ROLLBACK
1729
-  (0.1ms) BEGIN
1730
-  (0.3ms) ROLLBACK
1731
-  (0.2ms) BEGIN
1732
-  (0.2ms) ROLLBACK
1733
-  (0.1ms) BEGIN
1734
-  (0.1ms) ROLLBACK
1735
-  (0.1ms) BEGIN
1736
-  (0.1ms) ROLLBACK
1737
-  (0.1ms) BEGIN
1738
-  (0.2ms) ROLLBACK
1739
-  (0.1ms) BEGIN
1740
-  (0.1ms) ROLLBACK
1741
-  (0.1ms) BEGIN
1742
-  (0.3ms) ROLLBACK
1743
-  (0.1ms) BEGIN
1744
-  (0.2ms) ROLLBACK
1745
-  (0.3ms) BEGIN
1746
-  (0.2ms) ROLLBACK
1747
-  (0.1ms) BEGIN
1748
-  (0.1ms) ROLLBACK
1749
-  (0.6ms) BEGIN
1750
-  (0.3ms) ROLLBACK
1751
-  (0.1ms) BEGIN
1752
-  (0.2ms) ROLLBACK
1753
-  (0.1ms) BEGIN
1754
-  (0.1ms) ROLLBACK
1755
-  (0.2ms) BEGIN
1756
-  (0.1ms) ROLLBACK
1757
-  (0.1ms) BEGIN
1758
-  (0.9ms) ROLLBACK
1759
-  (0.2ms) BEGIN
1760
-  (0.3ms) ROLLBACK
1761
-  (0.9ms) BEGIN
1762
-  (0.2ms) ROLLBACK
1763
-  (0.1ms) BEGIN
1764
-  (0.3ms) ROLLBACK
1765
-  (0.1ms) BEGIN
1766
-  (0.1ms) ROLLBACK
1767
-  (0.5ms) BEGIN
1768
- #<Class:0x00007fa3a05b3f60> Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
1769
-  (0.1ms) ROLLBACK
1770
-  (0.1ms) BEGIN
1771
- #<Class:0x00007fa3a0a12ea8> Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''
1772
-  (0.1ms) ROLLBACK
1773
-  (0.1ms) BEGIN
1774
- #<Class:0x00007fa3a3a526e0> Destroy (0.2ms) DELETE FROM "delayed_jobs"
1775
-  (0.1ms) ROLLBACK
1776
-  (0.1ms) BEGIN
1777
- #<Class:0x00007fa3a1233c40> Destroy (0.3ms) DELETE FROM "delayed_jobs"
1778
-  (0.1ms) ROLLBACK
1779
-  (0.1ms) BEGIN
1780
-  (0.2ms) ROLLBACK
1781
-  (0.4ms) BEGIN
1782
- #<Class:0x00007fa3a3ab03d0> Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1783
-  (0.1ms) ROLLBACK
1784
-  (0.1ms) BEGIN
1785
- #<Class:0x00007fa3a0a3d248> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
1786
-  (0.5ms) ROLLBACK
1787
-  (0.2ms) BEGIN
1788
-  (0.3ms) ROLLBACK
1789
-  (0.2ms) BEGIN
1790
-  (0.2ms) SAVEPOINT active_record_1
1791
- #<Class:0x00007fa3a1252b68> Create (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.216387"], ["created_at", "2019-07-10 19:27:54.216448"], ["updated_at", "2019-07-10 19:27:54.216448"]]
1792
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"71c53ffa-27d8-499a-b640-711acbdeace3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:27:54.220Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"1\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:27:54.223752"], ["created_at", "2019-07-10 19:27:54.223784"], ["updated_at", "2019-07-10 19:27:54.223784"]]
1793
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1794
- #<Class:0x00007fa3a1252b68> Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 1]]
1795
-  (0.2ms) ROLLBACK
1796
-  (0.1ms) BEGIN
1797
-  (0.8ms) SAVEPOINT active_record_1
1798
- #<Class:0x00007fa3a1296ac0> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.245352"], ["created_at", "2019-07-10 19:27:54.245490"], ["updated_at", "2019-07-10 19:27:54.245490"]]
1799
- Delayed::Backend::ActiveRecord::Job Create (0.6ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"d7e4d3f6-b046-469b-8a68-991f52a4b007\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:27:54.249Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"3\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:27:54.251538"], ["created_at", "2019-07-10 19:27:54.251583"], ["updated_at", "2019-07-10 19:27:54.251583"]]
1800
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1801
- #<Class:0x00007fa3a1296ac0> Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 3]]
1802
-  (0.3ms) ROLLBACK
1803
-  (0.2ms) BEGIN
1804
-  (1.7ms) SAVEPOINT active_record_1
1805
- #<Class:0x00007fa3a070e608> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.278316"], ["created_at", "2019-07-10 19:27:54.278443"], ["updated_at", "2019-07-10 19:27:54.278443"]]
1806
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"70ce0441-59c2-40fb-9870-925bdae8fee2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:27:54.283Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"5\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:27:54.286253"], ["created_at", "2019-07-10 19:27:54.286286"], ["updated_at", "2019-07-10 19:27:54.286286"]]
1807
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1808
-  (0.1ms) ROLLBACK
1809
-  (0.1ms) BEGIN
1810
-  (0.2ms) SAVEPOINT active_record_1
1811
- #<Class:0x00007fa3a0b7e8c8> Create (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.301750"], ["created_at", "2019-07-10 19:27:54.301788"], ["updated_at", "2019-07-10 19:27:54.301788"]]
1812
- Delayed::Backend::ActiveRecord::Job Create (0.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"6b3ba46b-ddf9-4179-8045-b464305a2687\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:27:54.305Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"7\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:27:54.307630"], ["created_at", "2019-07-10 19:27:54.307724"], ["updated_at", "2019-07-10 19:27:54.307724"]]
1813
-  (1.0ms) RELEASE SAVEPOINT active_record_1
1814
- #<Class:0x00007fa3a0b7e8c8> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]
1815
-  (0.2ms) ROLLBACK
1816
-  (0.1ms) BEGIN
1817
-  (0.2ms) SAVEPOINT active_record_1
1818
- #<Class:0x00007fa3a0ba6bc0> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.337370"], ["created_at", "2019-07-10 19:27:54.337416"], ["updated_at", "2019-07-10 19:27:54.337416"]]
1819
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1820
- #<Class:0x00007fa3a0ba6bc0> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]
1821
-  (0.2ms) ROLLBACK
1822
-  (0.1ms) BEGIN
1823
-  (0.8ms) SAVEPOINT active_record_1
1824
- #<Class:0x00007fa3a3ba3e90> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-07-10 19:27:54.361963"], ["created_at", "2019-07-10 19:27:54.362117"], ["updated_at", "2019-07-10 19:27:54.362117"]]
1825
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"05e32c2f-b10b-4e43-8d9c-a177c8ce3a9c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-07-10T19:27:54.367Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-07-10 19:27:54.368889"], ["created_at", "2019-07-10 19:27:54.368947"], ["updated_at", "2019-07-10 19:27:54.368947"]]
1826
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1827
-  (0.1ms) ROLLBACK
1828
-  (0.1ms) BEGIN
1829
-  (0.2ms) ROLLBACK
1830
-  (0.1ms) BEGIN
1831
-  (0.1ms) ROLLBACK
1832
-  (0.1ms) BEGIN
1833
-  (0.2ms) ROLLBACK
1834
-  (0.1ms) BEGIN
1835
-  (0.1ms) ROLLBACK
1836
-  (0.1ms) BEGIN
1837
-  (0.3ms) ROLLBACK
1838
-  (0.1ms) BEGIN
1839
-  (0.1ms) ROLLBACK
1840
-  (0.2ms) BEGIN
1841
-  (0.3ms) ROLLBACK
1842
-  (0.1ms) BEGIN
1843
-  (0.1ms) ROLLBACK
1844
-  (0.3ms) BEGIN
1845
-  (0.2ms) ROLLBACK
1846
-  (0.5ms) BEGIN
1847
-  (0.5ms) ROLLBACK
1848
-  (0.2ms) BEGIN
1849
-  (0.1ms) ROLLBACK
1850
-  (0.1ms) BEGIN
1851
-  (0.1ms) ROLLBACK
1852
-  (0.1ms) BEGIN
1853
-  (0.1ms) ROLLBACK
1854
-  (0.1ms) BEGIN
1855
-  (0.2ms) ROLLBACK
1856
-  (1.0ms) BEGIN
1857
-  (0.1ms) ROLLBACK
1858
-  (0.2ms) BEGIN
1859
-  (0.3ms) ROLLBACK
1860
-  (0.1ms) BEGIN
1861
-  (0.2ms) ROLLBACK
1862
-  (0.1ms) BEGIN
1863
-  (0.5ms) ROLLBACK
1864
-  (0.4ms) BEGIN
1865
-  (0.2ms) ROLLBACK
1866
-  (0.1ms) BEGIN
1867
-  (0.1ms) ROLLBACK
1868
-  (0.1ms) BEGIN
1869
-  (0.2ms) ROLLBACK
1870
-  (0.1ms) BEGIN
1871
-  (0.2ms) ROLLBACK
1872
-  (0.2ms) BEGIN
1873
-  (0.2ms) ROLLBACK
1874
-  (0.1ms) BEGIN
1875
-  (0.7ms) ROLLBACK
1876
-  (0.1ms) BEGIN
1877
-  (0.2ms) ROLLBACK
1878
-  (0.1ms) BEGIN
1879
-  (0.2ms) ROLLBACK
1880
-  (0.1ms) BEGIN
1881
-  (0.2ms) ROLLBACK
1882
-  (0.1ms) BEGIN
1883
-  (0.2ms) ROLLBACK
1884
-  (0.3ms) BEGIN
1885
-  (2.1ms) ROLLBACK
1886
-  (0.1ms) BEGIN
1887
-  (0.2ms) ROLLBACK
1888
-  (0.1ms) BEGIN
1889
-  (0.1ms) ROLLBACK
1890
-  (0.1ms) BEGIN
1891
-  (0.1ms) ROLLBACK
1892
-  (0.3ms) BEGIN
1893
-  (0.2ms) ROLLBACK
1894
-  (0.1ms) BEGIN
1895
-  (0.2ms) ROLLBACK
1896
-  (0.1ms) BEGIN
1897
-  (0.2ms) ROLLBACK
1898
-  (0.1ms) BEGIN
1899
-  (0.3ms) ROLLBACK
1900
-  (0.1ms) BEGIN
1901
-  (0.2ms) ROLLBACK
1902
-  (0.1ms) BEGIN
1903
-  (1.4ms) ROLLBACK
1904
-  (0.1ms) BEGIN
1905
-  (0.2ms) ROLLBACK
1906
-  (0.1ms) BEGIN
1907
-  (0.2ms) ROLLBACK
1908
-  (1.1ms) BEGIN
1909
-  (0.3ms) ROLLBACK
1910
-  (0.1ms) BEGIN
1911
-  (0.1ms) ROLLBACK
1912
-  (0.1ms) BEGIN
1913
-  (0.1ms) ROLLBACK
1914
-  (0.1ms) BEGIN
1915
-  (0.2ms) ROLLBACK
1916
-  (0.1ms) BEGIN
1917
-  (0.4ms) ROLLBACK
1918
-  (0.1ms) BEGIN
1919
-  (1.5ms) ROLLBACK
1920
-  (0.2ms) BEGIN
1921
-  (0.2ms) ROLLBACK
1922
-  (0.1ms) BEGIN
1923
-  (0.2ms) ROLLBACK
1924
-  (0.1ms) BEGIN
1925
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1926
- Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.622530', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.621952' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.621967') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1927
-  (0.2ms) ROLLBACK
1928
-  (0.1ms) BEGIN
1929
-  (0.3ms) SAVEPOINT active_record_1
1930
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:54.626Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:54.631183"], ["created_at", "2019-07-10 19:27:54.631220"], ["updated_at", "2019-07-10 19:27:54.631220"]]
1931
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1932
- Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.632991', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.632722' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.632729') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1933
-  (0.2ms) SAVEPOINT active_record_1
1934
- Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
1935
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1936
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.636087', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.635832' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.635841') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1937
-  (0.2ms) ROLLBACK
1938
-  (0.1ms) BEGIN
1939
-  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1940
-  (0.2ms) SAVEPOINT active_record_1
1941
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:54.643Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:54.672668"], ["created_at", "2019-07-10 19:27:54.672698"], ["updated_at", "2019-07-10 19:27:54.672698"]]
1942
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1943
-  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
1944
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.675106', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.674843' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.674851') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1945
-  (0.2ms) SAVEPOINT active_record_1
1946
- Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
1947
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1948
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.678262', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.678027' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.678036') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1949
-  (0.1ms) ROLLBACK
1950
-  (0.1ms) BEGIN
1951
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1952
-  (0.2ms) SAVEPOINT active_record_1
1953
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-07-10T19:27:54.681Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-07-10 19:27:54.683987"], ["created_at", "2019-07-10 19:27:54.684018"], ["updated_at", "2019-07-10 19:27:54.684018"]]
1954
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1955
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
1956
- Delayed::Backend::ActiveRecord::Job Load (1.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.686029', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.685785' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.685793') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1957
-  (0.1ms) SAVEPOINT active_record_1
1958
- Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]
1959
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
- Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.689996', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.689733' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.689742') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1961
-  (0.2ms) ROLLBACK
1962
-  (0.6ms) BEGIN
1963
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
1964
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-07-10 19:27:54.698264', locked_by = 'host:Sam-Moore-MBP13 pid:99305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-07-10 19:27:54.698018' AND (locked_at IS NULL OR locked_at < '2019-07-10 15:27:54.698029') OR locked_by = 'host:Sam-Moore-MBP13 pid:99305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
1965
-  (0.1ms) ROLLBACK
1966
-  (0.1ms) BEGIN
1967
-  (0.2ms) ROLLBACK
1968
-  (0.1ms) BEGIN
1969
-  (0.1ms) ROLLBACK
1970
-  (0.1ms) BEGIN
1971
-  (0.1ms) ROLLBACK
1972
-  (1.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1973
- SQL (2.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1974
-  (24.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1975
-  (44.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1976
-  (1.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1977
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1978
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1979
-  (0.2ms) BEGIN
1980
-  (0.2ms) COMMIT
1981
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1982
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1983
-  (3.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1984
-  (5.7ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1985
-  (3.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1986
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1987
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1988
-  (0.2ms) BEGIN
1989
-  (0.2ms) COMMIT
1990
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
1991
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1992
-  (4.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
1993
-  (9.7ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
1994
-  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1995
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1996
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1997
-  (0.2ms) BEGIN
1998
-  (0.1ms) COMMIT
1999
-  (0.2ms) BEGIN
2000
- #<Class:0x00007fe5dda41c38> Update All (1.1ms) UPDATE "delayed_jobs" SET locked_at is null
2001
-  (0.3ms) ROLLBACK
2002
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2003
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2004
-  (6.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2005
-  (5.2ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2006
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2007
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2008
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2009
-  (0.9ms) BEGIN
2010
-  (0.2ms) COMMIT
2011
-  (0.3ms) BEGIN
2012
- #<Class:0x00007fb5f7f19f28> Update All (0.5ms) UPDATE "delayed_jobs" SET locked_at = null
2013
-  (1.2ms) ROLLBACK
2014
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2015
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2016
-  (3.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2017
-  (4.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2018
-  (7.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2019
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2020
- ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2021
-  (0.2ms) BEGIN
2022
-  (0.2ms) COMMIT
2023
-  (0.2ms) BEGIN
2024
-  (0.2ms) ROLLBACK
2025
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2026
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2027
-  (4.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2028
-  (4.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2029
-  (2.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2030
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2031
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2032
-  (0.6ms) BEGIN
2033
-  (0.4ms) COMMIT
2034
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2035
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2036
-  (4.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2037
-  (5.4ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2038
-  (2.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2039
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2040
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2041
-  (0.5ms) BEGIN
2042
-  (0.1ms) COMMIT
2043
-  (0.3ms) BEGIN
2044
-  (0.3ms) ROLLBACK
2045
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2046
- SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2047
-  (3.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2048
-  (4.3ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2049
-  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2050
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2051
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2052
-  (0.2ms) BEGIN
2053
-  (0.1ms) COMMIT
2054
-  (0.3ms) BEGIN
2055
-  (0.3ms) ROLLBACK
2056
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2057
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2058
-  (3.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2059
-  (4.3ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2060
-  (4.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2061
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2062
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2063
-  (0.2ms) BEGIN
2064
-  (0.1ms) COMMIT
2065
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2066
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2067
-  (6.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2068
-  (4.6ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2069
-  (3.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2070
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2071
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2072
-  (0.2ms) BEGIN
2073
-  (0.2ms) COMMIT
2074
-  (0.2ms) BEGIN
2075
-  (0.3ms) ROLLBACK
2076
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2077
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2078
-  (4.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2079
-  (6.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2080
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2081
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2082
- ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2083
-  (0.2ms) BEGIN
2084
-  (0.2ms) COMMIT
2085
-  (0.5ms) BEGIN
2086
- #<Class:0x00007fb89d6818e0> Update All (0.5ms) UPDATE "delayed_jobs" SET \"locked_at\" = NULL
2087
-  (0.3ms) ROLLBACK
2088
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2089
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2090
-  (4.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2091
-  (5.1ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2092
-  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2093
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2094
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2095
-  (0.2ms) BEGIN
2096
-  (0.2ms) COMMIT
2097
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2098
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2099
-  (4.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2100
-  (6.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2101
-  (2.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2102
-  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2103
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2104
-  (0.2ms) BEGIN
2105
-  (0.1ms) COMMIT
2106
-  (0.2ms) BEGIN
2107
- #<Class:0x00007fc20a784a00> Update All (0.5ms) UPDATE "delayed_jobs" SET locked_at = null
2108
-  (0.3ms) ROLLBACK
2109
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2110
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2111
-  (7.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2112
-  (5.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2113
-  (1.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2114
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2115
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2116
-  (0.2ms) BEGIN
2117
-  (0.2ms) COMMIT
2118
-  (0.2ms) BEGIN
2119
- #<Class:0x00007fbaa3545438> Update All (0.6ms) UPDATE "delayed_jobs" SET locked_at = null
2120
-  (0.3ms) ROLLBACK
2121
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2122
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2123
-  (4.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2124
-  (4.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2125
-  (1.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2126
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2127
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2128
-  (0.2ms) BEGIN
2129
-  (0.1ms) COMMIT
2130
-  (0.4ms) BEGIN
2131
- #<Class:0x00007fc33fe694e8> Update All (0.6ms) UPDATE "delayed_jobs" SET locked_at = null
2132
-  (0.4ms) ROLLBACK
2133
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2134
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2135
-  (7.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2136
-  (28.0ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2137
-  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2138
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2139
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2140
-  (0.3ms) BEGIN
2141
-  (0.2ms) COMMIT
2142
-  (4.6ms) BEGIN
2143
- #<Class:0x00007f8c33fb5920> Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2144
-  (1.2ms) ROLLBACK
2145
-  (0.3ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2146
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2147
-  (3.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2148
-  (4.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2149
-  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2150
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2151
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2152
-  (0.3ms) BEGIN
2153
-  (0.3ms) COMMIT
2154
-  (0.3ms) BEGIN
2155
- #<Class:0x00007fdce9729688> Update All (0.6ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2156
-  (0.2ms) ROLLBACK
2157
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2158
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2159
-  (5.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2160
-  (4.2ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2161
-  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2162
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2163
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2164
-  (0.6ms) BEGIN
2165
-  (0.3ms) COMMIT
2166
-  (0.2ms) BEGIN
2167
- #<Class:0x00007f9cefb15290> Update All (0.6ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2168
-  (0.3ms) ROLLBACK
2169
-  (3.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2170
- SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2171
-  (8.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2172
-  (18.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2173
-  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2174
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2175
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2176
-  (0.2ms) BEGIN
2177
-  (0.1ms) COMMIT
2178
-  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2179
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2180
-  (5.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2181
-  (7.3ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2182
-  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2183
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2184
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2185
-  (0.2ms) BEGIN
2186
-  (0.1ms) COMMIT
2187
-  (0.2ms) BEGIN
2188
- #<Class:0x00007ffa055bf110> Update All (0.8ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2189
-  (0.2ms) ROLLBACK
2190
-  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2191
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2192
-  (4.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2193
-  (7.1ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2194
-  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2195
-  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2196
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2197
-  (0.2ms) BEGIN
2198
-  (0.1ms) COMMIT
2199
-  (0.2ms) BEGIN
2200
- #<Class:0x00007fcc1e1c9048> Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2201
-  (0.3ms) ROLLBACK
2202
-  (9.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2203
- SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2204
-  (9.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2205
-  (16.7ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2206
-  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2207
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2208
- ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2209
-  (0.3ms) BEGIN
2210
-  (0.1ms) COMMIT
2211
-  (0.3ms) BEGIN
2212
- #<Class:0x00007f96f83352c0> Update All (2.6ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2213
-  (0.5ms) ROLLBACK
2214
-  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2215
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2216
-  (4.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2217
-  (5.6ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2218
-  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2219
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2220
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2221
-  (0.2ms) BEGIN
2222
-  (0.1ms) COMMIT
2223
-  (0.3ms) BEGIN
2224
- #<Class:0x00007fdb35d0d578> Update All (1.1ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2225
-  (0.3ms) ROLLBACK
2226
-  (1.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2227
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2228
-  (6.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2229
-  (13.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2230
-  (3.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2231
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2232
- ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2233
-  (0.5ms) BEGIN
2234
-  (0.4ms) ROLLBACK
2235
-  (0.1ms) BEGIN
2236
-  (0.1ms) ROLLBACK
2237
-  (0.2ms) BEGIN
2238
-  (0.3ms) ROLLBACK
2239
-  (0.1ms) BEGIN
2240
-  (0.2ms) ROLLBACK
2241
-  (0.3ms) BEGIN
2242
-  (0.2ms) ROLLBACK
2243
-  (0.1ms) BEGIN
2244
-  (0.2ms) ROLLBACK
2245
-  (0.2ms) BEGIN
2246
-  (0.2ms) ROLLBACK
2247
-  (0.1ms) BEGIN
2248
-  (0.3ms) ROLLBACK
2249
-  (0.1ms) BEGIN
2250
-  (0.1ms) ROLLBACK
2251
-  (0.1ms) BEGIN
2252
-  (0.1ms) ROLLBACK
2253
-  (0.1ms) BEGIN
2254
-  (0.1ms) ROLLBACK
2255
-  (0.1ms) BEGIN
2256
-  (0.2ms) ROLLBACK
2257
-  (0.1ms) BEGIN
2258
-  (0.1ms) ROLLBACK
2259
-  (0.1ms) BEGIN
2260
-  (0.1ms) ROLLBACK
2261
-  (0.1ms) BEGIN
2262
-  (0.5ms) ROLLBACK
2263
-  (0.3ms) BEGIN
2264
-  (0.3ms) ROLLBACK
2265
-  (0.2ms) BEGIN
2266
-  (0.2ms) ROLLBACK
2267
-  (0.1ms) BEGIN
2268
-  (0.2ms) ROLLBACK
2269
-  (0.1ms) BEGIN
2270
-  (0.2ms) ROLLBACK
2271
-  (0.2ms) BEGIN
2272
-  (0.3ms) ROLLBACK
2273
-  (0.1ms) BEGIN
2274
-  (0.2ms) ROLLBACK
2275
-  (0.1ms) BEGIN
2276
-  (0.1ms) ROLLBACK
2277
-  (0.2ms) BEGIN
2278
-  (0.2ms) ROLLBACK
2279
-  (0.1ms) BEGIN
2280
-  (0.1ms) ROLLBACK
2281
-  (0.1ms) BEGIN
2282
-  (0.1ms) ROLLBACK
2283
-  (0.2ms) BEGIN
2284
-  (0.3ms) ROLLBACK
2285
-  (0.1ms) BEGIN
2286
-  (0.2ms) ROLLBACK
2287
-  (0.1ms) BEGIN
2288
-  (0.2ms) ROLLBACK
2289
-  (0.1ms) BEGIN
2290
-  (0.1ms) ROLLBACK
2291
-  (0.1ms) BEGIN
2292
-  (0.2ms) ROLLBACK
2293
-  (0.1ms) BEGIN
2294
-  (0.1ms) ROLLBACK
2295
-  (0.3ms) BEGIN
2296
-  (0.2ms) ROLLBACK
2297
-  (0.1ms) BEGIN
2298
-  (0.2ms) ROLLBACK
2299
-  (0.1ms) BEGIN
2300
-  (0.2ms) ROLLBACK
2301
-  (0.1ms) BEGIN
2302
-  (0.5ms) ROLLBACK
2303
-  (0.3ms) BEGIN
2304
-  (0.3ms) ROLLBACK
2305
-  (0.2ms) BEGIN
2306
-  (0.2ms) ROLLBACK
2307
-  (0.1ms) BEGIN
2308
-  (0.2ms) ROLLBACK
2309
-  (0.1ms) BEGIN
2310
-  (0.1ms) ROLLBACK
2311
-  (0.1ms) BEGIN
2312
-  (0.2ms) ROLLBACK
2313
-  (0.1ms) BEGIN
2314
-  (0.2ms) ROLLBACK
2315
-  (0.3ms) BEGIN
2316
-  (0.8ms) ROLLBACK
2317
-  (0.3ms) BEGIN
2318
-  (0.2ms) ROLLBACK
2319
-  (0.1ms) BEGIN
2320
-  (0.2ms) ROLLBACK
2321
-  (0.2ms) BEGIN
2322
-  (0.2ms) ROLLBACK
2323
-  (0.1ms) BEGIN
2324
-  (0.1ms) ROLLBACK
2325
-  (0.1ms) BEGIN
2326
-  (0.2ms) ROLLBACK
2327
-  (0.1ms) BEGIN
2328
-  (0.3ms) ROLLBACK
2329
-  (0.2ms) BEGIN
2330
-  (0.2ms) ROLLBACK
2331
-  (0.1ms) BEGIN
2332
-  (0.1ms) ROLLBACK
2333
-  (0.2ms) BEGIN
2334
-  (0.2ms) SAVEPOINT active_record_1
2335
- Delayed::Backend::ActiveRecord::Job Create (0.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.407Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.426521"], ["created_at", "2019-09-13 16:08:04.426575"], ["updated_at", "2019-09-13 16:08:04.426575"]]
2336
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2337
- Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.429596', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.429073' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.429082') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2338
-  (0.3ms) SAVEPOINT active_record_1
2339
- Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2340
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2341
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.434967', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.434616' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.434629') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2342
-  (0.2ms) ROLLBACK
2343
-  (0.1ms) BEGIN
2344
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
2345
-  (0.2ms) SAVEPOINT active_record_1
2346
- Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.442Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.443861"], ["created_at", "2019-09-13 16:08:04.443892"], ["updated_at", "2019-09-13 16:08:04.443892"]]
2347
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2348
-  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
2349
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.447239', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.446824' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.446841') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2350
-  (0.2ms) SAVEPOINT active_record_1
2351
- Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
2352
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2353
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.450631', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.450321' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.450333') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2354
-  (0.2ms) ROLLBACK
2355
-  (0.1ms) BEGIN
2356
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
2357
-  (0.2ms) SAVEPOINT active_record_1
2358
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.454Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.455893"], ["created_at", "2019-09-13 16:08:04.455921"], ["updated_at", "2019-09-13 16:08:04.455921"]]
2359
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2360
-  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
2361
- Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.458541', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.458170' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.458179') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2362
-  (0.2ms) SAVEPOINT active_record_1
2363
- Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
2364
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2365
- Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.461295', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.460995' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.461005') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2366
-  (0.1ms) ROLLBACK
2367
-  (0.1ms) BEGIN
2368
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
2369
- Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.467404', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.466452' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.466490') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2370
-  (0.2ms) ROLLBACK
2371
-  (0.2ms) BEGIN
2372
-  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
2373
- Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.473654', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.473318' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.473330') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2374
-  (0.1ms) ROLLBACK
2375
-  (0.1ms) BEGIN
2376
-  (0.1ms) ROLLBACK
2377
-  (0.1ms) BEGIN
2378
-  (0.1ms) ROLLBACK
2379
-  (0.1ms) BEGIN
2380
-  (0.3ms) ROLLBACK
2381
-  (0.1ms) BEGIN
2382
-  (0.1ms) ROLLBACK
2383
-  (0.2ms) BEGIN
2384
-  (0.1ms) ROLLBACK
2385
-  (0.1ms) BEGIN
2386
-  (0.1ms) ROLLBACK
2387
-  (0.1ms) BEGIN
2388
-  (0.2ms) ROLLBACK
2389
-  (0.1ms) BEGIN
2390
-  (0.1ms) ROLLBACK
2391
-  (0.1ms) BEGIN
2392
-  (0.2ms) ROLLBACK
2393
-  (0.1ms) BEGIN
2394
-  (0.1ms) ROLLBACK
2395
-  (0.1ms) BEGIN
2396
-  (0.1ms) ROLLBACK
2397
-  (0.1ms) BEGIN
2398
-  (0.2ms) ROLLBACK
2399
-  (0.1ms) BEGIN
2400
-  (0.3ms) SAVEPOINT active_record_1
2401
- #<Class:0x00007f984dfb7a60> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.529164"], ["created_at", "2019-09-13 16:08:04.529206"], ["updated_at", "2019-09-13 16:08:04.529206"]]
2402
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2403
- #<Class:0x00007f984dfb7a60> Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]
2404
-  (0.2ms) ROLLBACK
2405
-  (0.1ms) BEGIN
2406
-  (0.2ms) SAVEPOINT active_record_1
2407
- #<Class:0x00007f984ebea080> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.555858"], ["created_at", "2019-09-13 16:08:04.555895"], ["updated_at", "2019-09-13 16:08:04.555895"]]
2408
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"3277d88b-04bf-43fa-9a87-84919973801e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.558Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"5\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.562411"], ["created_at", "2019-09-13 16:08:04.562444"], ["updated_at", "2019-09-13 16:08:04.562444"]]
2409
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2410
- #<Class:0x00007f984ebea080> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]
2411
-  (0.2ms) ROLLBACK
2412
-  (0.1ms) BEGIN
2413
-  (0.3ms) SAVEPOINT active_record_1
2414
- #<Class:0x00007f984e57c590> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.579633"], ["created_at", "2019-09-13 16:08:04.579688"], ["updated_at", "2019-09-13 16:08:04.579688"]]
2415
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"b9b84453-7493-4e7a-aed4-c26a0240f95f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.583Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"7\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.585117"], ["created_at", "2019-09-13 16:08:04.585152"], ["updated_at", "2019-09-13 16:08:04.585152"]]
2416
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2417
-  (0.1ms) ROLLBACK
2418
-  (0.1ms) BEGIN
2419
-  (0.3ms) SAVEPOINT active_record_1
2420
- #<Class:0x00007f984e587580> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.598271"], ["created_at", "2019-09-13 16:08:04.598310"], ["updated_at", "2019-09-13 16:08:04.598310"]]
2421
- Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"53d8c08d-077d-4892-a225-3a3fd1e1fc75\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.602Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"9\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.623125"], ["created_at", "2019-09-13 16:08:04.623162"], ["updated_at", "2019-09-13 16:08:04.623162"]]
2422
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2423
- #<Class:0x00007f984e587580> Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 9]]
2424
-  (0.2ms) ROLLBACK
2425
-  (0.2ms) BEGIN
2426
-  (0.2ms) SAVEPOINT active_record_1
2427
- #<Class:0x00007f984e35d2c8> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.638487"], ["created_at", "2019-09-13 16:08:04.638522"], ["updated_at", "2019-09-13 16:08:04.638522"]]
2428
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"9e974ebc-7f48-438e-a743-00fafe6fff16\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.640Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"11\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.642295"], ["created_at", "2019-09-13 16:08:04.642319"], ["updated_at", "2019-09-13 16:08:04.642319"]]
2429
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2430
- #<Class:0x00007f984e35d2c8> Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]
2431
-  (0.1ms) ROLLBACK
2432
-  (0.1ms) BEGIN
2433
-  (0.2ms) SAVEPOINT active_record_1
2434
- #<Class:0x00007f984dd0b0f0> Create (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.656927"], ["created_at", "2019-09-13 16:08:04.656963"], ["updated_at", "2019-09-13 16:08:04.656963"]]
2435
- Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"6280fd1a-693f-4929-8357-5a01ed7c70c2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.659Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"13\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.660811"], ["created_at", "2019-09-13 16:08:04.660834"], ["updated_at", "2019-09-13 16:08:04.660834"]]
2436
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2437
-  (0.1ms) ROLLBACK
2438
-  (0.1ms) BEGIN
2439
-  (0.2ms) ROLLBACK
2440
-  (0.1ms) BEGIN
2441
- #<Class:0x00007f9851168f28> Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]
2442
-  (0.1ms) ROLLBACK
2443
-  (0.1ms) BEGIN
2444
- #<Class:0x00007f984de0c490> Update All (0.3ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2445
-  (0.1ms) ROLLBACK
2446
-  (0.1ms) BEGIN
2447
- #<Class:0x00007f98511a00b8> Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]
2448
-  (0.2ms) ROLLBACK
2449
-  (0.1ms) BEGIN
2450
- #<Class:0x00007f98511f22a0> Destroy (0.3ms) DELETE FROM "delayed_jobs"
2451
-  (0.1ms) ROLLBACK
2452
-  (0.1ms) BEGIN
2453
- #<Class:0x00007f985122a358> Destroy (0.3ms) DELETE FROM "delayed_jobs"
2454
-  (0.1ms) ROLLBACK
2455
-  (0.1ms) BEGIN
2456
-  (0.2ms) ROLLBACK
2457
-  (0.2ms) BEGIN
2458
-  (0.2ms) ROLLBACK
2459
-  (0.1ms) BEGIN
2460
- #<Class:0x00007f985127abf0> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2461
-  (0.2ms) ROLLBACK
2462
-  (0.1ms) BEGIN
2463
- #<Class:0x00007f98512a5bc0> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2464
-  (0.1ms) ROLLBACK
2465
-  (0.1ms) BEGIN
2466
-  (0.2ms) ROLLBACK
2467
-  (0.1ms) BEGIN
2468
-  (0.2ms) ROLLBACK
2469
-  (0.1ms) BEGIN
2470
-  (0.1ms) ROLLBACK
2471
-  (0.1ms) BEGIN
2472
-  (0.2ms) ROLLBACK
2473
-  (0.1ms) BEGIN
2474
-  (0.2ms) ROLLBACK
2475
-  (0.1ms) BEGIN
2476
-  (0.1ms) ROLLBACK
2477
-  (0.1ms) BEGIN
2478
-  (0.1ms) ROLLBACK
2479
-  (0.1ms) BEGIN
2480
-  (0.2ms) ROLLBACK
2481
-  (0.1ms) BEGIN
2482
-  (0.1ms) ROLLBACK