(0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (3.1ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (1.3ms) ROLLBACK  (1.8ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-25 22:00:18.083805"], ["created_at", "2019-10-25 22:00:18.083867"], ["updated_at", "2019-10-25 22:00:18.083867"]] 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\":\"dd35d555-dc4a-402c-9177-389c9bfb8393\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:00:18.163Z\",\"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-10-25 22:00:18.168728"], ["created_at", "2019-10-25 22:00:18.168781"], ["updated_at", "2019-10-25 22:00:18.168781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:00:18.191046"], ["created_at", "2019-10-25 22:00:18.191093"], ["updated_at", "2019-10-25 22:00:18.191093"]] 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\":\"2ceaf71d-4942-459a-9707-c8898b166248\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:00:18.194Z\",\"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-10-25 22:00:18.196414"], ["created_at", "2019-10-25 22:00:18.196449"], ["updated_at", "2019-10-25 22:00:18.196449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:00:18.220788"], ["created_at", "2019-10-25 22:00:18.220833"], ["updated_at", "2019-10-25 22:00:18.220833"]] 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\":\"64dd38b1-a990-4a21-812d-e6ef31cef575\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:00:18.223Z\",\"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-10-25 22:00:18.225714"], ["created_at", "2019-10-25 22:00:18.225746"], ["updated_at", "2019-10-25 22:00:18.225746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:00:18.249202"], ["created_at", "2019-10-25 22:00:18.249287"], ["updated_at", "2019-10-25 22:00:18.249287"]] 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\":\"5874ac14-6ab3-4a9a-b0aa-7dde4fa5a24a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:00:18.252Z\",\"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-10-25 22:00:18.254943"], ["created_at", "2019-10-25 22:00:18.254977"], ["updated_at", "2019-10-25 22:00:18.254977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:00:18.284382"], ["created_at", "2019-10-25 22:00:18.284436"], ["updated_at", "2019-10-25 22:00:18.284436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-25 22:00:18.310664"], ["created_at", "2019-10-25 22:00:18.310710"], ["updated_at", "2019-10-25 22:00:18.310710"]] 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\":\"dcbf527e-01bc-4941-a1d4-8caf022b8b00\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:00:18.314Z\",\"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-10-25 22:00:18.316207"], ["created_at", "2019-10-25 22:00:18.316250"], ["updated_at", "2019-10-25 22:00:18.316250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs"  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (2.5ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.644270', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.643599' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.643615') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-25T22:00:18.653Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:00:18.656668"], ["created_at", "2019-10-25 22:00:18.656704"], ["updated_at", "2019-10-25 22:00:18.656704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.659029', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.658694' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.658704') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.662575', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.662227' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.662241') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-25T22:00:18.677Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:00:18.678749"], ["created_at", "2019-10-25 22:00:18.678782"], ["updated_at", "2019-10-25 22:00:18.678782"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.686492', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.686133' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.686146') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.689816', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.689462' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.689476') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.5ms) 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-10-25T22:00:18.696Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:00:18.702344"], ["created_at", "2019-10-25 22:00:18.702392"], ["updated_at", "2019-10-25 22:00:18.702392"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.706097', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.705742' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.705754') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.709438', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.709098' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.709112') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:00:18.722808', locked_by = 'host:Nathan-Griffith-MBP13 pid:99897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:00:18.722463' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:00:18.722474') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:99897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (46.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.5ms) BEGIN  (0.3ms) COMMIT  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.305413', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.303801' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.303873') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.323651', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.322714' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.322727') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-25T22:01:09.330Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:09.362351"], ["created_at", "2019-10-25 22:01:09.362407"], ["updated_at", "2019-10-25 22:01:09.362407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.368196', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.367840' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.367857') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.374431', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.374100' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.374115') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-25T22:01:09.390Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:09.394704"], ["created_at", "2019-10-25 22:01:09.394740"], ["updated_at", "2019-10-25 22:01:09.394740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.399233', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.398062' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.398076') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.403875', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.403573' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.403588') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) 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-10-25T22:01:09.414Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:09.418141"], ["created_at", "2019-10-25 22:01:09.418179"], ["updated_at", "2019-10-25 22:01:09.418179"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.434421', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.423375' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.423388') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:09.438159', locked_by = 'host:Nathan-Griffith-MBP13 pid:186' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:09.437862' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:09.437877') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:186') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.7ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (1.0ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.7ms) ROLLBACK  (1.2ms) BEGIN  (0.7ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (3.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.2ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-25T22:01:23.214Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:23.232486"], ["created_at", "2019-10-25 22:01:23.232529"], ["updated_at", "2019-10-25 22:01:23.232529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.235783', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.235302' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.235313') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.240337', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.239792' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.239806') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 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-10-25T22:01:23.247Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:23.250966"], ["created_at", "2019-10-25 22:01:23.250999"], ["updated_at", "2019-10-25 22:01:23.250999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.252899', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.252581' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.252590') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.256174', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.255862' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.255874') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.2ms) ROLLBACK  (1.3ms) BEGIN  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-25T22:01:23.266Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:23.268959"], ["created_at", "2019-10-25 22:01:23.268990"], ["updated_at", "2019-10-25 22:01:23.268990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.271574', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.271286' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.271297') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (1.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.277921', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.277567' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.277580') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.289461', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.289137' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.289148') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) ROLLBACK  (1.2ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:23.300208', locked_by = 'host:Nathan-Griffith-MBP13 pid:204' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:23.299908' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:23.299920') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:204') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (4.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (2.6ms) ROLLBACK  (0.2ms) BEGIN # Destroy (2.0ms) DELETE FROM "delayed_jobs"  (2.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (2.8ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.508483"], ["created_at", "2019-10-25 22:01:23.508529"], ["updated_at", "2019-10-25 22:01:23.508529"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.538872"], ["created_at", "2019-10-25 22:01:23.538923"], ["updated_at", "2019-10-25 22:01:23.538923"]] 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\":\"3e231e30-bc74-4c12-8c51-7ed9c9219de0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:23.542Z\",\"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-10-25 22:01:23.544945"], ["created_at", "2019-10-25 22:01:23.544988"], ["updated_at", "2019-10-25 22:01:23.544988"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.565066"], ["created_at", "2019-10-25 22:01:23.565106"], ["updated_at", "2019-10-25 22:01:23.565106"]] 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\":\"e878046f-787f-4434-86ea-1ff73718787e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:23.568Z\",\"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-10-25 22:01:23.569695"], ["created_at", "2019-10-25 22:01:23.569726"], ["updated_at", "2019-10-25 22:01:23.569726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (1.5ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.593178"], ["created_at", "2019-10-25 22:01:23.593384"], ["updated_at", "2019-10-25 22:01:23.593384"]] 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\":\"6f3b3b0d-1920-4b43-a657-6aed8ce46034\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:23.597Z\",\"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-10-25 22:01:23.599312"], ["created_at", "2019-10-25 22:01:23.599349"], ["updated_at", "2019-10-25 22:01:23.599349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 9]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.620820"], ["created_at", "2019-10-25 22:01:23.620865"], ["updated_at", "2019-10-25 22:01:23.620865"]] 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\":\"9c41aa2d-acd6-48a0-bffd-731c5805b9a6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:23.624Z\",\"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-10-25 22:01:23.627931"], ["created_at", "2019-10-25 22:01:23.627967"], ["updated_at", "2019-10-25 22:01:23.627967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:23.648198"], ["created_at", "2019-10-25 22:01:23.648248"], ["updated_at", "2019-10-25 22:01:23.648248"]] 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\":\"9b1789c9-fae1-4b4f-ac2c-a613c6b8bdb0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:23.651Z\",\"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-10-25 22:01:23.653319"], ["created_at", "2019-10-25 22:01:23.653356"], ["updated_at", "2019-10-25 22:01:23.653356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 13]]  (0.3ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.863912', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.863337' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.863348') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-25T22:01:35.879Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:35.910115"], ["created_at", "2019-10-25 22:01:35.910172"], ["updated_at", "2019-10-25 22:01:35.910172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.914035', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.913602' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.913613') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.917845', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.917517' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.917529') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-25T22:01:35.922Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:35.926788"], ["created_at", "2019-10-25 22:01:35.926821"], ["updated_at", "2019-10-25 22:01:35.926821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.930103', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.929752' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.929764') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.933375', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.933039' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.933051') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) ROLLBACK  (1.1ms) BEGIN  (2.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 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-10-25T22:01:35.943Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-25 22:01:35.945246"], ["created_at", "2019-10-25 22:01:35.945279"], ["updated_at", "2019-10-25 22:01:35.945279"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.948291', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.947944' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.947958') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.952027', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.951226' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.951241') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-25 22:01:35.962403', locked_by = 'host:Nathan-Griffith-MBP13 pid:215' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-25 22:01:35.962055' AND (locked_at IS NULL OR locked_at < '2019-10-25 18:01:35.962068') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:215') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs"  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.188021"], ["created_at", "2019-10-25 22:01:36.188163"], ["updated_at", "2019-10-25 22:01:36.188163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.212495"], ["created_at", "2019-10-25 22:01:36.212537"], ["updated_at", "2019-10-25 22:01:36.212537"]] 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\":\"5823fc6c-9089-4d26-b4ef-cb2662480920\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:36.216Z\",\"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-10-25 22:01:36.220124"], ["created_at", "2019-10-25 22:01:36.220207"], ["updated_at", "2019-10-25 22:01:36.220207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.242188"], ["created_at", "2019-10-25 22:01:36.242330"], ["updated_at", "2019-10-25 22:01:36.242330"]] 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\":\"8c09fafc-114f-4a83-8835-422922fbfde1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:36.245Z\",\"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-10-25 22:01:36.247899"], ["created_at", "2019-10-25 22:01:36.247931"], ["updated_at", "2019-10-25 22:01:36.247931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.269732"], ["created_at", "2019-10-25 22:01:36.269827"], ["updated_at", "2019-10-25 22:01:36.269827"]] 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\":\"41a311f7-aee8-4f40-9bee-26ad861992c4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:36.273Z\",\"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-10-25 22:01:36.275446"], ["created_at", "2019-10-25 22:01:36.275484"], ["updated_at", "2019-10-25 22:01:36.275484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.297148"], ["created_at", "2019-10-25 22:01:36.297190"], ["updated_at", "2019-10-25 22:01:36.297190"]] 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\":\"9cfae6c2-f4d0-4e9b-be59-e513d376e0d1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:36.300Z\",\"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-10-25 22:01:36.302044"], ["created_at", "2019-10-25 22:01:36.302076"], ["updated_at", "2019-10-25 22:01:36.302076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-25 22:01:36.323953"], ["created_at", "2019-10-25 22:01:36.324000"], ["updated_at", "2019-10-25 22:01:36.324000"]] 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\":\"b9a23878-c1f3-47da-acaf-3cd9c97b29de\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-25T22:01:36.327Z\",\"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-10-25 22:01:36.329294"], ["created_at", "2019-10-25 22:01:36.329331"], ["updated_at", "2019-10-25 22:01:36.329331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.8ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:31.997281"], ["created_at", "2019-10-28 15:08:31.997334"], ["updated_at", "2019-10-28 15:08:31.997334"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:32.017113"], ["created_at", "2019-10-28 15:08:32.017155"], ["updated_at", "2019-10-28 15:08:32.017155"]] 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\":\"c3d68d35-af9d-410e-bb6f-a28adda3df63\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T15:08:32.051Z\",\"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-10-28 15:08:32.056528"], ["created_at", "2019-10-28 15:08:32.056567"], ["updated_at", "2019-10-28 15:08:32.056567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:32.072389"], ["created_at", "2019-10-28 15:08:32.072433"], ["updated_at", "2019-10-28 15:08:32.072433"]] 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\":\"2baed108-71f8-4133-ae08-500a4828ca3d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T15:08:32.075Z\",\"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-10-28 15:08:32.077909"], ["created_at", "2019-10-28 15:08:32.077947"], ["updated_at", "2019-10-28 15:08:32.077947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:32.104202"], ["created_at", "2019-10-28 15:08:32.104257"], ["updated_at", "2019-10-28 15:08:32.104257"]] 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\":\"0ce0acb8-b3be-413b-bcf2-991bd16aa47f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T15:08:32.107Z\",\"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-10-28 15:08:32.111835"], ["created_at", "2019-10-28 15:08:32.112015"], ["updated_at", "2019-10-28 15:08:32.112015"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.7ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:32.141118"], ["created_at", "2019-10-28 15:08:32.141175"], ["updated_at", "2019-10-28 15:08:32.141175"]] 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\":\"827166aa-d832-4c0b-a21f-d3d4a21cf297\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T15:08:32.145Z\",\"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-10-28 15:08:32.147439"], ["created_at", "2019-10-28 15:08:32.147475"], ["updated_at", "2019-10-28 15:08:32.147475"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (1.2ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (1.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 15:08:32.175646"], ["created_at", "2019-10-28 15:08:32.175699"], ["updated_at", "2019-10-28 15:08:32.175699"]] 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\":\"c8146d9f-dd7f-4e57-9511-e6b5522f157f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T15:08:32.179Z\",\"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-10-28 15:08:32.181004"], ["created_at", "2019-10-28 15:08:32.181035"], ["updated_at", "2019-10-28 15:08:32.181035"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.433611', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.433091' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.433103') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.440401', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.440060' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.440070') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T15:08:32.446Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 15:08:32.448478"], ["created_at", "2019-10-28 15:08:32.448509"], ["updated_at", "2019-10-28 15:08:32.448509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.451478', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.451166' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.451176') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.454962', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.454618' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.454630') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T15:08:32.458Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 15:08:32.459805"], ["created_at", "2019-10-28 15:08:32.459840"], ["updated_at", "2019-10-28 15:08:32.459840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.462196', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.461834' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.461844') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.465760', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.465409' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.465422') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-28T15:08:32.470Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 15:08:32.471974"], ["created_at", "2019-10-28 15:08:32.472018"], ["updated_at", "2019-10-28 15:08:32.472018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.475304', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.474951' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.474961') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 15:08:32.478663', locked_by = 'host:Nathan-Griffith-MBP13 pid:6473' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 15:08:32.478318' AND (locked_at IS NULL OR locked_at < '2019-10-28 11:08:32.478330') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:6473') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (46.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (90.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (40.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (4.1ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:07:21.126589', locked_by = 'host:Nathan-Griffith-MBP13 pid:11305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:07:21.125970' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:07:21.125987') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:07:21.133927', locked_by = 'host:Nathan-Griffith-MBP13 pid:11305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:07:21.133523' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:07:21.133534') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (5.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:07:21.144692', locked_by = 'host:Nathan-Griffith-MBP13 pid:11305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:07:21.144207' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:07:21.144220') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:07:21.156552', locked_by = 'host:Nathan-Griffith-MBP13 pid:11305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:07:21.156129' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:07:21.156141') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:07:21.166448', locked_by = 'host:Nathan-Griffith-MBP13 pid:11305' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:07:21.166022' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:07:21.166034') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11305') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (2.8ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.451990"], ["created_at", "2019-10-28 16:07:21.452043"], ["updated_at", "2019-10-28 16:07:21.452043"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.493328"], ["created_at", "2019-10-28 16:07:21.493380"], ["updated_at", "2019-10-28 16:07:21.493380"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.511475"], ["created_at", "2019-10-28 16:07:21.511518"], ["updated_at", "2019-10-28 16:07:21.511518"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.530298"], ["created_at", "2019-10-28 16:07:21.530341"], ["updated_at", "2019-10-28 16:07:21.530341"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.550043"], ["created_at", "2019-10-28 16:07:21.550085"], ["updated_at", "2019-10-28 16:07:21.550085"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:07:21.568541"], ["created_at", "2019-10-28 16:07:21.568594"], ["updated_at", "2019-10-28 16:07:21.568594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (11.8ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (11.6ms) BEGIN  (9.2ms) ROLLBACK  (2.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (9.3ms) DELETE FROM "delayed_jobs"  (3.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:09:00.009383"], ["created_at", "2019-10-28 16:09:00.009433"], ["updated_at", "2019-10-28 16:09:00.009433"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:09:00.029534"], ["created_at", "2019-10-28 16:09:00.029583"], ["updated_at", "2019-10-28 16:09:00.029583"]] 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\":\"87d549c8-17dc-457c-9c3e-5ad1d2a7c659\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:09:00.066Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.070973"], ["created_at", "2019-10-28 16:09:00.071011"], ["updated_at", "2019-10-28 16:09:00.071011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:09:00.097261"], ["created_at", "2019-10-28 16:09:00.097309"], ["updated_at", "2019-10-28 16:09:00.097309"]] 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\":\"94755433-a43d-424a-a86a-097a350f47ca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:09:00.102Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.104182"], ["created_at", "2019-10-28 16:09:00.104219"], ["updated_at", "2019-10-28 16:09:00.104219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:09:00.120727"], ["created_at", "2019-10-28 16:09:00.120783"], ["updated_at", "2019-10-28 16:09:00.120783"]] 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\":\"8dbdee0c-d859-4f7c-9d7f-7457e2acd29d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:09:00.124Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.126256"], ["created_at", "2019-10-28 16:09:00.126288"], ["updated_at", "2019-10-28 16:09:00.126288"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:09:00.162884"], ["created_at", "2019-10-28 16:09:00.162926"], ["updated_at", "2019-10-28 16:09:00.162926"]] 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\":\"bc492f1d-b66c-4afb-911e-b0f1f237b789\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:09:00.166Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.167898"], ["created_at", "2019-10-28 16:09:00.167931"], ["updated_at", "2019-10-28 16:09:00.167931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-10-28 16:09:00.187184"], ["created_at", "2019-10-28 16:09:00.187242"], ["updated_at", "2019-10-28 16:09:00.187242"]] 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\":\"77d13104-c670-43cb-9cca-f361a0697e2c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:09:00.195Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.198304"], ["created_at", "2019-10-28 16:09:00.198506"], ["updated_at", "2019-10-28 16:09:00.198506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.214423', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.213887' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.213899') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:09:00.222Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.225174"], ["created_at", "2019-10-28 16:09:00.225207"], ["updated_at", "2019-10-28 16:09:00.225207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.228341', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.228024' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.228034') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.231609', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.231298' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.231309') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:09:00.234Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:09:00.236228"], ["created_at", "2019-10-28 16:09:00.236261"], ["updated_at", "2019-10-28 16:09:00.236261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.238780', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.238431' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.238441') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.241982', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.241648' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.241659') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:09:00.245Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 0\n"], ["run_at", "2019-10-28 16:09:00.247475"], ["created_at", "2019-10-28 16:09:00.247505"], ["updated_at", "2019-10-28 16:09:00.247505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.250485', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.250157' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.250167') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.253751', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.253417' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.253430') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:09:00.259072', locked_by = 'host:Nathan-Griffith-MBP13 pid:11946' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:09:00.258758' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:09:00.258767') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:11946') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (2.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.844162', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.843559' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.843577') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.864257', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.862402' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.862414') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T16:12:12.882Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:12:12.925798"], ["created_at", "2019-10-28 16:12:12.925848"], ["updated_at", "2019-10-28 16:12:12.925848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.929327', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.928957' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.928968') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.933081', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.932717' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.932729') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:12:12.937Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:12:12.944274"], ["created_at", "2019-10-28 16:12:12.944353"], ["updated_at", "2019-10-28 16:12:12.944353"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.948538', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.948136' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.948148') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.952340', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.951967' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.951979') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.5ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:12:12.960Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 0\n"], ["run_at", "2019-10-28 16:12:12.962780"], ["created_at", "2019-10-28 16:12:12.962818"], ["updated_at", "2019-10-28 16:12:12.962818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.965894', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.965540' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.965551') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:12:12.969281', locked_by = 'host:Nathan-Griffith-MBP13 pid:12402' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:12:12.968921' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:12:12.968933') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:12402') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (2.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.283220"], ["created_at", "2019-10-28 16:12:13.283267"], ["updated_at", "2019-10-28 16:12:13.283267"]] 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\":\"90cb26fa-7d85-4de5-a564-d94b9a97dfaf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:12:13.315Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:12:13.318587"], ["created_at", "2019-10-28 16:12:13.318627"], ["updated_at", "2019-10-28 16:12:13.318627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.339579"], ["created_at", "2019-10-28 16:12:13.339649"], ["updated_at", "2019-10-28 16:12:13.339649"]] 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\":\"d4a36a2e-02c2-482a-abf5-805d97b4de54\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:12:13.345Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:12:13.347256"], ["created_at", "2019-10-28 16:12:13.347292"], ["updated_at", "2019-10-28 16:12:13.347292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.383025"], ["created_at", "2019-10-28 16:12:13.383067"], ["updated_at", "2019-10-28 16:12:13.383067"]] 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\":\"b3e6d8c6-762b-4a3a-9911-7d8d71b0f872\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:12:13.386Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:12:13.388051"], ["created_at", "2019-10-28 16:12:13.388082"], ["updated_at", "2019-10-28 16:12:13.388082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.410768"], ["created_at", "2019-10-28 16:12:13.410813"], ["updated_at", "2019-10-28 16:12:13.410813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.434387"], ["created_at", "2019-10-28 16:12:13.434433"], ["updated_at", "2019-10-28 16:12:13.434433"]] 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\":\"e4d09e45-839b-494f-b2b6-a758370a2033\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:12:13.437Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:12:13.439490"], ["created_at", "2019-10-28 16:12:13.439526"], ["updated_at", "2019-10-28 16:12:13.439526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:12:13.461650"], ["created_at", "2019-10-28 16:12:13.461694"], ["updated_at", "2019-10-28 16:12:13.461694"]] 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\":\"52fe7e8d-8809-49e8-9eff-6aa7de6d9319\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:12:13.465Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:12:13.466734"], ["created_at", "2019-10-28 16:12:13.466766"], ["updated_at", "2019-10-28 16:12:13.466766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.9ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.909130', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.908583' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.908595') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T16:13:23.913Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:13:23.926897"], ["created_at", "2019-10-28 16:13:23.926949"], ["updated_at", "2019-10-28 16:13:23.926949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.929816', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.929453' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.929462') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.934361', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.934005' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.934017') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:13:23.942Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:13:23.943850"], ["created_at", "2019-10-28 16:13:23.943904"], ["updated_at", "2019-10-28 16:13:23.943904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.947497', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.947034' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.947046') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.951723', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.951303' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.951318') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.2ms) SAVEPOINT active_record_1 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-10-28T16:13:23.956Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 0\n"], ["run_at", "2019-10-28 16:13:23.959202"], ["created_at", "2019-10-28 16:13:23.959238"], ["updated_at", "2019-10-28 16:13:23.959238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.962687', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.962263' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.962275') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (1.0ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.969170', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.968793' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.968806') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:23.975453', locked_by = 'host:Nathan-Griffith-MBP13 pid:13175' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:23.975084' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:23.975098') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13175') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:13:24.029020"], ["created_at", "2019-10-28 16:13:24.029070"], ["updated_at", "2019-10-28 16:13:24.029070"]] 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\":\"1d7b534a-1b5f-4db1-b0cb-46b4a904d1a6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:24.051Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:24.053915"], ["created_at", "2019-10-28 16:13:24.053951"], ["updated_at", "2019-10-28 16:13:24.053951"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:13:24.069121"], ["created_at", "2019-10-28 16:13:24.069167"], ["updated_at", "2019-10-28 16:13:24.069167"]] 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\":\"7775142f-e544-467d-9208-14fd8bd9ea1c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:24.072Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:24.074464"], ["created_at", "2019-10-28 16:13:24.074499"], ["updated_at", "2019-10-28 16:13:24.074499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:13:24.091499"], ["created_at", "2019-10-28 16:13:24.091543"], ["updated_at", "2019-10-28 16:13:24.091543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:13:24.111491"], ["created_at", "2019-10-28 16:13:24.111535"], ["updated_at", "2019-10-28 16:13:24.111535"]] 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\":\"d01c919b-8196-4159-af07-6de073d188ca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:24.115Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:24.117170"], ["created_at", "2019-10-28 16:13:24.117205"], ["updated_at", "2019-10-28 16:13:24.117205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 16:13:24.132525"], ["created_at", "2019-10-28 16:13:24.132572"], ["updated_at", "2019-10-28 16:13:24.132572"]] 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\":\"de97a7d7-a5c4-4315-8090-288689335943\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:24.137Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:24.140020"], ["created_at", "2019-10-28 16:13:24.140060"], ["updated_at", "2019-10-28 16:13:24.140060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (2.1ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 11]]  (6.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:13:24.174195"], ["created_at", "2019-10-28 16:13:24.174254"], ["updated_at", "2019-10-28 16:13:24.174254"]] 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\":\"1fd789a1-eea0-4120-966c-ec84f92e8271\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:24.178Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:24.181534"], ["created_at", "2019-10-28 16:13:24.181588"], ["updated_at", "2019-10-28 16:13:24.181588"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.7ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (2.8ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.0ms) BEGIN # Destroy (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Update All (1.3ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.9ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 16:13:53.467529"], ["created_at", "2019-10-28 16:13:53.467646"], ["updated_at", "2019-10-28 16:13:53.467646"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (1.6ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-28 16:13:53.491598"], ["created_at", "2019-10-28 16:13:53.491644"], ["updated_at", "2019-10-28 16:13:53.491644"]] 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\":\"ffe10f72-8b3c-40e4-b1ab-984c71468aa9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:53.524Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.528419"], ["created_at", "2019-10-28 16:13:53.528456"], ["updated_at", "2019-10-28 16:13:53.528456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:13:53.548733"], ["created_at", "2019-10-28 16:13:53.548778"], ["updated_at", "2019-10-28 16:13:53.548778"]] 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\":\"76e11072-9d68-4b5c-b4d4-6a5fd52f6c5d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:53.552Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.553796"], ["created_at", "2019-10-28 16:13:53.553826"], ["updated_at", "2019-10-28 16:13:53.553826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-28 16:13:53.574205"], ["created_at", "2019-10-28 16:13:53.574248"], ["updated_at", "2019-10-28 16:13:53.574248"]] 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\":\"fa7bba0e-ef2e-4be8-9c88-abe0d644fd40\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:53.579Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.581678"], ["created_at", "2019-10-28 16:13:53.581712"], ["updated_at", "2019-10-28 16:13:53.581712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:13:53.601786"], ["created_at", "2019-10-28 16:13:53.601827"], ["updated_at", "2019-10-28 16:13:53.601827"]] 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\":\"7b05cf77-2aef-47fb-853c-f378e313c0eb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:53.604Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.606989"], ["created_at", "2019-10-28 16:13:53.607028"], ["updated_at", "2019-10-28 16:13:53.607028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:13:53.630335"], ["created_at", "2019-10-28 16:13:53.630384"], ["updated_at", "2019-10-28 16:13:53.630384"]] 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\":\"7ebeb015-94e3-43d6-a662-751390def51a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:13:53.633Z\",\"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: \npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.635596"], ["created_at", "2019-10-28 16:13:53.635629"], ["updated_at", "2019-10-28 16:13:53.635629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:53.958573', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:53.957964' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:53.957976') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:13:53.973Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.979759"], ["created_at", "2019-10-28 16:13:53.980100"], ["updated_at", "2019-10-28 16:13:53.980100"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:53.986019', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:53.985678' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:53.985689') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:53.989549', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:53.989185' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:53.989198') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 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-10-28T16:13:53.992Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 20\n"], ["run_at", "2019-10-28 16:13:53.997998"], ["created_at", "2019-10-28 16:13:53.998100"], ["updated_at", "2019-10-28 16:13:53.998100"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:54.002319', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:54.001968' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:54.001980') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:54.005780', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:54.005460' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:54.005472') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.4ms) SAVEPOINT active_record_1 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-10-28T16:13:54.011Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\npriority: 0\n"], ["run_at", "2019-10-28 16:13:54.018012"], ["created_at", "2019-10-28 16:13:54.018045"], ["updated_at", "2019-10-28 16:13:54.018045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:54.021294', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:54.020963' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:54.020974') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:54.024585', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:54.024269' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:54.024280') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (2.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:13:54.037490', locked_by = 'host:Nathan-Griffith-MBP13 pid:13549' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:13:54.037153' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:13:54.037163') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:13549') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (2.4ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (1.5ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (10.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.6ms) BEGIN # Update All (0.8ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs"  (0.5ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 16:32:21.657232"], ["created_at", "2019-10-28 16:32:21.657286"], ["updated_at", "2019-10-28 16:32:21.657286"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:32:21.735298"], ["created_at", "2019-10-28 16:32:21.735358"], ["updated_at", "2019-10-28 16:32:21.735358"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-10-28 16:32:21.761873"], ["created_at", "2019-10-28 16:32:21.761942"], ["updated_at", "2019-10-28 16:32:21.761942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:21.786739"], ["created_at", "2019-10-28 16:32:21.786792"], ["updated_at", "2019-10-28 16:32:21.786792"]]  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:21.813767"], ["created_at", "2019-10-28 16:32:21.813817"], ["updated_at", "2019-10-28 16:32:21.813817"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:21.838814"], ["created_at", "2019-10-28 16:32:21.838860"], ["updated_at", "2019-10-28 16:32:21.838860"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:22.030404', locked_by = 'host:Nathan-Griffith-MBP13 pid:16996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:22.029023' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:22.029052') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:16996') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (2.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:22.036565', locked_by = 'host:Nathan-Griffith-MBP13 pid:16996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:22.036226' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:22.036235') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:16996') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:22.072457', locked_by = 'host:Nathan-Griffith-MBP13 pid:16996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:22.072114' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:22.072124') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:16996') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:22.082531', locked_by = 'host:Nathan-Griffith-MBP13 pid:16996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:22.081790' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:22.081804') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:16996') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.1ms) DELETE FROM "delayed_jobs"  (0.5ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (2.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 16:32:52.202550"], ["created_at", "2019-10-28 16:32:52.202609"], ["updated_at", "2019-10-28 16:32:52.202609"]] 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\":\"236000c0-eaa2-49a1-b7d3-d67467519a85\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:32:52.237Z\",\"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-10-28 16:32:52.241731"], ["created_at", "2019-10-28 16:32:52.241781"], ["updated_at", "2019-10-28 16:32:52.241781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:32:52.267143"], ["created_at", "2019-10-28 16:32:52.267274"], ["updated_at", "2019-10-28 16:32:52.267274"]] 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\":\"449c36b0-7272-4891-b380-d9524d87bef4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:32:52.270Z\",\"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-10-28 16:32:52.272976"], ["created_at", "2019-10-28 16:32:52.273016"], ["updated_at", "2019-10-28 16:32:52.273016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:52.293934"], ["created_at", "2019-10-28 16:32:52.293976"], ["updated_at", "2019-10-28 16:32:52.293976"]] 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\":\"eb854a28-1cf4-4420-a81f-fe22f1be18b9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:32:52.297Z\",\"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-10-28 16:32:52.298979"], ["created_at", "2019-10-28 16:32:52.299016"], ["updated_at", "2019-10-28 16:32:52.299016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:52.321375"], ["created_at", "2019-10-28 16:32:52.321432"], ["updated_at", "2019-10-28 16:32:52.321432"]] 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\":\"6ea37b8e-e5d7-433e-9148-f1404c33792e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:32:52.324Z\",\"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-10-28 16:32:52.326602"], ["created_at", "2019-10-28 16:32:52.326634"], ["updated_at", "2019-10-28 16:32:52.326634"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:52.372124"], ["created_at", "2019-10-28 16:32:52.372180"], ["updated_at", "2019-10-28 16:32:52.372180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:32:52.393625"], ["created_at", "2019-10-28 16:32:52.393668"], ["updated_at", "2019-10-28 16:32:52.393668"]] 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\":\"c2770960-eadb-4825-8042-f50a0d884bf7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:32:52.396Z\",\"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-10-28 16:32:52.400266"], ["created_at", "2019-10-28 16:32:52.400306"], ["updated_at", "2019-10-28 16:32:52.400306"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.446355', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.445848' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.445860') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-28T16:32:52.456Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:32:52.458954"], ["created_at", "2019-10-28 16:32:52.458987"], ["updated_at", "2019-10-28 16:32:52.458987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.461232', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.460898' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.460908') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (1.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.469930', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.468481' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.468512') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-28T16:32:52.477Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:32:52.479324"], ["created_at", "2019-10-28 16:32:52.479355"], ["updated_at", "2019-10-28 16:32:52.479355"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.487277', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.486924' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.486936') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.491171', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.490856' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.490867') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:32:52.501518', locked_by = 'host:Nathan-Griffith-MBP13 pid:17139' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:32:52.500796' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:32:52.500823') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:17139') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.461205"], ["created_at", "2019-10-28 16:38:55.461262"], ["updated_at", "2019-10-28 16:38:55.461262"]] 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\":\"cd19cbe0-13d8-43a9-8e7d-d28b0aa326e9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:38:55.465Z\",\"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-10-28 16:38:55.469882"], ["created_at", "2019-10-28 16:38:55.469924"], ["updated_at", "2019-10-28 16:38:55.469924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.486228"], ["created_at", "2019-10-28 16:38:55.486272"], ["updated_at", "2019-10-28 16:38:55.486272"]] 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\":\"a91a067e-ad1b-4114-a2a6-638aaca223f4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:38:55.489Z\",\"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-10-28 16:38:55.491415"], ["created_at", "2019-10-28 16:38:55.491462"], ["updated_at", "2019-10-28 16:38:55.491462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 3]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.510858"], ["created_at", "2019-10-28 16:38:55.510902"], ["updated_at", "2019-10-28 16:38:55.510902"]] 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\":\"9a3de6d0-5649-4ed2-ada6-641c01a756ba\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:38:55.514Z\",\"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-10-28 16:38:55.516091"], ["created_at", "2019-10-28 16:38:55.516132"], ["updated_at", "2019-10-28 16:38:55.516132"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.550534"], ["created_at", "2019-10-28 16:38:55.550587"], ["updated_at", "2019-10-28 16:38:55.550587"]] 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\":\"f5f2216f-69e0-4615-96e6-7584242be0ed\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:38:55.553Z\",\"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-10-28 16:38:55.555705"], ["created_at", "2019-10-28 16:38:55.555741"], ["updated_at", "2019-10-28 16:38:55.555741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.572544"], ["created_at", "2019-10-28 16:38:55.572589"], ["updated_at", "2019-10-28 16:38:55.572589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 16:38:55.590933"], ["created_at", "2019-10-28 16:38:55.590982"], ["updated_at", "2019-10-28 16:38:55.590982"]] 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\":\"88eaa863-c240-44a3-82f2-9bafcf793b98\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:38:55.594Z\",\"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-10-28 16:38:55.595759"], ["created_at", "2019-10-28 16:38:55.595791"], ["updated_at", "2019-10-28 16:38:55.595791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (2.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (1.1ms) ROLLBACK  (0.5ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.712552', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.712031' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.712043') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.719602', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.719247' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.719258') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.727480', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.727112' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.727125') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.1ms) ROLLBACK  (1.3ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 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-10-28T16:38:55.738Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:38:55.741365"], ["created_at", "2019-10-28 16:38:55.741467"], ["updated_at", "2019-10-28 16:38:55.741467"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.745154', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.744724' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.744788') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.751268', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.750931' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.750943') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T16:38:55.755Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:38:55.756855"], ["created_at", "2019-10-28 16:38:55.756888"], ["updated_at", "2019-10-28 16:38:55.756888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.759913', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.759593' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.759603') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:38:55.763330', locked_by = 'host:Nathan-Griffith-MBP13 pid:19120' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:38:55.762969' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:38:55.762982') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19120') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:47.907979', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:47.906598' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:47.906616') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (5.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T16:39:47.931Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:39:47.960965"], ["created_at", "2019-10-28 16:39:47.961010"], ["updated_at", "2019-10-28 16:39:47.961010"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:47.964414', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:47.964076' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:47.964087') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:47.968292', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:47.967911' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:47.967924') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-28T16:39:47.971Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:39:47.973661"], ["created_at", "2019-10-28 16:39:47.973698"], ["updated_at", "2019-10-28 16:39:47.973698"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:47.978242', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:47.977878' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:47.977890') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:47.982212', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:47.981820' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:47.981832') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (1.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T16:39:47.992Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 16:39:47.995944"], ["created_at", "2019-10-28 16:39:47.996026"], ["updated_at", "2019-10-28 16:39:47.996026"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:48.003037', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:48.002655' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:48.002667') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:48.006389', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:48.005906' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:48.005917') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 16:39:48.018562', locked_by = 'host:Nathan-Griffith-MBP13 pid:19310' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 16:39:48.018204' AND (locked_at IS NULL OR locked_at < '2019-10-28 12:39:48.018216') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:19310') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.4ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (1.3ms) ROLLBACK  (0.7ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.355325"], ["created_at", "2019-10-28 16:39:48.355369"], ["updated_at", "2019-10-28 16:39:48.355369"]] 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\":\"51bbfe24-f050-4e93-a573-5dc11d6e49e4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:39:48.358Z\",\"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-10-28 16:39:48.363971"], ["created_at", "2019-10-28 16:39:48.364116"], ["updated_at", "2019-10-28 16:39:48.364116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 4]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.387389"], ["created_at", "2019-10-28 16:39:48.387433"], ["updated_at", "2019-10-28 16:39:48.387433"]] 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\":\"f5aec5b9-f708-4034-bca9-5d17abf1dee9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:39:48.390Z\",\"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-10-28 16:39:48.392682"], ["created_at", "2019-10-28 16:39:48.392723"], ["updated_at", "2019-10-28 16:39:48.392723"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.415837"], ["created_at", "2019-10-28 16:39:48.415885"], ["updated_at", "2019-10-28 16:39:48.415885"]] 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\":\"c982af8f-141c-45fc-a5c2-afb1836e9e6d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:39:48.419Z\",\"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-10-28 16:39:48.421731"], ["created_at", "2019-10-28 16:39:48.421765"], ["updated_at", "2019-10-28 16:39:48.421765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.442432"], ["created_at", "2019-10-28 16:39:48.442476"], ["updated_at", "2019-10-28 16:39:48.442476"]] 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\":\"85460c40-0fa2-4268-bd43-e50573af9d96\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:39:48.447Z\",\"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-10-28 16:39:48.450789"], ["created_at", "2019-10-28 16:39:48.450833"], ["updated_at", "2019-10-28 16:39:48.450833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.473449"], ["created_at", "2019-10-28 16:39:48.473499"], ["updated_at", "2019-10-28 16:39:48.473499"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 16:39:48.517175"], ["created_at", "2019-10-28 16:39:48.517219"], ["updated_at", "2019-10-28 16:39:48.517219"]] 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\":\"3533f8f9-750d-4b1b-be82-3bd2b3ab4637\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T16:39:48.520Z\",\"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-10-28 16:39:48.522220"], ["created_at", "2019-10-28 16:39:48.522253"], ["updated_at", "2019-10-28 16:39:48.522253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.5ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (75.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (2.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.5ms) BEGIN # Destroy (1.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.609592"], ["created_at", "2019-10-28 17:03:33.609648"], ["updated_at", "2019-10-28 17:03:33.609648"]] 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\":\"00c3416c-5ec6-4cdd-9ff0-10804687f72b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:03:33.643Z\",\"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-10-28 17:03:33.647381"], ["created_at", "2019-10-28 17:03:33.647417"], ["updated_at", "2019-10-28 17:03:33.647417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.667370"], ["created_at", "2019-10-28 17:03:33.667412"], ["updated_at", "2019-10-28 17:03:33.667412"]] 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\":\"43d0d3d2-6cdd-4f60-80c9-1d77758f81d8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:03:33.670Z\",\"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-10-28 17:03:33.672413"], ["created_at", "2019-10-28 17:03:33.672446"], ["updated_at", "2019-10-28 17:03:33.672446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.693710"], ["created_at", "2019-10-28 17:03:33.693755"], ["updated_at", "2019-10-28 17:03:33.693755"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.721247"], ["created_at", "2019-10-28 17:03:33.721309"], ["updated_at", "2019-10-28 17:03:33.721309"]] 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\":\"937ce50a-e29b-4658-9b6f-5f337ce3111e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:03:33.724Z\",\"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-10-28 17:03:33.726548"], ["created_at", "2019-10-28 17:03:33.726582"], ["updated_at", "2019-10-28 17:03:33.726582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.750266"], ["created_at", "2019-10-28 17:03:33.750320"], ["updated_at", "2019-10-28 17:03:33.750320"]] 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\":\"068a75ea-f1db-4082-a516-237048f1b754\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:03:33.753Z\",\"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-10-28 17:03:33.755881"], ["created_at", "2019-10-28 17:03:33.755921"], ["updated_at", "2019-10-28 17:03:33.755921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 # 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-10-28 17:03:33.776799"], ["created_at", "2019-10-28 17:03:33.776843"], ["updated_at", "2019-10-28 17:03:33.776843"]] 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\":\"ea03378e-b3b1-43b4-8491-9c247b128662\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:03:33.781Z\",\"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-10-28 17:03:33.783719"], ["created_at", "2019-10-28 17:03:33.783752"], ["updated_at", "2019-10-28 17:03:33.783752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.010417', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.009858' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.009872') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.9ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.043949', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.043579' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.043590') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T17:03:34.056Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:03:34.057946"], ["created_at", "2019-10-28 17:03:34.057981"], ["updated_at", "2019-10-28 17:03:34.057981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.061256', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.060913' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.060924') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.068494', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.068152' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.068164') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T17:03:34.074Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:03:34.076832"], ["created_at", "2019-10-28 17:03:34.076871"], ["updated_at", "2019-10-28 17:03:34.076871"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.080803', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.080112' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.080133') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.086002', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.085626' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.085639') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.0ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T17:03:34.092Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:03:34.094670"], ["created_at", "2019-10-28 17:03:34.094708"], ["updated_at", "2019-10-28 17:03:34.094708"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.101184', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.100812' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.100823') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:03:34.104739', locked_by = 'host:Nathan-Griffith-MBP13 pid:25759' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:03:34.104345' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:03:34.104358') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:25759') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (46.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN # Destroy (0.8ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-28 17:08:01.529541"], ["created_at", "2019-10-28 17:08:01.529603"], ["updated_at", "2019-10-28 17:08:01.529603"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:08:01.557868"], ["created_at", "2019-10-28 17:08:01.557919"], ["updated_at", "2019-10-28 17:08:01.557919"]] 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\":\"a7942437-5bb8-42a3-b203-ad5520e93b81\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:08:01.595Z\",\"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-10-28 17:08:01.599713"], ["created_at", "2019-10-28 17:08:01.599752"], ["updated_at", "2019-10-28 17:08:01.599752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:08:01.621301"], ["created_at", "2019-10-28 17:08:01.621352"], ["updated_at", "2019-10-28 17:08:01.621352"]] 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\":\"f767fabb-0388-424d-bf83-75f5aef18c4d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:08:01.624Z\",\"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-10-28 17:08:01.626960"], ["created_at", "2019-10-28 17:08:01.626997"], ["updated_at", "2019-10-28 17:08:01.626997"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:08:01.649842"], ["created_at", "2019-10-28 17:08:01.649917"], ["updated_at", "2019-10-28 17:08:01.649917"]] 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\":\"cf947b4f-6b4c-461e-9e42-761f373726f7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:08:01.655Z\",\"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-10-28 17:08:01.657644"], ["created_at", "2019-10-28 17:08:01.657678"], ["updated_at", "2019-10-28 17:08:01.657678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:08:01.682630"], ["created_at", "2019-10-28 17:08:01.682678"], ["updated_at", "2019-10-28 17:08:01.682678"]] 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\":\"9c5589db-f8d8-4f20-86aa-fe68ec3cad8f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:08:01.686Z\",\"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-10-28 17:08:01.688130"], ["created_at", "2019-10-28 17:08:01.688165"], ["updated_at", "2019-10-28 17:08:01.688165"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 17:08:01.713123"], ["created_at", "2019-10-28 17:08:01.713173"], ["updated_at", "2019-10-28 17:08:01.713173"]] 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\":\"0569d57a-8895-4470-bfa4-14ca79ebf8bd\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T17:08:01.716Z\",\"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-10-28 17:08:01.718570"], ["created_at", "2019-10-28 17:08:01.718604"], ["updated_at", "2019-10-28 17:08:01.718604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) ROLLBACK  (4.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T17:08:01.818Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:08:01.824998"], ["created_at", "2019-10-28 17:08:01.825037"], ["updated_at", "2019-10-28 17:08:01.825037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.828298', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.827600' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.827612') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.832894', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.832512' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.832523') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.2ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.7ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-28T17:08:01.848Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:08:01.850229"], ["created_at", "2019-10-28 17:08:01.850284"], ["updated_at", "2019-10-28 17:08:01.850284"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.857734', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.857248' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.857260') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.862273', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.861805' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.861819') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T17:08:01.872Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 17:08:01.874616"], ["created_at", "2019-10-28 17:08:01.874654"], ["updated_at", "2019-10-28 17:08:01.874654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.878443', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.878067' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.878079') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.882600', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.882200' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.882213') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.1ms) ROLLBACK  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.895488', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.895000' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.895015') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.908671', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.908218' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.908228') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 17:08:01.916989', locked_by = 'host:Nathan-Griffith-MBP13 pid:28246' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 17:08:01.916216' AND (locked_at IS NULL OR locked_at < '2019-10-28 13:08:01.916238') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:28246') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (5.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (51.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.1ms) 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-10-28 18:57:38.644796"], ["created_at", "2019-10-28 18:57:38.644856"], ["updated_at", "2019-10-28 18:57:38.644856"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:57:38.682228"], ["created_at", "2019-10-28 18:57:38.682272"], ["updated_at", "2019-10-28 18:57:38.682272"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:57:38.704212"], ["created_at", "2019-10-28 18:57:38.704260"], ["updated_at", "2019-10-28 18:57:38.704260"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:57:38.724846"], ["created_at", "2019-10-28 18:57:38.724929"], ["updated_at", "2019-10-28 18:57:38.724929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:57:38.747986"], ["created_at", "2019-10-28 18:57:38.748029"], ["updated_at", "2019-10-28 18:57:38.748029"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:57:38.770479"], ["created_at", "2019-10-28 18:57:38.770539"], ["updated_at", "2019-10-28 18:57:38.770539"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.8ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.7ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.6ms) ROLLBACK  (3.1ms) BEGIN # Destroy (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.7ms) ROLLBACK  (0.7ms) BEGIN # Destroy (1.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.8ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs"  (0.5ms) ROLLBACK  (1.0ms) BEGIN # Destroy (1.0ms) DELETE FROM "delayed_jobs"  (0.5ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (1.3ms) BEGIN  (0.5ms) ROLLBACK  (1.1ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (1.4ms) BEGIN  (1.0ms) ROLLBACK  (0.9ms) BEGIN  (1.4ms) ROLLBACK  (1.1ms) BEGIN  (1.2ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) ROLLBACK  (1.3ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (1.1ms) BEGIN  (0.9ms) ROLLBACK  (0.8ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.8ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (1.7ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.111423', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.110696' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.110709') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.123044', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.122701' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.122707') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.130112', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.129698' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.129709') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.137983', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.137629' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.137636') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.146159', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.145801' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.145807') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:57:39.153990', locked_by = 'host:Nathan-Griffith-MBP13 pid:39129' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:57:39.153631' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:57:39.153637') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39129') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (1.4ms) ROLLBACK  (0.9ms) BEGIN  (1.1ms) ROLLBACK  (1.7ms) BEGIN  (1.0ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.1ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (2.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.9ms) BEGIN  (1.1ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (1.4ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (1.1ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (1.2ms) ROLLBACK  (1.4ms) BEGIN  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (1.0ms) ROLLBACK  (1.0ms) BEGIN  (1.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.317500', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.316989' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.316995') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.321758', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.321420' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.321425') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.326068', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.325719' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.325726') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.331021', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.330664' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.330673') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.335214', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.334864' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.334872') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 18:59:58.339242', locked_by = 'host:Nathan-Griffith-MBP13 pid:39668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 18:59:58.338902' AND (locked_at IS NULL OR locked_at < '2019-10-28 14:59:58.338914') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 18:59:58.423716"], ["created_at", "2019-10-28 18:59:58.423764"], ["updated_at", "2019-10-28 18:59:58.423764"]]  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:59:58.447563"], ["created_at", "2019-10-28 18:59:58.447611"], ["updated_at", "2019-10-28 18:59:58.447611"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:59:58.466879"], ["created_at", "2019-10-28 18:59:58.466938"], ["updated_at", "2019-10-28 18:59:58.466938"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 18:59:58.485992"], ["created_at", "2019-10-28 18:59:58.486044"], ["updated_at", "2019-10-28 18:59:58.486044"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:59:58.504981"], ["created_at", "2019-10-28 18:59:58.505024"], ["updated_at", "2019-10-28 18:59:58.505024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 18:59:58.524102"], ["created_at", "2019-10-28 18:59:58.524155"], ["updated_at", "2019-10-28 18:59:58.524155"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.8ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (1.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.7ms) BEGIN # Destroy (1.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 19:00:43.128295"], ["created_at", "2019-10-28 19:00:43.128350"], ["updated_at", "2019-10-28 19:00:43.128350"]] 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\":\"d9a24551-ac1a-4e86-b372-93e562df5ba6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:00:43.158Z\",\"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-10-28 19:00:43.162734"], ["created_at", "2019-10-28 19:00:43.162778"], ["updated_at", "2019-10-28 19:00:43.162778"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:00:43.196161"], ["created_at", "2019-10-28 19:00:43.196211"], ["updated_at", "2019-10-28 19:00:43.196211"]] 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\":\"dc76c4b0-4663-484a-88b7-edb1a73f10e9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:00:43.199Z\",\"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-10-28 19:00:43.201659"], ["created_at", "2019-10-28 19:00:43.201698"], ["updated_at", "2019-10-28 19:00:43.201698"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:00:43.224453"], ["created_at", "2019-10-28 19:00:43.224501"], ["updated_at", "2019-10-28 19:00:43.224501"]] 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\":\"001382e9-151a-4eb9-ad5f-201971422c48\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:00:43.227Z\",\"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-10-28 19:00:43.229701"], ["created_at", "2019-10-28 19:00:43.229733"], ["updated_at", "2019-10-28 19:00:43.229733"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.1ms) 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-10-28 19:00:43.248725"], ["created_at", "2019-10-28 19:00:43.248777"], ["updated_at", "2019-10-28 19:00:43.248777"]] 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\":\"56c77614-70e5-421f-bc61-230ab9ad73f5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:00:43.253Z\",\"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-10-28 19:00:43.256097"], ["created_at", "2019-10-28 19:00:43.256145"], ["updated_at", "2019-10-28 19:00:43.256145"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:00:43.278040"], ["created_at", "2019-10-28 19:00:43.278091"], ["updated_at", "2019-10-28 19:00:43.278091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:00:43.302531"], ["created_at", "2019-10-28 19:00:43.302646"], ["updated_at", "2019-10-28 19:00:43.302646"]] 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\":\"f9b9dac2-ec8d-4f9f-a1ca-ea21f3c32e58\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:00:43.307Z\",\"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-10-28 19:00:43.309311"], ["created_at", "2019-10-28 19:00:43.309348"], ["updated_at", "2019-10-28 19:00:43.309348"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.479986', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.479399' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.479411') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.492889', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.492475' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.492483') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.497571', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.497176' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.497186') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.508270', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.507808' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.507820') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.513195', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.512854' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.512861') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:00:43.517246', locked_by = 'host:Nathan-Griffith-MBP13 pid:39969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:00:43.516899' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:00:43.516905') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:39969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.820208', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.818880' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.818905') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.838911', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.838566' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.838571') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.843334', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.842971' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.842977') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.848912', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.848582' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.848588') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.5ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.854569', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.854223' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.854230') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:01:33.858628', locked_by = 'host:Nathan-Griffith-MBP13 pid:40167' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:01:33.858268' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:01:33.858280') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40167') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:33.954120"], ["created_at", "2019-10-28 19:01:33.954183"], ["updated_at", "2019-10-28 19:01:33.954183"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:33.998264"], ["created_at", "2019-10-28 19:01:33.998312"], ["updated_at", "2019-10-28 19:01:33.998312"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:34.020827"], ["created_at", "2019-10-28 19:01:34.020899"], ["updated_at", "2019-10-28 19:01:34.020899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:34.043179"], ["created_at", "2019-10-28 19:01:34.043224"], ["updated_at", "2019-10-28 19:01:34.043224"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:34.062976"], ["created_at", "2019-10-28 19:01:34.063022"], ["updated_at", "2019-10-28 19:01:34.063022"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:01:34.084768"], ["created_at", "2019-10-28 19:01:34.084818"], ["updated_at", "2019-10-28 19:01:34.084818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (2.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.7ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-10-28 19:02:29.627550"], ["created_at", "2019-10-28 19:02:29.627604"], ["updated_at", "2019-10-28 19:02:29.627604"]] 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\":\"dfdd3d1e-34fc-47e4-9ae5-e2488c3a9cc1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:02:29.658Z\",\"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-10-28 19:02:29.662280"], ["created_at", "2019-10-28 19:02:29.662317"], ["updated_at", "2019-10-28 19:02:29.662317"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 19:02:29.684907"], ["created_at", "2019-10-28 19:02:29.684955"], ["updated_at", "2019-10-28 19:02:29.684955"]] 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\":\"3d69d4f6-07e4-4e6e-af13-1dfab558cc35\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:02:29.688Z\",\"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-10-28 19:02:29.690427"], ["created_at", "2019-10-28 19:02:29.690462"], ["updated_at", "2019-10-28 19:02:29.690462"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:02:29.712097"], ["created_at", "2019-10-28 19:02:29.712142"], ["updated_at", "2019-10-28 19:02:29.712142"]] 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\":\"a64b333f-a6ba-42a7-a711-7463d9d1b15b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:02:29.715Z\",\"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-10-28 19:02:29.717317"], ["created_at", "2019-10-28 19:02:29.717350"], ["updated_at", "2019-10-28 19:02:29.717350"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 19:02:29.756991"], ["created_at", "2019-10-28 19:02:29.757050"], ["updated_at", "2019-10-28 19:02:29.757050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 19:02:29.779666"], ["created_at", "2019-10-28 19:02:29.779709"], ["updated_at", "2019-10-28 19:02:29.779709"]] 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\":\"ff0ed633-0411-4a01-8eab-66950203b78c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:02:29.784Z\",\"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-10-28 19:02:29.786877"], ["created_at", "2019-10-28 19:02:29.786911"], ["updated_at", "2019-10-28 19:02:29.786911"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:02:29.807160"], ["created_at", "2019-10-28 19:02:29.807204"], ["updated_at", "2019-10-28 19:02:29.807204"]] 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\":\"e27bfbfb-7acd-45b2-9f7f-f2e38c93f21f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:02:29.811Z\",\"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-10-28 19:02:29.813359"], ["created_at", "2019-10-28 19:02:29.813390"], ["updated_at", "2019-10-28 19:02:29.813390"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.9ms) ROLLBACK  (1.4ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:29.985368', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:29.982211' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:29.982286') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:29.995341', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:29.995003' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:29.995013') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:02:30.007Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:02:30.009085"], ["created_at", "2019-10-28 19:02:30.009119"], ["updated_at", "2019-10-28 19:02:30.009119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.011299', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.010981' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.010991') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.014697', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.014294' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.014305') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-28T19:02:30.023Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:02:30.025382"], ["created_at", "2019-10-28 19:02:30.025418"], ["updated_at", "2019-10-28 19:02:30.025418"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.027584', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.027257' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.027266') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.030715', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.030394' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.030405') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.7ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.042075', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.041705' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.041716') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:02:30.105898', locked_by = 'host:Nathan-Griffith-MBP13 pid:40725' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:02:30.105503' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:02:30.105517') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40725') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.8ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.347484"], ["created_at", "2019-10-28 19:03:12.347537"], ["updated_at", "2019-10-28 19:03:12.347537"]] 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\":\"0132dce1-dacf-4307-a0c0-7c66ab0b1265\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:03:12.353Z\",\"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-10-28 19:03:12.357106"], ["created_at", "2019-10-28 19:03:12.357143"], ["updated_at", "2019-10-28 19:03:12.357143"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.374953"], ["created_at", "2019-10-28 19:03:12.374997"], ["updated_at", "2019-10-28 19:03:12.374997"]] 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\":\"eafdc77e-6508-42fa-9c0f-3d73d825872e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:03:12.378Z\",\"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-10-28 19:03:12.379932"], ["created_at", "2019-10-28 19:03:12.379967"], ["updated_at", "2019-10-28 19:03:12.379967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.395158"], ["created_at", "2019-10-28 19:03:12.395200"], ["updated_at", "2019-10-28 19:03:12.395200"]] 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\":\"065f6a5a-2f6f-455b-a748-a311f8f1d77a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:03:12.398Z\",\"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-10-28 19:03:12.400259"], ["created_at", "2019-10-28 19:03:12.400294"], ["updated_at", "2019-10-28 19:03:12.400294"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.418232"], ["created_at", "2019-10-28 19:03:12.418275"], ["updated_at", "2019-10-28 19:03:12.418275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.438871"], ["created_at", "2019-10-28 19:03:12.438913"], ["updated_at", "2019-10-28 19:03:12.438913"]] 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\":\"21aaec3b-746c-4c2a-85fa-5c4aceb3025a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:03:12.442Z\",\"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-10-28 19:03:12.443932"], ["created_at", "2019-10-28 19:03:12.443964"], ["updated_at", "2019-10-28 19:03:12.443964"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:03:12.461925"], ["created_at", "2019-10-28 19:03:12.461966"], ["updated_at", "2019-10-28 19:03:12.461966"]] 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\":\"7a6850d8-8ddc-4732-b3d3-f5723f62c58c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:03:12.465Z\",\"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-10-28 19:03:12.467023"], ["created_at", "2019-10-28 19:03:12.467056"], ["updated_at", "2019-10-28 19:03:12.467056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.664328', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.663840' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.663850') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-28T19:03:12.667Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:03:12.669403"], ["created_at", "2019-10-28 19:03:12.669435"], ["updated_at", "2019-10-28 19:03:12.669435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.671625', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.671294' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.671304') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.674950', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.674632' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.674644') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:03:12.680Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:03:12.682230"], ["created_at", "2019-10-28 19:03:12.682260"], ["updated_at", "2019-10-28 19:03:12.682260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.725649', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.725295' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.725307') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.728921', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.728601' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.728613') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:03:12.733Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:03:12.734673"], ["created_at", "2019-10-28 19:03:12.734705"], ["updated_at", "2019-10-28 19:03:12.734705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.739122', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.738798' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.738808') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.742611', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.742280' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.742292') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.747262', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.746920' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.746927') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:03:12.753476', locked_by = 'host:Nathan-Griffith-MBP13 pid:40909' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:03:12.752857' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:03:12.752870') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:40909') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (8.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (24.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.344320"], ["created_at", "2019-10-28 19:08:11.344372"], ["updated_at", "2019-10-28 19:08:11.344372"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.365949"], ["created_at", "2019-10-28 19:08:11.365994"], ["updated_at", "2019-10-28 19:08:11.365994"]] 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\":\"3023839e-b769-4f0a-b4ed-2f8fc8f2384f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:08:11.370Z\",\"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-10-28 19:08:11.373821"], ["created_at", "2019-10-28 19:08:11.373861"], ["updated_at", "2019-10-28 19:08:11.373861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.391972"], ["created_at", "2019-10-28 19:08:11.392017"], ["updated_at", "2019-10-28 19:08:11.392017"]] 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\":\"947c44a7-fd30-4fb6-b2a2-50a24f7a3410\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:08:11.395Z\",\"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-10-28 19:08:11.397244"], ["created_at", "2019-10-28 19:08:11.397281"], ["updated_at", "2019-10-28 19:08:11.397281"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.413349"], ["created_at", "2019-10-28 19:08:11.413434"], ["updated_at", "2019-10-28 19:08:11.413434"]] 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\":\"14c15517-f4a3-431f-9bce-be4082116715\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:08:11.417Z\",\"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-10-28 19:08:11.419693"], ["created_at", "2019-10-28 19:08:11.419734"], ["updated_at", "2019-10-28 19:08:11.419734"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.442732"], ["created_at", "2019-10-28 19:08:11.442860"], ["updated_at", "2019-10-28 19:08:11.442860"]] 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\":\"0d876b00-324b-466a-a4e5-0b6562c81fd4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:08:11.446Z\",\"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-10-28 19:08:11.448916"], ["created_at", "2019-10-28 19:08:11.448953"], ["updated_at", "2019-10-28 19:08:11.448953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:08:11.468957"], ["created_at", "2019-10-28 19:08:11.469002"], ["updated_at", "2019-10-28 19:08:11.469002"]] 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\":\"26ba972a-d07c-4330-a419-3a4f15c09d54\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:08:11.472Z\",\"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-10-28 19:08:11.473947"], ["created_at", "2019-10-28 19:08:11.473981"], ["updated_at", "2019-10-28 19:08:11.473981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (3.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.615667', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.615106' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.615117') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-28T19:08:11.619Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:08:11.621501"], ["created_at", "2019-10-28 19:08:11.621538"], ["updated_at", "2019-10-28 19:08:11.621538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.623913', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.623563' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.623573') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.627757', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.627414' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.627426') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.633128', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.632759' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.632770') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.708523', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.708111' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.708125') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:08:11.714435', locked_by = 'host:Nathan-Griffith-MBP13 pid:42284' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:08:11.714078' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:08:11.714090') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:42284') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (131.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (11.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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.593306', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.591653' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.591665') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:12:39.598Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:12:39.636496"], ["created_at", "2019-10-28 19:12:39.636541"], ["updated_at", "2019-10-28 19:12:39.636541"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.641543', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.641180' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.641192') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.645630', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.645242' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.645255') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:12:39.653Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:12:39.655431"], ["created_at", "2019-10-28 19:12:39.655467"], ["updated_at", "2019-10-28 19:12:39.655467"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.658986', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.658639' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.658649') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.663367', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.662948' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.662961') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.669797', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.669379' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.669391') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:12:39.675860', locked_by = 'host:Nathan-Griffith-MBP13 pid:43954' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:12:39.675334' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:12:39.675349') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:43954') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:12:39.932507"], ["created_at", "2019-10-28 19:12:39.932566"], ["updated_at", "2019-10-28 19:12:39.932566"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:12:39.980435"], ["created_at", "2019-10-28 19:12:39.980491"], ["updated_at", "2019-10-28 19:12:39.980491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:12:40.004503"], ["created_at", "2019-10-28 19:12:40.004554"], ["updated_at", "2019-10-28 19:12:40.004554"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 5]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:12:40.048322"], ["created_at", "2019-10-28 19:12:40.048403"], ["updated_at", "2019-10-28 19:12:40.048403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 19:12:40.076971"], ["created_at", "2019-10-28 19:12:40.077039"], ["updated_at", "2019-10-28 19:12:40.077039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # 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-10-28 19:12:40.114109"], ["created_at", "2019-10-28 19:12:40.114154"], ["updated_at", "2019-10-28 19:12:40.114154"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (3.7ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (2.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (3.1ms) 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-10-28 19:13:11.666340"], ["created_at", "2019-10-28 19:13:11.666394"], ["updated_at", "2019-10-28 19:13:11.666394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:13:11.693350"], ["created_at", "2019-10-28 19:13:11.693396"], ["updated_at", "2019-10-28 19:13:11.693396"]] 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\":\"c5e0f6d1-0117-49ba-973f-0b945f086827\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:13:11.720Z\",\"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-10-28 19:13:11.723963"], ["created_at", "2019-10-28 19:13:11.724002"], ["updated_at", "2019-10-28 19:13:11.724002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:13:11.745393"], ["created_at", "2019-10-28 19:13:11.745444"], ["updated_at", "2019-10-28 19:13:11.745444"]] 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\":\"09212492-bf88-4edf-ad71-55b756a0ff74\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:13:11.748Z\",\"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-10-28 19:13:11.750404"], ["created_at", "2019-10-28 19:13:11.750435"], ["updated_at", "2019-10-28 19:13:11.750435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:13:11.772530"], ["created_at", "2019-10-28 19:13:11.772578"], ["updated_at", "2019-10-28 19:13:11.772578"]] 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\":\"5940deda-35b5-4423-bbc8-61afa35b3322\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:13:11.776Z\",\"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-10-28 19:13:11.777831"], ["created_at", "2019-10-28 19:13:11.777866"], ["updated_at", "2019-10-28 19:13:11.777866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:13:11.800344"], ["created_at", "2019-10-28 19:13:11.800387"], ["updated_at", "2019-10-28 19:13:11.800387"]] 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\":\"18fce088-daa7-4b65-b6ec-24b949cc98ae\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:13:11.803Z\",\"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-10-28 19:13:11.805737"], ["created_at", "2019-10-28 19:13:11.805776"], ["updated_at", "2019-10-28 19:13:11.805776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:13:11.827955"], ["created_at", "2019-10-28 19:13:11.828006"], ["updated_at", "2019-10-28 19:13:11.828006"]] 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\":\"d5f683e2-a25e-4899-b707-9fb1b9a7927a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:13:11.831Z\",\"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-10-28 19:13:11.832898"], ["created_at", "2019-10-28 19:13:11.832933"], ["updated_at", "2019-10-28 19:13:11.832933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs"  (1.1ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.1ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.177477', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.176904' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.176917') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-28T19:13:12.181Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:13:12.183987"], ["created_at", "2019-10-28 19:13:12.184022"], ["updated_at", "2019-10-28 19:13:12.184022"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.189389', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.188049' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.188092') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.195373', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.195054' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.195065') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.200127', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.199801' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.199809') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.264995', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.264660' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.264671') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:13:12.274252', locked_by = 'host:Nathan-Griffith-MBP13 pid:44181' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:13:12.273908' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:13:12.273919') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44181') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-28T19:14:21.923Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:14:21.947576"], ["created_at", "2019-10-28 19:14:21.947764"], ["updated_at", "2019-10-28 19:14:21.947764"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:21.953567', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:21.952979' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:21.952990') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:21.957533', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:21.957181' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:21.957193') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:21.967505', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:21.965879' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:21.965921') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:22.042371', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:22.042025' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:22.042037') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:22.051907', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:22.051545' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:22.051556') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:22.058551', locked_by = 'host:Nathan-Griffith-MBP13 pid:44228' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:22.058220' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:22.058232') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44228') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (1.2ms) ROLLBACK  (1.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (3.9ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (1.4ms) ROLLBACK  (1.4ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.5ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.203885"], ["created_at", "2019-10-28 19:14:22.203939"], ["updated_at", "2019-10-28 19:14:22.203939"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Update (0.6ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 2]]  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.238785"], ["created_at", "2019-10-28 19:14:22.238836"], ["updated_at", "2019-10-28 19:14:22.238836"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.267874"], ["created_at", "2019-10-28 19:14:22.267923"], ["updated_at", "2019-10-28 19:14:22.267923"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 4]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.294283"], ["created_at", "2019-10-28 19:14:22.294522"], ["updated_at", "2019-10-28 19:14:22.294522"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.322147"], ["created_at", "2019-10-28 19:14:22.322195"], ["updated_at", "2019-10-28 19:14:22.322195"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:22.343546"], ["created_at", "2019-10-28 19:14:22.343694"], ["updated_at", "2019-10-28 19:14:22.343694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.8ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.288215', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.287652' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.287673') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-28T19:14:49.297Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:14:49.313277"], ["created_at", "2019-10-28 19:14:49.313327"], ["updated_at", "2019-10-28 19:14:49.313327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.315996', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.315648' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.315659') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (1.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.321237', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.320877' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.320890') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:14:49.333Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:14:49.335050"], ["created_at", "2019-10-28 19:14:49.335080"], ["updated_at", "2019-10-28 19:14:49.335080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.338148', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.337816' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.337826') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.344034', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.343679' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.343692') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.351893', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.350764' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.350798') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (1.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:14:49.363156', locked_by = 'host:Nathan-Griffith-MBP13 pid:44687' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:14:49.361830' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:14:49.361885') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44687') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.8ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (1.0ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN # Destroy (2.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # Create (1.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-10-28 19:14:49.638306"], ["created_at", "2019-10-28 19:14:49.638359"], ["updated_at", "2019-10-28 19:14:49.638359"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:49.668142"], ["created_at", "2019-10-28 19:14:49.668195"], ["updated_at", "2019-10-28 19:14:49.668195"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (1.1ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 4]]  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 19:14:49.696929"], ["created_at", "2019-10-28 19:14:49.696978"], ["updated_at", "2019-10-28 19:14:49.696978"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 # 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-10-28 19:14:49.722367"], ["created_at", "2019-10-28 19:14:49.722416"], ["updated_at", "2019-10-28 19:14:49.722416"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:14:49.767225"], ["created_at", "2019-10-28 19:14:49.767270"], ["updated_at", "2019-10-28 19:14:49.767270"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 # Create (1.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-10-28 19:14:49.789531"], ["created_at", "2019-10-28 19:14:49.789575"], ["updated_at", "2019-10-28 19:14:49.789575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.9ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (42.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # Create (1.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-10-28 19:16:17.208090"], ["created_at", "2019-10-28 19:16:17.208141"], ["updated_at", "2019-10-28 19:16:17.208141"]] Delayed::Backend::ActiveRecord::Job Create (0.9ms) 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\":\"52ff5cd7-34e5-4a56-947a-57e1e2791e86\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:16:17.258Z\",\"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-10-28 19:16:17.279689"], ["created_at", "2019-10-28 19:16:17.279910"], ["updated_at", "2019-10-28 19:16:17.279910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:16:17.305522"], ["created_at", "2019-10-28 19:16:17.305582"], ["updated_at", "2019-10-28 19:16:17.305582"]] 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\":\"4bd34853-82aa-405e-95bb-c68867a51146\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:16:17.309Z\",\"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-10-28 19:16:17.311981"], ["created_at", "2019-10-28 19:16:17.312041"], ["updated_at", "2019-10-28 19:16:17.312041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:17.328507"], ["created_at", "2019-10-28 19:16:17.328582"], ["updated_at", "2019-10-28 19:16:17.328582"]] 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\":\"e9892458-3cdb-4743-a361-44ea74ce133b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:16:17.333Z\",\"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-10-28 19:16:17.334989"], ["created_at", "2019-10-28 19:16:17.335032"], ["updated_at", "2019-10-28 19:16:17.335032"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 5]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:17.353750"], ["created_at", "2019-10-28 19:16:17.353799"], ["updated_at", "2019-10-28 19:16:17.353799"]] 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\":\"02b201e1-afba-4f48-8f90-cd70a5eb63ae\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:16:17.357Z\",\"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-10-28 19:16:17.359234"], ["created_at", "2019-10-28 19:16:17.359270"], ["updated_at", "2019-10-28 19:16:17.359270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:16:17.374906"], ["created_at", "2019-10-28 19:16:17.374951"], ["updated_at", "2019-10-28 19:16:17.374951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:17.414687"], ["created_at", "2019-10-28 19:16:17.414731"], ["updated_at", "2019-10-28 19:16:17.414731"]] 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\":\"7da09cf6-3dd7-478f-8802-b77a46a10896\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:16:17.418Z\",\"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-10-28 19:16:17.419777"], ["created_at", "2019-10-28 19:16:17.419814"], ["updated_at", "2019-10-28 19:16:17.419814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN # Destroy (2.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.663284', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.662441' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.662459') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.671736', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.671400' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.671411') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:16:17.675Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:16:17.677045"], ["created_at", "2019-10-28 19:16:17.677090"], ["updated_at", "2019-10-28 19:16:17.677090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.679534', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.679196' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.679208') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.683363', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.683040' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.683052') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:16:17.689Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:16:17.691410"], ["created_at", "2019-10-28 19:16:17.691444"], ["updated_at", "2019-10-28 19:16:17.691444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.694756', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.694414' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.694426') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.698423', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.697837' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.697851') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:17.704363', locked_by = 'host:Nathan-Griffith-MBP13 pid:44837' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:17.703782' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:17.703797') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44837') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (9.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.0ms) 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-10-28T19:16:43.956Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:16:43.971955"], ["created_at", "2019-10-28 19:16:43.972006"], ["updated_at", "2019-10-28 19:16:43.972006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:43.975726', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:43.975095' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:43.975106') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:43.979975', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:43.979602' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:43.979614') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:16:43.986Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:16:43.988331"], ["created_at", "2019-10-28 19:16:43.988366"], ["updated_at", "2019-10-28 19:16:43.988366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:43.992138', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:43.991773' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:43.991783') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:43.996051', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:43.995690' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:43.995702') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:44.001030', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:44.000684' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:44.000694') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:44.006873', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:44.006504' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:44.006516') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:16:44.012305', locked_by = 'host:Nathan-Griffith-MBP13 pid:44958' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:16:44.011951' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:16:44.011969') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:44958') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.238844"], ["created_at", "2019-10-28 19:16:44.238892"], ["updated_at", "2019-10-28 19:16:44.238892"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.278842"], ["created_at", "2019-10-28 19:16:44.278888"], ["updated_at", "2019-10-28 19:16:44.278888"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.297376"], ["created_at", "2019-10-28 19:16:44.297418"], ["updated_at", "2019-10-28 19:16:44.297418"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.317147"], ["created_at", "2019-10-28 19:16:44.317194"], ["updated_at", "2019-10-28 19:16:44.317194"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.337911"], ["created_at", "2019-10-28 19:16:44.337955"], ["updated_at", "2019-10-28 19:16:44.337955"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:16:44.356470"], ["created_at", "2019-10-28 19:16:44.356513"], ["updated_at", "2019-10-28 19:16:44.356513"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs"  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.461875"], ["created_at", "2019-10-28 19:24:36.461934"], ["updated_at", "2019-10-28 19:24:36.461934"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.501881"], ["created_at", "2019-10-28 19:24:36.501925"], ["updated_at", "2019-10-28 19:24:36.501925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.528152"], ["created_at", "2019-10-28 19:24:36.528207"], ["updated_at", "2019-10-28 19:24:36.528207"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.558200"], ["created_at", "2019-10-28 19:24:36.558319"], ["updated_at", "2019-10-28 19:24:36.558319"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.605880"], ["created_at", "2019-10-28 19:24:36.605924"], ["updated_at", "2019-10-28 19:24:36.605924"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:24:36.634700"], ["created_at", "2019-10-28 19:24:36.634745"], ["updated_at", "2019-10-28 19:24:36.634745"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.7ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.819997', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.819469' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.819480') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:24:36.828Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:24:36.830956"], ["created_at", "2019-10-28 19:24:36.831045"], ["updated_at", "2019-10-28 19:24:36.831045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.833492', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.833149' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.833159') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.836874', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.836535' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.836547') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (6.1ms) ROLLBACK  (1.0ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.849950', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.849603' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.849613') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.908527', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.908181' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.908192') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.5ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:24:36.917477', locked_by = 'host:Nathan-Griffith-MBP13 pid:47250' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:24:36.916973' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:24:36.917018') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47250') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (1.9ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.387193', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.386639' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.386651') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.395306', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.394969' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.394980') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (2.2ms) 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-10-28T19:25:14.398Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:25:14.411069"], ["created_at", "2019-10-28 19:25:14.411122"], ["updated_at", "2019-10-28 19:25:14.411122"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.415906', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.415544' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.415556') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.419525', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.419174' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.419187') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.425675', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.425272' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.425282') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:25:14.494161', locked_by = 'host:Nathan-Griffith-MBP13 pid:47668' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:25:14.493812' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:25:14.493824') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:47668') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.514832"], ["created_at", "2019-10-28 19:25:14.514878"], ["updated_at", "2019-10-28 19:25:14.514878"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.533706"], ["created_at", "2019-10-28 19:25:14.533751"], ["updated_at", "2019-10-28 19:25:14.533751"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.552013"], ["created_at", "2019-10-28 19:25:14.552056"], ["updated_at", "2019-10-28 19:25:14.552056"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.571194"], ["created_at", "2019-10-28 19:25:14.571239"], ["updated_at", "2019-10-28 19:25:14.571239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.590766"], ["created_at", "2019-10-28 19:25:14.590809"], ["updated_at", "2019-10-28 19:25:14.590809"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:25:14.608292"], ["created_at", "2019-10-28 19:25:14.608334"], ["updated_at", "2019-10-28 19:25:14.608334"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:29.961104', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:29.960486' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:29.960498') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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-10-28T19:27:29.966Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:27:29.980728"], ["created_at", "2019-10-28 19:27:29.980783"], ["updated_at", "2019-10-28 19:27:29.980783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:29.983617', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:29.983279' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:29.983288') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:29.987141', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:29.986803' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:29.986815') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:27:29.996Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:27:29.998010"], ["created_at", "2019-10-28 19:27:29.998039"], ["updated_at", "2019-10-28 19:27:29.998039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:30.001248', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:30.000907' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:30.000918') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:30.004444', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:30.004082' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:30.004094') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.7ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:30.012827', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:30.012460' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:30.012471') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:27:30.021490', locked_by = 'host:Nathan-Griffith-MBP13 pid:48138' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:27:30.021131' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:27:30.021143') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48138') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.1ms) ROLLBACK  (1.1ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.6ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (1.5ms) ROLLBACK  (0.4ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (1.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.280541"], ["created_at", "2019-10-28 19:27:30.280584"], ["updated_at", "2019-10-28 19:27:30.280584"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.304556"], ["created_at", "2019-10-28 19:27:30.304609"], ["updated_at", "2019-10-28 19:27:30.304609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (1.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.330553"], ["created_at", "2019-10-28 19:27:30.330594"], ["updated_at", "2019-10-28 19:27:30.330594"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.353845"], ["created_at", "2019-10-28 19:27:30.353889"], ["updated_at", "2019-10-28 19:27:30.353889"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.392264"], ["created_at", "2019-10-28 19:27:30.392317"], ["updated_at", "2019-10-28 19:27:30.392317"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:27:30.412072"], ["created_at", "2019-10-28 19:27:30.412113"], ["updated_at", "2019-10-28 19:27:30.412113"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.9ms) BEGIN  (1.1ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (1.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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)  (1.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ROLLBACK  (1.0ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (1.0ms) BEGIN  (1.2ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-28 19:41:35.233876"], ["created_at", "2019-10-28 19:41:35.233924"], ["updated_at", "2019-10-28 19:41:35.233924"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:41:35.265399"], ["created_at", "2019-10-28 19:41:35.265441"], ["updated_at", "2019-10-28 19:41:35.265441"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:41:35.285826"], ["created_at", "2019-10-28 19:41:35.285868"], ["updated_at", "2019-10-28 19:41:35.285868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:41:35.308264"], ["created_at", "2019-10-28 19:41:35.308311"], ["updated_at", "2019-10-28 19:41:35.308311"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:41:35.328643"], ["created_at", "2019-10-28 19:41:35.328685"], ["updated_at", "2019-10-28 19:41:35.328685"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:41:35.348805"], ["created_at", "2019-10-28 19:41:35.348878"], ["updated_at", "2019-10-28 19:41:35.348878"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (1.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (1.0ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (1.0ms) BEGIN  (0.7ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.604073', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.603536' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.603548') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.613690', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.613351' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.613361') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:41:35.617Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:41:35.620980"], ["created_at", "2019-10-28 19:41:35.621020"], ["updated_at", "2019-10-28 19:41:35.621020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.623280', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.622940' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.622949') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.626895', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.626551' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.626563') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:41:35.636Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:41:35.637805"], ["created_at", "2019-10-28 19:41:35.637836"], ["updated_at", "2019-10-28 19:41:35.637836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.640843', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.640498' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.640509') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.644200', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.643866' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.643878') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:41:35.651828', locked_by = 'host:Nathan-Griffith-MBP13 pid:48543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:41:35.651289' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:41:35.651317') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:48543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.1ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.346292', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.345671' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.345684') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.358038', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.357678' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.357690') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:54:51.361Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:54:51.381597"], ["created_at", "2019-10-28 19:54:51.381657"], ["updated_at", "2019-10-28 19:54:51.381657"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.387074', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.386020' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.386053') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.392253', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.391890' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.391903') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:54:51.401Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:54:51.406547"], ["created_at", "2019-10-28 19:54:51.406586"], ["updated_at", "2019-10-28 19:54:51.406586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.409896', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.409526' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.409538') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.413487', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.413075' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.413087') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:54:51.422497', locked_by = 'host:Nathan-Griffith-MBP13 pid:49009' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:54:51.421271' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:54:51.421294') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49009') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.627418"], ["created_at", "2019-10-28 19:54:51.627462"], ["updated_at", "2019-10-28 19:54:51.627462"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.659085"], ["created_at", "2019-10-28 19:54:51.659128"], ["updated_at", "2019-10-28 19:54:51.659128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.688626"], ["created_at", "2019-10-28 19:54:51.688674"], ["updated_at", "2019-10-28 19:54:51.688674"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.711968"], ["created_at", "2019-10-28 19:54:51.712009"], ["updated_at", "2019-10-28 19:54:51.712009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.737921"], ["created_at", "2019-10-28 19:54:51.737965"], ["updated_at", "2019-10-28 19:54:51.737965"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 19:54:51.761196"], ["created_at", "2019-10-28 19:54:51.761238"], ["updated_at", "2019-10-28 19:54:51.761238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.181472', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.180910' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.180922') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.8ms) 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-10-28T19:55:27.187Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:55:27.219423"], ["created_at", "2019-10-28 19:55:27.219471"], ["updated_at", "2019-10-28 19:55:27.219471"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.223932', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.223547' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.223560') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.227838', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.227483' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.227495') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.233065', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.232698' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.232709') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.300709', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.300329' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.300341') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:55:27.306160', locked_by = 'host:Nathan-Griffith-MBP13 pid:49168' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:55:27.305801' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:55:27.305814') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49168') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.643425"], ["created_at", "2019-10-28 19:55:27.643469"], ["updated_at", "2019-10-28 19:55:27.643469"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.662434"], ["created_at", "2019-10-28 19:55:27.662477"], ["updated_at", "2019-10-28 19:55:27.662477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.681570"], ["created_at", "2019-10-28 19:55:27.681612"], ["updated_at", "2019-10-28 19:55:27.681612"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.702287"], ["created_at", "2019-10-28 19:55:27.702330"], ["updated_at", "2019-10-28 19:55:27.702330"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.723163"], ["created_at", "2019-10-28 19:55:27.723207"], ["updated_at", "2019-10-28 19:55:27.723207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:55:27.741650"], ["created_at", "2019-10-28 19:55:27.741695"], ["updated_at", "2019-10-28 19:55:27.741695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.695674"], ["created_at", "2019-10-28 19:58:44.695729"], ["updated_at", "2019-10-28 19:58:44.695729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.715408"], ["created_at", "2019-10-28 19:58:44.715452"], ["updated_at", "2019-10-28 19:58:44.715452"]] 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\":\"98e11ac8-474a-4067-8971-f8c4328a7e4f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:58:44.719Z\",\"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-10-28 19:58:44.722880"], ["created_at", "2019-10-28 19:58:44.722919"], ["updated_at", "2019-10-28 19:58:44.722919"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.739115"], ["created_at", "2019-10-28 19:58:44.739164"], ["updated_at", "2019-10-28 19:58:44.739164"]] 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\":\"47123b63-8b99-4760-84d9-9867bcf8fc75\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:58:44.742Z\",\"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-10-28 19:58:44.744363"], ["created_at", "2019-10-28 19:58:44.744398"], ["updated_at", "2019-10-28 19:58:44.744398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.761244"], ["created_at", "2019-10-28 19:58:44.761289"], ["updated_at", "2019-10-28 19:58:44.761289"]] 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\":\"5466555c-d914-4e79-a6a8-e8eb19d32909\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:58:44.764Z\",\"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-10-28 19:58:44.766139"], ["created_at", "2019-10-28 19:58:44.766170"], ["updated_at", "2019-10-28 19:58:44.766170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.784047"], ["created_at", "2019-10-28 19:58:44.784094"], ["updated_at", "2019-10-28 19:58:44.784094"]] 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\":\"7dccc35c-452e-4e61-95fe-26a3ac7049ab\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:58:44.787Z\",\"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-10-28 19:58:44.789088"], ["created_at", "2019-10-28 19:58:44.789124"], ["updated_at", "2019-10-28 19:58:44.789124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 19:58:44.825326"], ["created_at", "2019-10-28 19:58:44.825374"], ["updated_at", "2019-10-28 19:58:44.825374"]] Delayed::Backend::ActiveRecord::Job Create (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\":\"bd4f833b-fcec-42cc-8cb5-d0c87610091e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T19:58:44.829Z\",\"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-10-28 19:58:44.834479"], ["created_at", "2019-10-28 19:58:44.834598"], ["updated_at", "2019-10-28 19:58:44.834598"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.903113', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.902542' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.902555') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.911185', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.910759' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.910772') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T19:58:44.914Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:58:44.916117"], ["created_at", "2019-10-28 19:58:44.916151"], ["updated_at", "2019-10-28 19:58:44.916151"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.918459', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.918099' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.918109') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.922020', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.921660' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.921672') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T19:58:44.930Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 19:58:44.931718"], ["created_at", "2019-10-28 19:58:44.931752"], ["updated_at", "2019-10-28 19:58:44.931752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.934720', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.934375' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.934386') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.938469', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.938123' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.938137') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 19:58:44.961753', locked_by = 'host:Nathan-Griffith-MBP13 pid:49470' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 19:58:44.961405' AND (locked_at IS NULL OR locked_at < '2019-10-28 15:58:44.961414') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49470') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.9ms) 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-10-28T20:00:12.983Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:00:12.999327"], ["created_at", "2019-10-28 20:00:12.999383"], ["updated_at", "2019-10-28 20:00:12.999383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.002961', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.002345' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.002356') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.007001', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.006632' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.006644') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:00:13.013Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:00:13.015069"], ["created_at", "2019-10-28 20:00:13.015102"], ["updated_at", "2019-10-28 20:00:13.015102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.018242', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.017895' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.017906') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.021611', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.021259' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.021271') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.026601', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.026220' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.026228') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.032567', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.032225' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.032236') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:00:13.037693', locked_by = 'host:Nathan-Griffith-MBP13 pid:49791' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:00:13.037355' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:00:13.037367') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:49791') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.111180"], ["created_at", "2019-10-28 20:00:13.111233"], ["updated_at", "2019-10-28 20:00:13.111233"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.171355"], ["created_at", "2019-10-28 20:00:13.171397"], ["updated_at", "2019-10-28 20:00:13.171397"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.189778"], ["created_at", "2019-10-28 20:00:13.189821"], ["updated_at", "2019-10-28 20:00:13.189821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.208430"], ["created_at", "2019-10-28 20:00:13.208475"], ["updated_at", "2019-10-28 20:00:13.208475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.230797"], ["created_at", "2019-10-28 20:00:13.230844"], ["updated_at", "2019-10-28 20:00:13.230844"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:00:13.251397"], ["created_at", "2019-10-28 20:00:13.251441"], ["updated_at", "2019-10-28 20:00:13.251441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (5.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (1.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.9ms) 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-10-28T20:03:29.483Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:03:29.498819"], ["created_at", "2019-10-28 20:03:29.498860"], ["updated_at", "2019-10-28 20:03:29.498860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.502315', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.501725' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.501735') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.506919', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.506352' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.506375') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.512071', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.511738' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.511747') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.583516', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.583128' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.583142') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.589641', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.589267' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.589277') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:29.595005', locked_by = 'host:Nathan-Griffith-MBP13 pid:51629' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:29.594642' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:29.594655') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51629') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.618951"], ["created_at", "2019-10-28 20:03:29.618995"], ["updated_at", "2019-10-28 20:03:29.618995"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.652869"], ["created_at", "2019-10-28 20:03:29.653082"], ["updated_at", "2019-10-28 20:03:29.653082"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.693380"], ["created_at", "2019-10-28 20:03:29.693424"], ["updated_at", "2019-10-28 20:03:29.693424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.713469"], ["created_at", "2019-10-28 20:03:29.713514"], ["updated_at", "2019-10-28 20:03:29.713514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.748337"], ["created_at", "2019-10-28 20:03:29.748385"], ["updated_at", "2019-10-28 20:03:29.748385"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:29.772239"], ["created_at", "2019-10-28 20:03:29.772284"], ["updated_at", "2019-10-28 20:03:29.772284"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.3ms) ROLLBACK  (2.7ms) BEGIN  (1.2ms) ROLLBACK  (0.7ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.415127', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.414528' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.414540') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.429000', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.428598' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.428609') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:03:48.432Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:03:48.449995"], ["created_at", "2019-10-28 20:03:48.450035"], ["updated_at", "2019-10-28 20:03:48.450035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.452725', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.452369' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.452378') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.460818', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.460449' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.460461') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:03:48.469Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:03:48.476376"], ["created_at", "2019-10-28 20:03:48.476421"], ["updated_at", "2019-10-28 20:03:48.476421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.479884', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.479532' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.479544') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.483129', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.482796' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.482808') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:03:48.492747', locked_by = 'host:Nathan-Griffith-MBP13 pid:51722' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:03:48.491123' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:03:48.491146') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:51722') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.560714"], ["created_at", "2019-10-28 20:03:48.560762"], ["updated_at", "2019-10-28 20:03:48.560762"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.6ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.592957"], ["created_at", "2019-10-28 20:03:48.593022"], ["updated_at", "2019-10-28 20:03:48.593022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.634847"], ["created_at", "2019-10-28 20:03:48.634888"], ["updated_at", "2019-10-28 20:03:48.634888"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.658742"], ["created_at", "2019-10-28 20:03:48.658830"], ["updated_at", "2019-10-28 20:03:48.658830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.681691"], ["created_at", "2019-10-28 20:03:48.681734"], ["updated_at", "2019-10-28 20:03:48.681734"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:03:48.708146"], ["created_at", "2019-10-28 20:03:48.708202"], ["updated_at", "2019-10-28 20:03:48.708202"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.9ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.7ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.9ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (1.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (51.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (14.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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.7ms) 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-10-28 20:06:13.155466"], ["created_at", "2019-10-28 20:06:13.155517"], ["updated_at", "2019-10-28 20:06:13.155517"]] 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\":\"8baa76a0-a114-492f-9cb8-396c4daac0e2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:06:13.219Z\",\"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-10-28 20:06:13.223206"], ["created_at", "2019-10-28 20:06:13.223243"], ["updated_at", "2019-10-28 20:06:13.223243"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) SAVEPOINT active_record_1 # 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-10-28 20:06:13.256600"], ["created_at", "2019-10-28 20:06:13.256674"], ["updated_at", "2019-10-28 20:06:13.256674"]] 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\":\"a54b237f-8bb0-4beb-8f0a-d9bbc1814b0a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:06:13.265Z\",\"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-10-28 20:06:13.268891"], ["created_at", "2019-10-28 20:06:13.268953"], ["updated_at", "2019-10-28 20:06:13.268953"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.7ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:06:13.291919"], ["created_at", "2019-10-28 20:06:13.291964"], ["updated_at", "2019-10-28 20:06:13.291964"]] 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\":\"625ef08c-32f6-4b22-b208-df4cc0711845\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:06:13.296Z\",\"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-10-28 20:06:13.301256"], ["created_at", "2019-10-28 20:06:13.301315"], ["updated_at", "2019-10-28 20:06:13.301315"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.6ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 # 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-10-28 20:06:13.333297"], ["created_at", "2019-10-28 20:06:13.333366"], ["updated_at", "2019-10-28 20:06:13.333366"]] Delayed::Backend::ActiveRecord::Job Create (1.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\":\"d7ac9686-9c84-42cb-b90b-914010856cbc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:06:13.340Z\",\"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-10-28 20:06:13.343171"], ["created_at", "2019-10-28 20:06:13.343231"], ["updated_at", "2019-10-28 20:06:13.343231"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (7.1ms) SAVEPOINT active_record_1 # 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-10-28 20:06:13.385252"], ["created_at", "2019-10-28 20:06:13.385338"], ["updated_at", "2019-10-28 20:06:13.385338"]] Delayed::Backend::ActiveRecord::Job Create (2.8ms) 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\":\"e0b496b7-a28d-42bd-942d-298fd6bd5ef7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:06:13.400Z\",\"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-10-28 20:06:13.404404"], ["created_at", "2019-10-28 20:06:13.404461"], ["updated_at", "2019-10-28 20:06:13.404461"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 20:06:13.494807"], ["created_at", "2019-10-28 20:06:13.494875"], ["updated_at", "2019-10-28 20:06:13.494875"]]  (3.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.5ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (12.9ms) ROLLBACK  (4.2ms) BEGIN  (4.4ms) ROLLBACK  (2.8ms) BEGIN # Destroy (3.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (1.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.9ms) DELETE FROM "delayed_jobs"  (4.2ms) ROLLBACK  (2.9ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T20:06:13.765Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:06:13.769257"], ["created_at", "2019-10-28 20:06:13.769310"], ["updated_at", "2019-10-28 20:06:13.769310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.772349', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.771778' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.771789') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.776515', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.776170' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.776182') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.2ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:06:13.784Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:06:13.785619"], ["created_at", "2019-10-28 20:06:13.785654"], ["updated_at", "2019-10-28 20:06:13.785654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.788797', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.788457' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.788468') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.792118', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.791792' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.791803') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.797224', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.796876' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.796885') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (4.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.812034', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.810536' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.810638') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:06:13.832694', locked_by = 'host:Nathan-Griffith-MBP13 pid:52265' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:06:13.832038' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:06:13.832061') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:52265') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.1ms) 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-10-28 20:08:16.769730"], ["created_at", "2019-10-28 20:08:16.769782"], ["updated_at", "2019-10-28 20:08:16.769782"]] 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\":\"c05938c1-7307-48a5-80ac-3447230e4108\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:08:16.777Z\",\"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-10-28 20:08:16.781374"], ["created_at", "2019-10-28 20:08:16.781412"], ["updated_at", "2019-10-28 20:08:16.781412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-28 20:08:16.804438"], ["created_at", "2019-10-28 20:08:16.804592"], ["updated_at", "2019-10-28 20:08:16.804592"]] 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\":\"5288849d-472b-402c-827d-498c01122a92\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:08:16.809Z\",\"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-10-28 20:08:16.811552"], ["created_at", "2019-10-28 20:08:16.811590"], ["updated_at", "2019-10-28 20:08:16.811590"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 20:08:16.836573"], ["created_at", "2019-10-28 20:08:16.836626"], ["updated_at", "2019-10-28 20:08:16.836626"]] 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\":\"364ee9ee-98a3-4ac8-8ca2-696b39658453\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:08:16.840Z\",\"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-10-28 20:08:16.842806"], ["created_at", "2019-10-28 20:08:16.842851"], ["updated_at", "2019-10-28 20:08:16.842851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:08:16.889041"], ["created_at", "2019-10-28 20:08:16.889107"], ["updated_at", "2019-10-28 20:08:16.889107"]] 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\":\"f9e52018-be31-453f-9233-ad09bc11ad66\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:08:16.893Z\",\"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-10-28 20:08:16.895230"], ["created_at", "2019-10-28 20:08:16.895265"], ["updated_at", "2019-10-28 20:08:16.895265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:08:16.917405"], ["created_at", "2019-10-28 20:08:16.917452"], ["updated_at", "2019-10-28 20:08:16.917452"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:08:16.941628"], ["created_at", "2019-10-28 20:08:16.941671"], ["updated_at", "2019-10-28 20:08:16.941671"]] 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\":\"7319743d-84ca-4a4a-b4b7-436c6098ba12\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-28T20:08:16.945Z\",\"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-10-28 20:08:16.947336"], ["created_at", "2019-10-28 20:08:16.947370"], ["updated_at", "2019-10-28 20:08:16.947370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.7ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.5ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-28T20:08:17.049Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:08:17.052157"], ["created_at", "2019-10-28 20:08:17.052187"], ["updated_at", "2019-10-28 20:08:17.052187"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.059785', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.057108' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.057144') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.065387', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.065060' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.065072') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:08:17.075Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:08:17.077782"], ["created_at", "2019-10-28 20:08:17.077818"], ["updated_at", "2019-10-28 20:08:17.077818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.080963', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.080624' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.080636') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.084260', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.083836' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.083853') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:08:17.093Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:08:17.095788"], ["created_at", "2019-10-28 20:08:17.095822"], ["updated_at", "2019-10-28 20:08:17.095822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.098861', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.098542' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.098553') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.102097', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.101771' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.101783') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.113065', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.112692' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.112703') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.118679', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.118351' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.118362') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:08:17.129779', locked_by = 'host:Nathan-Griffith-MBP13 pid:53380' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:08:17.129440' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:08:17.129453') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:53380') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (2.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:00.947371', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:00.945350' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:00.945368') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (2.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:00.974726', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:00.973151' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:00.973164') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (3.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T20:51:00.986Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:01.019972"], ["created_at", "2019-10-28 20:51:01.020019"], ["updated_at", "2019-10-28 20:51:01.020019"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.025844', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.025418' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.025433') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.029554', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.029187' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.029199') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:51:01.040Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:01.042141"], ["created_at", "2019-10-28 20:51:01.042176"], ["updated_at", "2019-10-28 20:51:01.042176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.045478', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.045038' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.045050') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.049023', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.048655' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.048668') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:51:01.061Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:01.062998"], ["created_at", "2019-10-28 20:51:01.063032"], ["updated_at", "2019-10-28 20:51:01.063032"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.066499', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.065968' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.065978') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.0ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.073373', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.072892' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.072907') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:01.082391', locked_by = 'host:Nathan-Griffith-MBP13 pid:56292' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:01.082026' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:01.082037') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56292') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.9ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (1.7ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (2.0ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.249799"], ["created_at", "2019-10-28 20:51:01.249845"], ["updated_at", "2019-10-28 20:51:01.249845"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.287405"], ["created_at", "2019-10-28 20:51:01.287648"], ["updated_at", "2019-10-28 20:51:01.287648"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.363429"], ["created_at", "2019-10-28 20:51:01.363476"], ["updated_at", "2019-10-28 20:51:01.363476"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.395611"], ["created_at", "2019-10-28 20:51:01.395656"], ["updated_at", "2019-10-28 20:51:01.395656"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.440906"], ["created_at", "2019-10-28 20:51:01.440960"], ["updated_at", "2019-10-28 20:51:01.440960"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Update (1.1ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:01.476795"], ["created_at", "2019-10-28 20:51:01.476845"], ["updated_at", "2019-10-28 20:51:01.476845"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 9]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (2.1ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (1.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (51.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (1.7ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.9ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (4.8ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (4.6ms) BEGIN  (0.4ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.8ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (3.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (4.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (2.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-10-28T20:51:37.106Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:37.135376"], ["created_at", "2019-10-28 20:51:37.135428"], ["updated_at", "2019-10-28 20:51:37.135428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.141532', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.140547' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.140561') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.147944', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.147640' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.147655') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (2.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:51:37.162Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:37.164951"], ["created_at", "2019-10-28 20:51:37.164998"], ["updated_at", "2019-10-28 20:51:37.164998"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.168415', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.167923' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.167947') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.173082', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.172636' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.172654') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:51:37.182Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:37.185069"], ["created_at", "2019-10-28 20:51:37.185115"], ["updated_at", "2019-10-28 20:51:37.185115"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.190972', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.190625' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.190640') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.195603', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.195302' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.195318') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.208399', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.207973' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.207996') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.219425', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.218975' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.218992') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:37.231772', locked_by = 'host:Nathan-Griffith-MBP13 pid:56459' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:37.231298' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:37.231353') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56459') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (2.8ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (4.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (1.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.8ms) ROLLBACK  (1.5ms) BEGIN  (1.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.716918', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.714145' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.714713') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.8ms) 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-10-28T20:51:57.723Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:51:57.744317"], ["created_at", "2019-10-28 20:51:57.744365"], ["updated_at", "2019-10-28 20:51:57.744365"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.750496', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.748717' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.748758') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.757257', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.756941' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.756953') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.769289', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.768921' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.768953') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.837453', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.836913' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.836982') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.852526', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.852158' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.852169') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:51:57.862060', locked_by = 'host:Nathan-Griffith-MBP13 pid:56471' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:51:57.861735' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:51:57.861749') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56471') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.8ms) BEGIN # Update All (1.0ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (1.7ms) ROLLBACK  (0.8ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:58.026707"], ["created_at", "2019-10-28 20:51:58.026760"], ["updated_at", "2019-10-28 20:51:58.026760"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:58.060555"], ["created_at", "2019-10-28 20:51:58.060606"], ["updated_at", "2019-10-28 20:51:58.060606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-10-28 20:51:58.110412"], ["created_at", "2019-10-28 20:51:58.110461"], ["updated_at", "2019-10-28 20:51:58.110461"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-28 20:51:58.142726"], ["created_at", "2019-10-28 20:51:58.142769"], ["updated_at", "2019-10-28 20:51:58.142769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:58.175464"], ["created_at", "2019-10-28 20:51:58.175510"], ["updated_at", "2019-10-28 20:51:58.175510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-28 20:51:58.202953"], ["created_at", "2019-10-28 20:51:58.202997"], ["updated_at", "2019-10-28 20:51:58.202997"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.3ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:40.964501', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:40.963763' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:40.963778') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T20:52:40.970Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:52:40.999337"], ["created_at", "2019-10-28 20:52:40.999396"], ["updated_at", "2019-10-28 20:52:40.999396"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.006463', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.005337' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.005351') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (2.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (2.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.018633', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.016138' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.016162') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.032390', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.032096' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.032109') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.146343', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.145887' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.145907') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.156779', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.156440' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.156454') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:52:41.162744', locked_by = 'host:Nathan-Griffith-MBP13 pid:56603' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:52:41.162429' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:52:41.162445') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56603') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.9ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (2.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (3.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (2.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (1.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.6ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (49.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (10.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)  (2.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (1.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (2.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.5ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (2.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (3.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.632605', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.629721' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.629767') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.641988', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.641604' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.641618') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:53:23.651Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:53:23.671906"], ["created_at", "2019-10-28 20:53:23.671952"], ["updated_at", "2019-10-28 20:53:23.671952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.674516', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.674005' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.674018') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.683056', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.682754' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.682769') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:53:23.696Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:53:23.700242"], ["created_at", "2019-10-28 20:53:23.700282"], ["updated_at", "2019-10-28 20:53:23.700282"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.703211', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.702901' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.702914') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.706776', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.706455' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.706469') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.718821', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.718178' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.718197') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (1.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:23.805444', locked_by = 'host:Nathan-Griffith-MBP13 pid:56640' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:23.805067' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:23.805081') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56640') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (41.3ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.1ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:53:44.195Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:53:44.217350"], ["created_at", "2019-10-28 20:53:44.217404"], ["updated_at", "2019-10-28 20:53:44.217404"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:44.222743', locked_by = 'host:Nathan-Griffith-MBP13 pid:56654' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:44.222074' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:44.222085') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56654') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:53:44.227925', locked_by = 'host:Nathan-Griffith-MBP13 pid:56654' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:53:44.227271' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:53:44.227290') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56654') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (15.7ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.276253', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.275638' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.275652') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T20:54:13.289Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:54:13.302431"], ["created_at", "2019-10-28 20:54:13.302488"], ["updated_at", "2019-10-28 20:54:13.302488"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.306830', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.306408' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.306422') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.311119', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.310749' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.310761') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:54:13.326Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:54:13.328394"], ["created_at", "2019-10-28 20:54:13.328425"], ["updated_at", "2019-10-28 20:54:13.328425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.331766', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.331430' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.331440') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.337156', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.336428' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.336457') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.346898', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.346499' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.346509') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.8ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.438892', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.438359' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.438374') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:54:13.448570', locked_by = 'host:Nathan-Griffith-MBP13 pid:56692' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:54:13.448189' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:54:13.448203') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56692') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.4ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.476365', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.475689' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.475702') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:58:09.487Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:58:09.502041"], ["created_at", "2019-10-28 20:58:09.502091"], ["updated_at", "2019-10-28 20:58:09.502091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.506051', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.505693' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.505705') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.510197', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.509851' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.509864') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T20:58:09.521Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 20:58:09.522945"], ["created_at", "2019-10-28 20:58:09.522982"], ["updated_at", "2019-10-28 20:58:09.522982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.526370', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.525908' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.525919') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.531067', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.530679' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.530692') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:09.541349', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:09.540906' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:09.540917') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.6ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:58.670430', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:58.670001' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:58.670013') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 20:58:58.681775', locked_by = 'host:Nathan-Griffith-MBP13 pid:56989' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 20:58:58.681016' AND (locked_at IS NULL OR locked_at < '2019-10-28 16:58:58.681040') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:56989') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.5ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.880086', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.879507' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.879519') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 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-10-28T21:00:41.886Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:00:41.899991"], ["created_at", "2019-10-28 21:00:41.900046"], ["updated_at", "2019-10-28 21:00:41.900046"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.906085', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.905631' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.905647') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.910696', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.910276' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.910288') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.7ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:00:41.918Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:00:41.920516"], ["created_at", "2019-10-28 21:00:41.920554"], ["updated_at", "2019-10-28 21:00:41.920554"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.925593', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.925147' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.925161') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.929545', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.929158' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.929171') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:41.936289', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:41.935864' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:41.935876') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:42.021437', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:42.020974' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:42.020990') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:00:42.027823', locked_by = 'host:Nathan-Griffith-MBP13 pid:57662' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:00:42.027449' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:00:42.027463') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:57662') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (48.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.282484', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.280745' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.280777') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T21:02:19.293Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:02:19.308164"], ["created_at", "2019-10-28 21:02:19.308219"], ["updated_at", "2019-10-28 21:02:19.308219"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.312655', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.312250' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.312262') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.317474', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.317094' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.317107') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:02:19.328Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:02:19.329877"], ["created_at", "2019-10-28 21:02:19.329912"], ["updated_at", "2019-10-28 21:02:19.329912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.333493', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.333100' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.333112') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.341671', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.339572' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.339665') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:02:19.361465', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:02:19.360829' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:02:19.360842') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (2.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:25.033318', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:25.032696' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:25.032709') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:25.045301', locked_by = 'host:Nathan-Griffith-MBP13 pid:58074' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:25.044910' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:25.044924') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58074') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (50.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.2ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.2ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:04:36.866Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:04:36.886281"], ["created_at", "2019-10-28 21:04:36.886331"], ["updated_at", "2019-10-28 21:04:36.886331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:36.892788', locked_by = 'host:Nathan-Griffith-MBP13 pid:58636' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:36.891308' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:36.891339') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58636') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:36.897564', locked_by = 'host:Nathan-Griffith-MBP13 pid:58636' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:36.897108' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:36.897131') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58636') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (2.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.215496', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.214748' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.214767') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 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-10-28T21:04:47.222Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:04:47.238115"], ["created_at", "2019-10-28 21:04:47.238209"], ["updated_at", "2019-10-28 21:04:47.238209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.243773', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.243360' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.243373') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.248661', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.248244' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.248258') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:04:47.257Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:04:47.265551"], ["created_at", "2019-10-28 21:04:47.265607"], ["updated_at", "2019-10-28 21:04:47.265607"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.269559', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.269119' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.269133') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.273638', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.273255' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.273268') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.280706', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.278928' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.278946') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.387761', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.387129' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.387151') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:04:47.396723', locked_by = 'host:Nathan-Griffith-MBP13 pid:58661' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:04:47.395905' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:04:47.395930') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:58661') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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)  (1.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (41.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.328022', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.327234' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.327248') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-28T21:17:47.335Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:17:47.347771"], ["created_at", "2019-10-28 21:17:47.347828"], ["updated_at", "2019-10-28 21:17:47.347828"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (3.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.355504', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.354032' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.354054') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.362395', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.361908' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.361920') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.4ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:17:47.370Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:17:47.372593"], ["created_at", "2019-10-28 21:17:47.372629"], ["updated_at", "2019-10-28 21:17:47.372629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.376296', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.375834' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.375846') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.380005', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.379634' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.379647') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.385851', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.385359' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.385370') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.477481', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.477021' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.477036') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:17:47.484102', locked_by = 'host:Nathan-Griffith-MBP13 pid:59188' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:17:47.483613' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:17:47.483628') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59188') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.1ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.714312', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.713478' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.713494') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 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-10-28T21:19:08.725Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:19:08.744552"], ["created_at", "2019-10-28 21:19:08.744617"], ["updated_at", "2019-10-28 21:19:08.744617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.750017', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.749446' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.749464') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.755532', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.755141' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.755162') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:19:08.770Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:19:08.773292"], ["created_at", "2019-10-28 21:19:08.773336"], ["updated_at", "2019-10-28 21:19:08.773336"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.777536', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.777097' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.777110') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.781591', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.781139' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.781157') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.4ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.792273', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.791378' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.791392') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.904715', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.904281' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.904295') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:19:08.914968', locked_by = 'host:Nathan-Griffith-MBP13 pid:59542' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:19:08.914554' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:19:08.914570') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59542') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (2.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.776922', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.774056' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.774321') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.8ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.793610', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.793006' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.793047') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.9ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.811590', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.811265' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.811275') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (2.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.821482', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.820641' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.820653') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.890731', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.890340' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.890354') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:01.901028', locked_by = 'host:Nathan-Griffith-MBP13 pid:59918' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:01.900677' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:01.900691') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:59918') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (9.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)  (2.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.8ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.512768', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.511775' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.511790') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (5.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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:20:21.538Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:20:21.562104"], ["created_at", "2019-10-28 21:20:21.562163"], ["updated_at", "2019-10-28 21:20:21.562163"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (10.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.576602', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.575479' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.575525') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (5.9ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.606185', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.605294' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.605313') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (6.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:20:21.619Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:20:21.623666"], ["created_at", "2019-10-28 21:20:21.623708"], ["updated_at", "2019-10-28 21:20:21.623708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.627301', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.626940' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.626952') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.640239', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.639843' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.639856') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (2.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.646378', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.645804' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.645814') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (1.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (2.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.750212', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.749669' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.749697') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:20:21.763703', locked_by = 'host:Nathan-Griffith-MBP13 pid:60077' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:20:21.762285' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:20:21.762333') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60077') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.5ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (3.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.649801', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.649088' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.649102') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) ROLLBACK  (0.5ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.669628', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.669165' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.669192') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.686542', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.686100' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.686112') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.5ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.700364', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.699995' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.700007') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.793143', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.792787' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.792799') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:21:49.802872', locked_by = 'host:Nathan-Griffith-MBP13 pid:60276' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:21:49.802516' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:21:49.802530') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60276') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.447230', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.446486' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.446500') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-28T21:22:08.466Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:22:08.485661"], ["created_at", "2019-10-28 21:22:08.485707"], ["updated_at", "2019-10-28 21:22:08.485707"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.489982', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.489603' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.489616') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.494258', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.493851' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.493865') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.7ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:22:08.507Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:22:08.510129"], ["created_at", "2019-10-28 21:22:08.510292"], ["updated_at", "2019-10-28 21:22:08.510292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.521373', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.519529' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.519561') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.526004', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.525630' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.525642') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) ROLLBACK  (0.7ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.536849', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.536350' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.536360') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.630927', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.630544' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.630556') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:22:08.641332', locked_by = 'host:Nathan-Griffith-MBP13 pid:60421' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:22:08.640967' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:22:08.640980') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60421') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (14.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.473537', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.472943' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.472958') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:23:14.488Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:23:14.506988"], ["created_at", "2019-10-28 21:23:14.507037"], ["updated_at", "2019-10-28 21:23:14.507037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.511296', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.510859' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.510874') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.515243', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.514874' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.514886') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:23:14.525Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:23:14.528392"], ["created_at", "2019-10-28 21:23:14.528436"], ["updated_at", "2019-10-28 21:23:14.528436"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.536519', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.534425' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.534473') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.541511', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.541131' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.541143') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (2.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.551243', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.549665' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.549724') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.651872', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.651418' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.651433') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:23:14.661706', locked_by = 'host:Nathan-Griffith-MBP13 pid:60889' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:23:14.661348' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:23:14.661362') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:60889') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (4.5ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (61.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (8.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)  (2.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (41.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (1.8ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.170335', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.169657' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.169673') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (4.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:27:18.184Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:27:18.204319"], ["created_at", "2019-10-28 21:27:18.204376"], ["updated_at", "2019-10-28 21:27:18.204376"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (2.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.209660', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.208782' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.208818') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.217932', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.217521' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.217534') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (2.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:27:18.231Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:27:18.233593"], ["created_at", "2019-10-28 21:27:18.233645"], ["updated_at", "2019-10-28 21:27:18.233645"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.241406', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.241035' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.241057') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.247314', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.246912' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.246925') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.258130', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.257312' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.257333') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.365561', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.365112' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.365126') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (3.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:27:18.375670', locked_by = 'host:Nathan-Griffith-MBP13 pid:62241' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:27:18.375126' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:27:18.375139') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62241') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (1.1ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.074858', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.074082' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.074097') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:28:38.082Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:28:38.096159"], ["created_at", "2019-10-28 21:28:38.096213"], ["updated_at", "2019-10-28 21:28:38.096213"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.101338', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.100868' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.100883') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.105470', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.105101' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.105113') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:28:38.112Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:28:38.114927"], ["created_at", "2019-10-28 21:28:38.114966"], ["updated_at", "2019-10-28 21:28:38.114966"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.118832', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.118346' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.118360') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.122936', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.122547' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.122560') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.128675', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.128019' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.128029') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-28T21:28:38.133Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-28 21:28:38.135454"], ["created_at", "2019-10-28 21:28:38.135504"], ["updated_at", "2019-10-28 21:28:38.135504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (2.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.140185', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.139101' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.139119') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.145948', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.145542' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.145555') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-28 21:28:38.152055', locked_by = 'host:Nathan-Griffith-MBP13 pid:62702' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-28 21:28:38.151640' AND (locked_at IS NULL OR locked_at < '2019-10-28 17:28:38.151654') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:62702') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (2.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (42.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (54.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (8.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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (43.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (41.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-10-29 15:02:26.015950"], ["created_at", "2019-10-29 15:02:26.016008"], ["updated_at", "2019-10-29 15:02:26.016008"]] 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\":\"707891ec-1db9-4ab0-b366-2bd0011e336c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:02:26.119Z\",\"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-10-29 15:02:26.123163"], ["created_at", "2019-10-29 15:02:26.123200"], ["updated_at", "2019-10-29 15:02:26.123200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (40.7ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 1]]  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:02:26.188420"], ["created_at", "2019-10-29 15:02:26.188467"], ["updated_at", "2019-10-29 15:02:26.188467"]] 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\":\"b6e9fa01-016a-439a-84cd-0cc6de7855ad\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:02:26.191Z\",\"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-10-29 15:02:26.193637"], ["created_at", "2019-10-29 15:02:26.193672"], ["updated_at", "2019-10-29 15:02:26.193672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:02:26.211558"], ["created_at", "2019-10-29 15:02:26.211601"], ["updated_at", "2019-10-29 15:02:26.211601"]] 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\":\"23368a00-f085-443e-97df-0d71ad70c711\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:02:26.214Z\",\"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-10-29 15:02:26.217668"], ["created_at", "2019-10-29 15:02:26.217815"], ["updated_at", "2019-10-29 15:02:26.217815"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:02:26.239302"], ["created_at", "2019-10-29 15:02:26.239345"], ["updated_at", "2019-10-29 15:02:26.239345"]] 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\":\"fbe6c41e-68ff-4e4e-b511-92cdb337496e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:02:26.242Z\",\"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-10-29 15:02:26.244357"], ["created_at", "2019-10-29 15:02:26.244411"], ["updated_at", "2019-10-29 15:02:26.244411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-29 15:02:26.262659"], ["created_at", "2019-10-29 15:02:26.262717"], ["updated_at", "2019-10-29 15:02:26.262717"]] 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\":\"1a3e86e9-4fcd-419b-a100-46c35df3b5cf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:02:26.267Z\",\"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-10-29 15:02:26.270079"], ["created_at", "2019-10-29 15:02:26.270116"], ["updated_at", "2019-10-29 15:02:26.270116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:02:26.293323"], ["created_at", "2019-10-29 15:02:26.293379"], ["updated_at", "2019-10-29 15:02:26.293379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Update All (1.3ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.6ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:02:26.741Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:02:26.744586"], ["created_at", "2019-10-29 15:02:26.744632"], ["updated_at", "2019-10-29 15:02:26.744632"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (5.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.748005', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.747327' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.747339') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.758881', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.758398' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.758416') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:02:26.773Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:02:26.775185"], ["created_at", "2019-10-29 15:02:26.775226"], ["updated_at", "2019-10-29 15:02:26.775226"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (41.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.819744', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.819370' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.819383') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.823346', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.823001' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.823014') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.9ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:02:26.830Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:02:26.832336"], ["created_at", "2019-10-29 15:02:26.832366"], ["updated_at", "2019-10-29 15:02:26.832366"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.837353', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.837026' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.837039') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.840650', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.840331' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.840343') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.849148', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.848812' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.848823') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:02:26.860271', locked_by = 'host:Nathan-Griffith-MBP13 pid:78004' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:02:26.859936' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:02:26.859949') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78004') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.401675', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.400632' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.400690') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:04:05.406Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:05.421642"], ["created_at", "2019-10-29 15:04:05.421692"], ["updated_at", "2019-10-29 15:04:05.421692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.424674', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.424333' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.424343') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.428499', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.428041' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.428053') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:04:05.439Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:05.441616"], ["created_at", "2019-10-29 15:04:05.441653"], ["updated_at", "2019-10-29 15:04:05.441653"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (2.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.444778', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.444437' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.444447') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.451747', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.451353' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.451367') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:04:05.458Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:05.460359"], ["created_at", "2019-10-29 15:04:05.460395"], ["updated_at", "2019-10-29 15:04:05.460395"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.466851', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.466316' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.466350') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.470755', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.470357' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.470370') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:05.480503', locked_by = 'host:Nathan-Griffith-MBP13 pid:78512' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:05.479310' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:05.479360') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78512') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.514489"], ["created_at", "2019-10-29 15:04:05.514705"], ["updated_at", "2019-10-29 15:04:05.514705"]] 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\":\"664e60b5-6c52-4289-8f22-eeba8db2641f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:05.520Z\",\"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-10-29 15:04:05.522737"], ["created_at", "2019-10-29 15:04:05.522773"], ["updated_at", "2019-10-29 15:04:05.522773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.541564"], ["created_at", "2019-10-29 15:04:05.541625"], ["updated_at", "2019-10-29 15:04:05.541625"]] 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\":\"b58f20bb-9794-4bd9-86ff-1e2a102a96c5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:05.544Z\",\"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-10-29 15:04:05.547890"], ["created_at", "2019-10-29 15:04:05.547960"], ["updated_at", "2019-10-29 15:04:05.547960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.571854"], ["created_at", "2019-10-29 15:04:05.571901"], ["updated_at", "2019-10-29 15:04:05.571901"]] 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\":\"2f04cbd3-f947-441f-beda-3858c69232ce\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:05.575Z\",\"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-10-29 15:04:05.577391"], ["created_at", "2019-10-29 15:04:05.577430"], ["updated_at", "2019-10-29 15:04:05.577430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.600357"], ["created_at", "2019-10-29 15:04:05.600406"], ["updated_at", "2019-10-29 15:04:05.600406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.625900"], ["created_at", "2019-10-29 15:04:05.625948"], ["updated_at", "2019-10-29 15:04:05.625948"]] 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\":\"1caa0afd-1b37-4211-b17b-eedbce546e91\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:05.629Z\",\"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-10-29 15:04:05.631348"], ["created_at", "2019-10-29 15:04:05.631388"], ["updated_at", "2019-10-29 15:04:05.631388"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:05.651961"], ["created_at", "2019-10-29 15:04:05.652012"], ["updated_at", "2019-10-29 15:04:05.652012"]] 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\":\"3abcb402-1c52-47c3-b708-4f8f99fcefdd\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:05.655Z\",\"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-10-29 15:04:05.658644"], ["created_at", "2019-10-29 15:04:05.658689"], ["updated_at", "2019-10-29 15:04:05.658689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.4ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (1.5ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.3ms) ROLLBACK  (1.4ms) BEGIN # Update All (1.0ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.7ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.8ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (3.1ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (1.0ms) ROLLBACK  (0.9ms) BEGIN  (1.1ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.9ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.8ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.7ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.325031"], ["created_at", "2019-10-29 15:04:36.325085"], ["updated_at", "2019-10-29 15:04:36.325085"]] 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\":\"9c0f500b-beca-4778-988c-531d2091e7c7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:36.328Z\",\"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-10-29 15:04:36.332099"], ["created_at", "2019-10-29 15:04:36.332134"], ["updated_at", "2019-10-29 15:04:36.332134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.350762"], ["created_at", "2019-10-29 15:04:36.350808"], ["updated_at", "2019-10-29 15:04:36.350808"]] 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\":\"a48390d7-6818-4b38-810f-0d3fec691d02\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:36.354Z\",\"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-10-29 15:04:36.356215"], ["created_at", "2019-10-29 15:04:36.356254"], ["updated_at", "2019-10-29 15:04:36.356254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 3]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.377089"], ["created_at", "2019-10-29 15:04:36.377208"], ["updated_at", "2019-10-29 15:04:36.377208"]] 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\":\"5a896459-ab30-4e20-a663-6f3d3865c5fa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:36.381Z\",\"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-10-29 15:04:36.383278"], ["created_at", "2019-10-29 15:04:36.383311"], ["updated_at", "2019-10-29 15:04:36.383311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.8ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 5]]  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.404649"], ["created_at", "2019-10-29 15:04:36.404694"], ["updated_at", "2019-10-29 15:04:36.404694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.427684"], ["created_at", "2019-10-29 15:04:36.427732"], ["updated_at", "2019-10-29 15:04:36.427732"]] 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\":\"4071c9a2-93df-439c-b519-ff3e3a219ab7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:36.430Z\",\"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-10-29 15:04:36.432763"], ["created_at", "2019-10-29 15:04:36.432798"], ["updated_at", "2019-10-29 15:04:36.432798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:04:36.452644"], ["created_at", "2019-10-29 15:04:36.452691"], ["updated_at", "2019-10-29 15:04:36.452691"]] 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\":\"735d02cc-4a2f-4e0c-b19e-75a666c77212\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:04:36.456Z\",\"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-10-29 15:04:36.476244"], ["created_at", "2019-10-29 15:04:36.476279"], ["updated_at", "2019-10-29 15:04:36.476279"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:04:36.494Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:36.497830"], ["created_at", "2019-10-29 15:04:36.497863"], ["updated_at", "2019-10-29 15:04:36.497863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.500683', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.500081' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.500092') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.504676', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.504321' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.504334') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:04:36.513Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:36.515246"], ["created_at", "2019-10-29 15:04:36.515279"], ["updated_at", "2019-10-29 15:04:36.515279"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.518507', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.518160' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.518171') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.521981', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.521581' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.521595') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:04:36.528Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:04:36.530487"], ["created_at", "2019-10-29 15:04:36.530518"], ["updated_at", "2019-10-29 15:04:36.530518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.533596', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.533246' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.533257') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.537022', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.536680' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.536692') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.545578', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.545223' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.545234') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.0ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:04:36.554308', locked_by = 'host:Nathan-Griffith-MBP13 pid:78584' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:04:36.553944' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:04:36.553957') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:78584') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.2ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (1.5ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (1.3ms) ROLLBACK  (0.9ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (22.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (92.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (163.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)  (78.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (74.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (26.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (1.5ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.9ms) 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-10-29 15:43:48.773235"], ["created_at", "2019-10-29 15:43:48.773288"], ["updated_at", "2019-10-29 15:43:48.773288"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:43:48.814782"], ["created_at", "2019-10-29 15:43:48.814831"], ["updated_at", "2019-10-29 15:43:48.814831"]] Delayed::Backend::ActiveRecord::Job Create (1.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\":\"c9efbbdd-33df-411c-aebc-97155e48ba38\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:43:48.818Z\",\"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-10-29 15:43:48.823081"], ["created_at", "2019-10-29 15:43:48.823118"], ["updated_at", "2019-10-29 15:43:48.823118"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:43:48.840371"], ["created_at", "2019-10-29 15:43:48.840417"], ["updated_at", "2019-10-29 15:43:48.840417"]] 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\":\"94ff958a-bd5b-4c03-ab39-fec317f966a3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:43:48.843Z\",\"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-10-29 15:43:48.845835"], ["created_at", "2019-10-29 15:43:48.845869"], ["updated_at", "2019-10-29 15:43:48.845869"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:43:48.870937"], ["created_at", "2019-10-29 15:43:48.870983"], ["updated_at", "2019-10-29 15:43:48.870983"]] 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\":\"19ebce7c-86fc-453e-ac15-27ba8bfa05f8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:43:48.874Z\",\"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-10-29 15:43:48.877365"], ["created_at", "2019-10-29 15:43:48.877407"], ["updated_at", "2019-10-29 15:43:48.877407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-29 15:43:48.893909"], ["created_at", "2019-10-29 15:43:48.893963"], ["updated_at", "2019-10-29 15:43:48.893963"]] 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\":\"bffeffe0-a5d6-4026-ac21-35e0d9c4409a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:43:48.898Z\",\"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-10-29 15:43:48.900488"], ["created_at", "2019-10-29 15:43:48.900522"], ["updated_at", "2019-10-29 15:43:48.900522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:43:48.918870"], ["created_at", "2019-10-29 15:43:48.918915"], ["updated_at", "2019-10-29 15:43:48.918915"]] 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\":\"c752c1e1-75c9-4b62-80a3-3689a3031fd9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:43:48.922Z\",\"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-10-29 15:43:48.924011"], ["created_at", "2019-10-29 15:43:48.924044"], ["updated_at", "2019-10-29 15:43:48.924044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (1.0ms) ROLLBACK  (0.6ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:43:49.004Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:43:49.007135"], ["created_at", "2019-10-29 15:43:49.007170"], ["updated_at", "2019-10-29 15:43:49.007170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.010205', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.009565' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.009577') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.014704', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.014359' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.014372') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:43:49.021Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:43:49.023371"], ["created_at", "2019-10-29 15:43:49.023404"], ["updated_at", "2019-10-29 15:43:49.023404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.026642', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.026216' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.026228') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.030602', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.030260' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.030272') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:43:49.034Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:43:49.036429"], ["created_at", "2019-10-29 15:43:49.036463"], ["updated_at", "2019-10-29 15:43:49.036463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.039588', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.039244' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.039255') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.043058', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.042710' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.042724') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.048946', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.048596' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.048608') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:43:49.054311', locked_by = 'host:Nathan-Griffith-MBP13 pid:81771' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:43:49.053968' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:43:49.053980') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:81771') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (48.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (9.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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (29.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.1ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (2.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (2.9ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-10-29 15:49:04.469766"], ["created_at", "2019-10-29 15:49:04.469865"], ["updated_at", "2019-10-29 15:49:04.469865"]] 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\":\"a8e5110a-c579-47bb-ac91-3968e802883d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:04.476Z\",\"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-10-29 15:49:04.481981"], ["created_at", "2019-10-29 15:49:04.482030"], ["updated_at", "2019-10-29 15:49:04.482030"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:04.505989"], ["created_at", "2019-10-29 15:49:04.506035"], ["updated_at", "2019-10-29 15:49:04.506035"]] 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\":\"c0a00117-fbde-4e2e-ae1c-93452845b03a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:04.509Z\",\"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-10-29 15:49:04.511890"], ["created_at", "2019-10-29 15:49:04.511938"], ["updated_at", "2019-10-29 15:49:04.511938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:04.540603"], ["created_at", "2019-10-29 15:49:04.540658"], ["updated_at", "2019-10-29 15:49:04.540658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.3ms) ROLLBACK  (1.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:04.572147"], ["created_at", "2019-10-29 15:49:04.572287"], ["updated_at", "2019-10-29 15:49:04.572287"]] 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\":\"72a36362-91e8-47f4-8947-f28de0f84fd3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:04.576Z\",\"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-10-29 15:49:04.578443"], ["created_at", "2019-10-29 15:49:04.578488"], ["updated_at", "2019-10-29 15:49:04.578488"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 15:49:04.607203"], ["created_at", "2019-10-29 15:49:04.607247"], ["updated_at", "2019-10-29 15:49:04.607247"]] 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\":\"f03f6411-661a-40d1-8e8f-7df74fa3abe5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:04.611Z\",\"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-10-29 15:49:04.613830"], ["created_at", "2019-10-29 15:49:04.613877"], ["updated_at", "2019-10-29 15:49:04.613877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:04.640985"], ["created_at", "2019-10-29 15:49:04.641039"], ["updated_at", "2019-10-29 15:49:04.641039"]] Delayed::Backend::ActiveRecord::Job Create (0.8ms) 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\":\"556efc98-7759-4ca4-8ab0-c010dc70bfec\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:04.644Z\",\"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-10-29 15:49:04.647313"], ["created_at", "2019-10-29 15:49:04.647354"], ["updated_at", "2019-10-29 15:49:04.647354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.9ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:49:04.817Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:04.823413"], ["created_at", "2019-10-29 15:49:04.823449"], ["updated_at", "2019-10-29 15:49:04.823449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.826104', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.825520' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.825529') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.830908', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.830130' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.830148') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:49:04.844Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:04.846870"], ["created_at", "2019-10-29 15:49:04.846913"], ["updated_at", "2019-10-29 15:49:04.846913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.850307', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.849739' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.849751') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.853921', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.853558' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.853569') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:49:04.861Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:04.862814"], ["created_at", "2019-10-29 15:49:04.862847"], ["updated_at", "2019-10-29 15:49:04.862847"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.865921', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.865561' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.865572') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.872345', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.871983' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.871995') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.880877', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.880526' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.880538') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:04.892022', locked_by = 'host:Nathan-Griffith-MBP13 pid:92202' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:04.891647' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:04.891660') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:92202') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (9.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (2.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (2.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (4.5ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (11.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)  (2.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN # Update All (0.9ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (1.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.7ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.313301"], ["created_at", "2019-10-29 15:49:44.313370"], ["updated_at", "2019-10-29 15:49:44.313370"]] 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\":\"de05e242-d2b8-469b-9153-682b1fe5ed47\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:44.346Z\",\"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-10-29 15:49:44.350056"], ["created_at", "2019-10-29 15:49:44.350093"], ["updated_at", "2019-10-29 15:49:44.350093"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.376384"], ["created_at", "2019-10-29 15:49:44.376453"], ["updated_at", "2019-10-29 15:49:44.376453"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.404028"], ["created_at", "2019-10-29 15:49:44.404088"], ["updated_at", "2019-10-29 15:49:44.404088"]] 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\":\"d7bfd666-1273-401f-9ba9-fe5ed60404f4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:44.407Z\",\"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-10-29 15:49:44.409662"], ["created_at", "2019-10-29 15:49:44.409699"], ["updated_at", "2019-10-29 15:49:44.409699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.430850"], ["created_at", "2019-10-29 15:49:44.430914"], ["updated_at", "2019-10-29 15:49:44.430914"]] 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\":\"e71851c4-975b-4746-9287-c7f571819e4b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:44.434Z\",\"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-10-29 15:49:44.436186"], ["created_at", "2019-10-29 15:49:44.436220"], ["updated_at", "2019-10-29 15:49:44.436220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.461510"], ["created_at", "2019-10-29 15:49:44.461563"], ["updated_at", "2019-10-29 15:49:44.461563"]] 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\":\"0d0fd376-79dd-4e16-8e2a-e4d8b25f7092\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:44.465Z\",\"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-10-29 15:49:44.467167"], ["created_at", "2019-10-29 15:49:44.467208"], ["updated_at", "2019-10-29 15:49:44.467208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:49:44.489313"], ["created_at", "2019-10-29 15:49:44.489359"], ["updated_at", "2019-10-29 15:49:44.489359"]] 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\":\"d94644c3-2e50-4d78-b3f3-3a8b34b76197\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:49:44.493Z\",\"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-10-29 15:49:44.495128"], ["created_at", "2019-10-29 15:49:44.495165"], ["updated_at", "2019-10-29 15:49:44.495165"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.8ms) BEGIN  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (8.2ms) ROLLBACK  (0.8ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.775700', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.775005' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.775018') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:49:44.781Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:44.784666"], ["created_at", "2019-10-29 15:49:44.784710"], ["updated_at", "2019-10-29 15:49:44.784710"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (2.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.788198', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.787217' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.787240') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.795028', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.794619' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.794634') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:49:44.804Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:44.808721"], ["created_at", "2019-10-29 15:49:44.808759"], ["updated_at", "2019-10-29 15:49:44.808759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.812126', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.811772' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.811783') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.815927', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.815521' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.815534') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:49:44.824Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:49:44.828059"], ["created_at", "2019-10-29 15:49:44.828138"], ["updated_at", "2019-10-29 15:49:44.828138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.832792', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.831885' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.831901') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.837998', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.837566' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.837581') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:49:44.847329', locked_by = 'host:Nathan-Griffith-MBP13 pid:94665' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:49:44.846864' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:49:44.846878') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:94665') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.9ms) BEGIN  (2.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (2.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (2.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (3.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (20.4ms) BEGIN  (2.0ms) ROLLBACK  (0.4ms) BEGIN  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (2.4ms) ROLLBACK  (1.4ms) BEGIN  (1.5ms) ROLLBACK  (13.9ms) BEGIN  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (9.5ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (5.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (2.4ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (14.3ms) BEGIN  (0.5ms) ROLLBACK  (2.0ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (4.6ms) ROLLBACK  (0.6ms) BEGIN  (10.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.3ms) ROLLBACK  (10.5ms) BEGIN  (1.2ms) ROLLBACK  (2.5ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.730963', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.729733' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.729759') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.1ms) 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-10-29T15:50:50.742Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:50:50.766137"], ["created_at", "2019-10-29 15:50:50.766255"], ["updated_at", "2019-10-29 15:50:50.766255"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.770898', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.770374' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.770395') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.778072', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.777536' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.777558') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (3.5ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:50:50.795Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:50:50.805093"], ["created_at", "2019-10-29 15:50:50.805168"], ["updated_at", "2019-10-29 15:50:50.805168"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.815910', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.815335' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.815355') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.825751', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.825122' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.825151') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:50:50.837Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:50:50.844777"], ["created_at", "2019-10-29 15:50:50.844838"], ["updated_at", "2019-10-29 15:50:50.844838"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.849151', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.848682' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.848702') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (12.5ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (5.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.868523', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.867838' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.867861') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:50:50.890684', locked_by = 'host:Nathan-Griffith-MBP13 pid:96992' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:50:50.889990' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:50:50.890024') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:96992') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (2.0ms) BEGIN  (1.0ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (1.6ms) ROLLBACK  (0.5ms) BEGIN  (2.7ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (0.9ms) BEGIN  (1.3ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (2.0ms) BEGIN  (0.3ms) ROLLBACK  (3.5ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.4ms) ROLLBACK  (2.0ms) BEGIN  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (6.6ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (11.7ms) ROLLBACK  (0.5ms) BEGIN  (1.4ms) ROLLBACK  (9.3ms) BEGIN  (1.6ms) ROLLBACK  (0.4ms) BEGIN  (1.9ms) ROLLBACK  (4.1ms) BEGIN  (2.0ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (4.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (1.9ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (2.9ms) ROLLBACK  (1.6ms) BEGIN  (2.7ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (1.9ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (4.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) ROLLBACK  (2.5ms) BEGIN  (0.4ms) ROLLBACK  (2.1ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.6ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (2.1ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (2.5ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (45.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (128.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)  (2.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.4ms) BEGIN  (0.3ms) COMMIT  (3.2ms) BEGIN  (0.4ms) ROLLBACK  (0.9ms) BEGIN  (1.9ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (0.4ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.441985', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.441237' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.441275') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.8ms) 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-10-29T15:51:09.449Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:09.487715"], ["created_at", "2019-10-29 15:51:09.487775"], ["updated_at", "2019-10-29 15:51:09.487775"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.494365', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.493961' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.493975') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.501565', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.500216' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.500229') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.9ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:51:09.522Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:09.529190"], ["created_at", "2019-10-29 15:51:09.529307"], ["updated_at", "2019-10-29 15:51:09.529307"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (6.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.570912', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.570412' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.570434') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.9ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (4.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (3.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (7.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.599984', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.599478' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.599499') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:51:09.646Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:09.662650"], ["created_at", "2019-10-29 15:51:09.662698"], ["updated_at", "2019-10-29 15:51:09.662698"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (19.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.672420', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.670113' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.670128') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (4.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.705836', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.705352' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.705372') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) ROLLBACK  (0.9ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:09.753448', locked_by = 'host:Nathan-Griffith-MBP13 pid:97761' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:09.753057' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:09.753072') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:97761') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (6.5ms) ROLLBACK  (7.4ms) BEGIN  (3.6ms) ROLLBACK  (2.2ms) BEGIN  (0.7ms) ROLLBACK  (1.2ms) BEGIN  (2.2ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (2.9ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.3ms) ROLLBACK  (1.1ms) BEGIN  (10.1ms) ROLLBACK  (1.8ms) BEGIN  (5.7ms) ROLLBACK  (0.8ms) BEGIN  (10.9ms) ROLLBACK  (10.2ms) BEGIN  (5.6ms) ROLLBACK  (2.8ms) BEGIN  (1.1ms) ROLLBACK  (8.6ms) BEGIN  (0.5ms) ROLLBACK  (4.8ms) BEGIN  (0.5ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (10.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (6.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 15:51:10.143539"], ["created_at", "2019-10-29 15:51:10.143585"], ["updated_at", "2019-10-29 15:51:10.143585"]] 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\":\"62d8195a-ed3d-4fa2-96ee-7a9e4b7db2e7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:10.219Z\",\"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-10-29 15:51:10.223378"], ["created_at", "2019-10-29 15:51:10.223420"], ["updated_at", "2019-10-29 15:51:10.223420"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 # 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-10-29 15:51:10.252659"], ["created_at", "2019-10-29 15:51:10.252733"], ["updated_at", "2019-10-29 15:51:10.252733"]] 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\":\"dbf8e328-da75-4b31-bff7-56a29ee1b055\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:10.256Z\",\"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-10-29 15:51:10.259693"], ["created_at", "2019-10-29 15:51:10.259731"], ["updated_at", "2019-10-29 15:51:10.259731"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 # 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-10-29 15:51:10.286177"], ["created_at", "2019-10-29 15:51:10.286258"], ["updated_at", "2019-10-29 15:51:10.286258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:51:10.322306"], ["created_at", "2019-10-29 15:51:10.322352"], ["updated_at", "2019-10-29 15:51:10.322352"]] 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\":\"4f060096-c70f-40e9-9e6b-ddaba1ecbfe9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:10.325Z\",\"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-10-29 15:51:10.328604"], ["created_at", "2019-10-29 15:51:10.328683"], ["updated_at", "2019-10-29 15:51:10.328683"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.7ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 9]]  (0.4ms) ROLLBACK  (1.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 15:51:10.361863"], ["created_at", "2019-10-29 15:51:10.361922"], ["updated_at", "2019-10-29 15:51:10.361922"]] 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\":\"217f0b74-0b57-44e2-ad50-fca9bf0f45ce\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:10.367Z\",\"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-10-29 15:51:10.370298"], ["created_at", "2019-10-29 15:51:10.370384"], ["updated_at", "2019-10-29 15:51:10.370384"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 11]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-29 15:51:10.402331"], ["created_at", "2019-10-29 15:51:10.402381"], ["updated_at", "2019-10-29 15:51:10.402381"]] Delayed::Backend::ActiveRecord::Job Create (1.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\":\"b32db6ea-5aae-4672-af88-305db9a6ecc6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:10.406Z\",\"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-10-29 15:51:10.408889"], ["created_at", "2019-10-29 15:51:10.408937"], ["updated_at", "2019-10-29 15:51:10.408937"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (2.0ms) ROLLBACK  (0.3ms) BEGIN # Destroy (4.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (1.5ms) BEGIN # Update All (33.1ms) UPDATE "delayed_jobs" SET "handler" = ''  (19.7ms) ROLLBACK  (12.7ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.3ms) ROLLBACK  (2.4ms) BEGIN # Update All (2.1ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.5ms) ROLLBACK  (4.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (1.1ms) ROLLBACK  (1.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.7ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (7.9ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (5.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (14.0ms) BEGIN  (0.4ms) ROLLBACK  (16.0ms) BEGIN  (0.4ms) ROLLBACK  (0.9ms) BEGIN  (8.6ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (1.7ms) BEGIN  (0.7ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (2.0ms) ROLLBACK  (0.6ms) BEGIN  (26.5ms) ROLLBACK  (10.7ms) BEGIN  (3.0ms) ROLLBACK  (5.6ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (49.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.7ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (2.1ms) ROLLBACK  (4.5ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.6ms) ROLLBACK  (2.4ms) BEGIN  (1.3ms) ROLLBACK  (19.7ms) BEGIN  (0.5ms) ROLLBACK  (1.5ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (1.4ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) ROLLBACK  (0.5ms) BEGIN  (2.3ms) ROLLBACK  (1.2ms) BEGIN  (3.4ms) ROLLBACK  (2.0ms) BEGIN  (2.1ms) ROLLBACK  (9.5ms) BEGIN  (0.5ms) ROLLBACK  (11.2ms) BEGIN  (0.4ms) ROLLBACK  (3.1ms) BEGIN  (1.0ms) ROLLBACK  (0.6ms) BEGIN  (49.8ms) ROLLBACK  (1.1ms) BEGIN  (8.6ms) ROLLBACK  (1.3ms) BEGIN  (2.8ms) ROLLBACK  (1.2ms) BEGIN  (1.0ms) ROLLBACK  (2.2ms) BEGIN  (5.6ms) ROLLBACK  (2.3ms) BEGIN  (0.3ms) ROLLBACK  (1.9ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (1.7ms) ROLLBACK  (1.7ms) BEGIN  (1.8ms) ROLLBACK  (1.4ms) BEGIN  (1.1ms) ROLLBACK  (146.2ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 # Create (1.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-10-29 15:51:31.600568"], ["created_at", "2019-10-29 15:51:31.600645"], ["updated_at", "2019-10-29 15:51:31.600645"]] 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\":\"8a3fc484-4fd9-4900-b314-5eca5a9d23ef\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:31.650Z\",\"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-10-29 15:51:31.657321"], ["created_at", "2019-10-29 15:51:31.657366"], ["updated_at", "2019-10-29 15:51:31.657366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:51:31.680287"], ["created_at", "2019-10-29 15:51:31.680341"], ["updated_at", "2019-10-29 15:51:31.680341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:51:31.729685"], ["created_at", "2019-10-29 15:51:31.729738"], ["updated_at", "2019-10-29 15:51:31.729738"]] 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\":\"34f329e0-eb5f-4c4b-adce-8ecc5c685fe5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:31.733Z\",\"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-10-29 15:51:31.735222"], ["created_at", "2019-10-29 15:51:31.735258"], ["updated_at", "2019-10-29 15:51:31.735258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 15:51:31.762582"], ["created_at", "2019-10-29 15:51:31.762643"], ["updated_at", "2019-10-29 15:51:31.762643"]] 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\":\"ab0598e3-d4b2-48d6-97b6-130ca5fbf7ee\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:31.766Z\",\"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-10-29 15:51:31.768092"], ["created_at", "2019-10-29 15:51:31.768125"], ["updated_at", "2019-10-29 15:51:31.768125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 # 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-10-29 15:51:31.792789"], ["created_at", "2019-10-29 15:51:31.792841"], ["updated_at", "2019-10-29 15:51:31.792841"]] Delayed::Backend::ActiveRecord::Job Create (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\":\"c03c6649-9b6e-4232-a7e3-321b816e05f6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:31.847Z\",\"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-10-29 15:51:31.864745"], ["created_at", "2019-10-29 15:51:31.864795"], ["updated_at", "2019-10-29 15:51:31.864795"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 # Update (1.1ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (1.4ms) ROLLBACK  (3.9ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-29 15:51:31.916673"], ["created_at", "2019-10-29 15:51:31.916739"], ["updated_at", "2019-10-29 15:51:31.916739"]] 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\":\"435e9662-dc8c-47a6-9408-7441138ba05c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T15:51:31.922Z\",\"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-10-29 15:51:31.924991"], ["created_at", "2019-10-29 15:51:31.925044"], ["updated_at", "2019-10-29 15:51:31.925044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.7ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN # Destroy (3.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (2.0ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (2.1ms) BEGIN  (0.4ms) ROLLBACK  (1.5ms) BEGIN  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (4.0ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (2.0ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (3.5ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (2.4ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.351519', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.350869' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.350879') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 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-10-29T15:51:32.355Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:32.356850"], ["created_at", "2019-10-29 15:51:32.356885"], ["updated_at", "2019-10-29 15:51:32.356885"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.364729', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.363088' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.363109') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.370721', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.370321' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.370333') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (2.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:51:32.384Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:32.386467"], ["created_at", "2019-10-29 15:51:32.386499"], ["updated_at", "2019-10-29 15:51:32.386499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.389636', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.389299' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.389310') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (3.0ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (3.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.400984', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.400442' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.400459') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (3.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (1.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.1ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T15:51:32.416Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 15:51:32.423135"], ["created_at", "2019-10-29 15:51:32.423180"], ["updated_at", "2019-10-29 15:51:32.423180"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (1.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.435609', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.435125' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.435146') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.440186', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.439804' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.439818') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 15:51:32.453254', locked_by = 'host:Nathan-Griffith-MBP13 pid:98543' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 15:51:32.452907' AND (locked_at IS NULL OR locked_at < '2019-10-29 11:51:32.452919') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:98543') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (1.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (46.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) BEGIN  (1.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (2.1ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (7.7ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.2ms) ROLLBACK  (19.7ms) BEGIN  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.8ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (1.5ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (1.6ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.010925', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.009826' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.009845') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-29T16:23:40.016Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:23:40.042038"], ["created_at", "2019-10-29 16:23:40.042097"], ["updated_at", "2019-10-29 16:23:40.042097"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.046643', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.046225' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.046236') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.9ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (1.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.053405', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.053022' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.053037') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.8ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:23:40.065Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:23:40.069665"], ["created_at", "2019-10-29 16:23:40.069736"], ["updated_at", "2019-10-29 16:23:40.069736"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.074109', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.073730' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.073742') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.078259', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.077882' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.077895') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (13.8ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.4ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:23:40.112Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:23:40.115936"], ["created_at", "2019-10-29 16:23:40.116002"], ["updated_at", "2019-10-29 16:23:40.116002"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.121787', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.121128' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.121175') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.126971', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.126486' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.126504') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (8.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:23:40.145618', locked_by = 'host:Nathan-Griffith-MBP13 pid:4194' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:23:40.144652' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:23:40.144747') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4194') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (1.4ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (2.3ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (1.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (2.3ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (3.0ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.302470"], ["created_at", "2019-10-29 16:23:40.302539"], ["updated_at", "2019-10-29 16:23:40.302539"]] 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\":\"f452d2b7-b034-489e-947d-fa607575c2cd\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:23:40.308Z\",\"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-10-29 16:23:40.311569"], ["created_at", "2019-10-29 16:23:40.311606"], ["updated_at", "2019-10-29 16:23:40.311606"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.343671"], ["created_at", "2019-10-29 16:23:40.343717"], ["updated_at", "2019-10-29 16:23:40.343717"]] 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\":\"92279eb3-9094-4c32-9129-e7ceee29c146\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:23:40.347Z\",\"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-10-29 16:23:40.349344"], ["created_at", "2019-10-29 16:23:40.349382"], ["updated_at", "2019-10-29 16:23:40.349382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.375304"], ["created_at", "2019-10-29 16:23:40.375350"], ["updated_at", "2019-10-29 16:23:40.375350"]] 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\":\"04cb6d32-cd83-406f-8e97-283133a2979e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:23:40.380Z\",\"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-10-29 16:23:40.381929"], ["created_at", "2019-10-29 16:23:40.381965"], ["updated_at", "2019-10-29 16:23:40.381965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.410721"], ["created_at", "2019-10-29 16:23:40.410768"], ["updated_at", "2019-10-29 16:23:40.410768"]] 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\":\"2bdb1016-f1d7-48fe-9ffe-2d9f0eca233a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:23:40.414Z\",\"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-10-29 16:23:40.416248"], ["created_at", "2019-10-29 16:23:40.416286"], ["updated_at", "2019-10-29 16:23:40.416286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.444545"], ["created_at", "2019-10-29 16:23:40.444591"], ["updated_at", "2019-10-29 16:23:40.444591"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:23:40.474335"], ["created_at", "2019-10-29 16:23:40.474399"], ["updated_at", "2019-10-29 16:23:40.474399"]] 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\":\"ceb3206b-7f30-4f5d-8229-75e36726b253\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:23:40.478Z\",\"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-10-29 16:23:40.480603"], ["created_at", "2019-10-29 16:23:40.480641"], ["updated_at", "2019-10-29 16:23:40.480641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (1.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.8ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.8ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (1.2ms) ROLLBACK  (0.4ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (2.0ms) ROLLBACK  (0.4ms) BEGIN  (1.1ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (1.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (1.3ms) ROLLBACK  (2.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (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)  (1.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (3.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (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-10-29T16:24:10.154Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:24:10.176960"], ["created_at", "2019-10-29 16:24:10.177006"], ["updated_at", "2019-10-29 16:24:10.177006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (3.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.180678', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.180069' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.180079') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.189583', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.189218' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.189232') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:24:10.198Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:24:10.203209"], ["created_at", "2019-10-29 16:24:10.203249"], ["updated_at", "2019-10-29 16:24:10.203249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.206545', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.206198' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.206210') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.210047', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.209694' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.209708') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:24:10.218Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:24:10.222257"], ["created_at", "2019-10-29 16:24:10.222307"], ["updated_at", "2019-10-29 16:24:10.222307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.225633', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.225281' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.225291') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.229053', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.228633' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.228645') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.240910', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.240567' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.240578') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:24:10.249458', locked_by = 'host:Nathan-Griffith-MBP13 pid:4523' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:24:10.248422' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:24:10.248496') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:4523') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (2.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.511062"], ["created_at", "2019-10-29 16:24:10.511110"], ["updated_at", "2019-10-29 16:24:10.511110"]] 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\":\"cdf769ed-4879-43b3-99cc-8d6888d02708\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:24:10.514Z\",\"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-10-29 16:24:10.519630"], ["created_at", "2019-10-29 16:24:10.519676"], ["updated_at", "2019-10-29 16:24:10.519676"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.542471"], ["created_at", "2019-10-29 16:24:10.542517"], ["updated_at", "2019-10-29 16:24:10.542517"]] 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\":\"f44e5a20-acf9-4727-8c85-c316e7f7f77d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:24:10.545Z\",\"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-10-29 16:24:10.547829"], ["created_at", "2019-10-29 16:24:10.547865"], ["updated_at", "2019-10-29 16:24:10.547865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.571047"], ["created_at", "2019-10-29 16:24:10.571103"], ["updated_at", "2019-10-29 16:24:10.571103"]] 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\":\"88072833-6aab-4170-b0fc-d9fd477993de\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:24:10.574Z\",\"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-10-29 16:24:10.576479"], ["created_at", "2019-10-29 16:24:10.576514"], ["updated_at", "2019-10-29 16:24:10.576514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.599316"], ["created_at", "2019-10-29 16:24:10.599395"], ["updated_at", "2019-10-29 16:24:10.599395"]] 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\":\"35e96e9c-9e1b-4233-88b6-5d4a663e739e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:24:10.606Z\",\"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-10-29 16:24:10.608446"], ["created_at", "2019-10-29 16:24:10.608486"], ["updated_at", "2019-10-29 16:24:10.608486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.635392"], ["created_at", "2019-10-29 16:24:10.635458"], ["updated_at", "2019-10-29 16:24:10.635458"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:24:10.674375"], ["created_at", "2019-10-29 16:24:10.674434"], ["updated_at", "2019-10-29 16:24:10.674434"]] 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\":\"3325fe55-3a86-45a1-b900-adf4e1fbdf0c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:24:10.678Z\",\"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-10-29 16:24:10.680607"], ["created_at", "2019-10-29 16:24:10.680651"], ["updated_at", "2019-10-29 16:24:10.680651"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (2.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.7ms) ROLLBACK  (1.0ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (1.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (5.6ms) ROLLBACK  (0.3ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (1.0ms) ROLLBACK  (1.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (25.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (40.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (3.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.608346', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.607576' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.607650') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (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\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:27:37.618Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:37.635413"], ["created_at", "2019-10-29 16:27:37.635458"], ["updated_at", "2019-10-29 16:27:37.635458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.637901', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.637591' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.637604') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.641800', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.641521' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.641537') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:27:37.652Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:37.654385"], ["created_at", "2019-10-29 16:27:37.654425"], ["updated_at", "2019-10-29 16:27:37.654425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.657163', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.656872' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.656884') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.663164', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.662390' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.662432') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:27:37.670Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:37.673114"], ["created_at", "2019-10-29 16:27:37.673153"], ["updated_at", "2019-10-29 16:27:37.673153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (2.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.676140', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.675804' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.675819') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.682408', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.682113' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.682129') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:37.690825', locked_by = 'host:Nathan-Griffith-MBP13 pid:5267' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:37.690514' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:37.690529') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5267') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.5ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (1.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (2.4ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (3.7ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (3.3ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (46.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.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)  (1.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) ROLLBACK  (1.0ms) BEGIN  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.9ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (1.8ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.9ms) BEGIN  (0.8ms) ROLLBACK  (1.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 # Create (1.1ms) 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-10-29 16:27:51.827954"], ["created_at", "2019-10-29 16:27:51.828083"], ["updated_at", "2019-10-29 16:27:51.828083"]] 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\":\"c3a598a5-40dd-407c-92f4-9e522b053ab3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:27:51.832Z\",\"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-10-29 16:27:51.836462"], ["created_at", "2019-10-29 16:27:51.836504"], ["updated_at", "2019-10-29 16:27:51.836504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:27:51.860331"], ["created_at", "2019-10-29 16:27:51.860375"], ["updated_at", "2019-10-29 16:27:51.860375"]] 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\":\"78663630-266f-498f-978d-83146a5acbd6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:27:51.863Z\",\"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-10-29 16:27:51.865778"], ["created_at", "2019-10-29 16:27:51.865821"], ["updated_at", "2019-10-29 16:27:51.865821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.9ms) 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-10-29 16:27:51.907787"], ["created_at", "2019-10-29 16:27:51.907831"], ["updated_at", "2019-10-29 16:27:51.907831"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:27:51.935631"], ["created_at", "2019-10-29 16:27:51.935680"], ["updated_at", "2019-10-29 16:27:51.935680"]] 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\":\"06b41220-8ff3-499e-b342-2fd8c896575a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:27:51.938Z\",\"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-10-29 16:27:51.940603"], ["created_at", "2019-10-29 16:27:51.940637"], ["updated_at", "2019-10-29 16:27:51.940637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:27:51.964877"], ["created_at", "2019-10-29 16:27:51.964926"], ["updated_at", "2019-10-29 16:27:51.964926"]] 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\":\"dd8abb6c-eca1-45b7-88b3-489522449189\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:27:51.968Z\",\"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-10-29 16:27:51.970235"], ["created_at", "2019-10-29 16:27:51.970270"], ["updated_at", "2019-10-29 16:27:51.970270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:27:51.993883"], ["created_at", "2019-10-29 16:27:51.993927"], ["updated_at", "2019-10-29 16:27:51.993927"]] 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\":\"79387142-d4aa-4626-aa45-e01a13912e58\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:27:51.997Z\",\"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-10-29 16:27:51.998873"], ["created_at", "2019-10-29 16:27:51.998909"], ["updated_at", "2019-10-29 16:27:51.998909"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN # Destroy (2.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (1.1ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (2.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.175794', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.173433' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.173492') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.189375', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.186548' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.186647') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 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-10-29T16:27:52.199Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:52.207194"], ["created_at", "2019-10-29 16:27:52.207238"], ["updated_at", "2019-10-29 16:27:52.207238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.209737', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.209358' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.209370') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.213875', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.213570' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.213582') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:27:52.227Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:52.229928"], ["created_at", "2019-10-29 16:27:52.229966"], ["updated_at", "2019-10-29 16:27:52.229966"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.233394', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.232887' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.232900') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.8ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.240107', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.239808' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.239819') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (1.0ms) SAVEPOINT active_record_1 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", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:27:52.249Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:27:52.254025"], ["created_at", "2019-10-29 16:27:52.254130"], ["updated_at", "2019-10-29 16:27:52.254130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.257188', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.256899' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.256909') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:27:52.260667', locked_by = 'host:Nathan-Griffith-MBP13 pid:5311' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:27:52.260339' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:27:52.260352') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5311') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (57.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (6.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)  (1.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC 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]]  (1.1ms) BEGIN # Update All (1.1ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (1.0ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (1.0ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.6ms) ROLLBACK  (1.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:28:07.802416"], ["created_at", "2019-10-29 16:28:07.802478"], ["updated_at", "2019-10-29 16:28:07.802478"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:28:07.837322"], ["created_at", "2019-10-29 16:28:07.837372"], ["updated_at", "2019-10-29 16:28:07.837372"]] 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\":\"3cb4ef8d-f1f2-426c-86f9-f6a9895ab86b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:28:07.879Z\",\"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-10-29 16:28:07.883964"], ["created_at", "2019-10-29 16:28:07.884011"], ["updated_at", "2019-10-29 16:28:07.884011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (0.7ms) 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-10-29 16:28:07.915879"], ["created_at", "2019-10-29 16:28:07.915927"], ["updated_at", "2019-10-29 16:28:07.915927"]] 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\":\"87d0c96b-d402-44b4-aa16-49aae9bff419\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:28:07.921Z\",\"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-10-29 16:28:07.926054"], ["created_at", "2019-10-29 16:28:07.926097"], ["updated_at", "2019-10-29 16:28:07.926097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:28:07.950957"], ["created_at", "2019-10-29 16:28:07.951003"], ["updated_at", "2019-10-29 16:28:07.951003"]] Delayed::Backend::ActiveRecord::Job Create (2.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\":\"d51dde95-6972-4c58-9d64-59ef73cead7a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:28:07.954Z\",\"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-10-29 16:28:07.956598"], ["created_at", "2019-10-29 16:28:07.956670"], ["updated_at", "2019-10-29 16:28:07.956670"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Update (0.9ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:28:07.993274"], ["created_at", "2019-10-29 16:28:07.993347"], ["updated_at", "2019-10-29 16:28:07.993347"]] 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\":\"1bb0942c-c16c-499c-989a-da3a5724a982\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:28:07.997Z\",\"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-10-29 16:28:07.999402"], ["created_at", "2019-10-29 16:28:07.999438"], ["updated_at", "2019-10-29 16:28:07.999438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # 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-10-29 16:28:08.027138"], ["created_at", "2019-10-29 16:28:08.027208"], ["updated_at", "2019-10-29 16:28:08.027208"]] 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\":\"a54d1245-dddf-468c-86a2-f0ce8f33b8bb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-10-29T16:28:08.030Z\",\"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-10-29 16:28:08.032594"], ["created_at", "2019-10-29 16:28:08.032626"], ["updated_at", "2019-10-29 16:28:08.032626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 10]]  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (1.3ms) ROLLBACK  (0.9ms) BEGIN  (1.0ms) ROLLBACK  (0.8ms) BEGIN  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (6.3ms) ROLLBACK  (0.3ms) BEGIN  (7.8ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (1.5ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.3ms) ROLLBACK  (1.1ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.8ms) BEGIN  (1.3ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.2ms) BEGIN  (2.0ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.453747', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.452804' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.452883') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (6.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (7.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.483648', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.482597' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.482611') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (2.2ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (1.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-10-29T16:28:08.582Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:28:08.584214"], ["created_at", "2019-10-29 16:28:08.584264"], ["updated_at", "2019-10-29 16:28:08.584264"]]  (4.7ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (7.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.594672', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.593655' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.593682') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (3.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (5.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.614836', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.614150' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.614199') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.7ms) ROLLBACK  (1.2ms) BEGIN  (2.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]]  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (2.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 13], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:28:08.647Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:28:08.650945"], ["created_at", "2019-10-29 16:28:08.651003"], ["updated_at", "2019-10-29 16:28:08.651003"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 13]] Delayed::Backend::ActiveRecord::Job Load (2.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.658503', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.657752' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.657775') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.664346', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.663986' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.663998') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (1.5ms) BEGIN  (5.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]]  (0.3ms) SAVEPOINT active_record_1 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", 999], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-10-29T16:28:08.678Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-10-29 16:28:08.683053"], ["created_at", "2019-10-29 16:28:08.683090"], ["updated_at", "2019-10-29 16:28:08.683090"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 999]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.687143', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.686771' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.686787') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (3.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-29 16:28:08.695328', locked_by = 'host:Nathan-Griffith-MBP13 pid:5321' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-29 16:28:08.694566' AND (locked_at IS NULL OR locked_at < '2019-10-29 12:28:08.694589') OR locked_by = 'host:Nathan-Griffith-MBP13 pid:5321') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (23.9ms) ROLLBACK  (0.2ms) BEGIN  (1.6ms) ROLLBACK  (0.8ms) BEGIN  (1.8ms) ROLLBACK  (4.7ms) BEGIN  (22.6ms) ROLLBACK  (2.5ms) BEGIN  (5.7ms) ROLLBACK  (0.7ms) BEGIN  (1.0ms) ROLLBACK  (2.7ms) BEGIN  (4.8ms) ROLLBACK  (0.5ms) BEGIN  (3.8ms) ROLLBACK  (0.5ms) BEGIN  (12.8ms) ROLLBACK  (0.3ms) BEGIN  (4.8ms) ROLLBACK  (0.2ms) BEGIN  (3.4ms) ROLLBACK  (0.5ms) BEGIN  (7.2ms) ROLLBACK  (0.7ms) BEGIN  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (5.8ms) ROLLBACK  (1.6ms) BEGIN  (5.6ms) ROLLBACK  (0.2ms) BEGIN  (2.2ms) ROLLBACK  (1.8ms) BEGIN  (1.1ms) ROLLBACK  (1.4ms) BEGIN  (1.9ms) ROLLBACK  (2.3ms) BEGIN  (29.2ms) ROLLBACK  (6.4ms) BEGIN  (2.3ms) ROLLBACK  (2.8ms) BEGIN  (2.5ms) ROLLBACK  (80.8ms) BEGIN  (37.3ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (4.7ms) BEGIN  (1.3ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (11.1ms) BEGIN  (0.7ms) ROLLBACK  (2.1ms) BEGIN  (11.9ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK  (17.4ms) BEGIN  (10.2ms) ROLLBACK  (8.6ms) BEGIN  (3.4ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (1.9ms) BEGIN  (1.1ms) ROLLBACK  (1.0ms) BEGIN  (1.6ms) ROLLBACK  (2.5ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (4.3ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (5.6ms) ROLLBACK  (18.9ms) BEGIN  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (1.4ms) ROLLBACK  (4.6ms) BEGIN  (0.4ms) ROLLBACK  (1.5ms) BEGIN  (1.5ms) ROLLBACK  (1.6ms) BEGIN  (1.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (4.5ms) ROLLBACK