(0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.9ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) 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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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  (3.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.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.4ms) 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.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (3.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) 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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.6ms) 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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.7ms) 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.1ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) 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.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (12.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.5ms) 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 (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.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (42.3ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) 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.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.823077', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.822608' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.822619') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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-05-28 16:44:01.829952', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.829644' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.829653') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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.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-05-28T16:44:01.833Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:44:01.847780"], ["created_at", "2019-05-28 16:44:01.847849"], ["updated_at", "2019-05-28 16:44:01.847849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.850541', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.850248' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.850255') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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-05-28 16:44:01.853635', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.853403' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.853410') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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", 20]]  (0.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-05-28T16:44:01.858Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:44:01.860992"], ["created_at", "2019-05-28 16:44:01.861028"], ["updated_at", "2019-05-28 16:44:01.861028"]]  (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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.863697', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.863421' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.863430') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.866918', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.866690' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.866699') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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]]  (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-05-28T16:44:01.870Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:44:01.872243"], ["created_at", "2019-05-28 16:44:01.872269"], ["updated_at", "2019-05-28 16:44:01.872269"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.874340', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.874127' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.874133') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:44:01.876837', locked_by = 'host:Corey-Alexander-MBP15 pid:76589' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:44:01.876634' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:44:01.876640') OR locked_by = 'host:Corey-Alexander-MBP15 pid:76589') 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) 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.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (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.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.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.1ms) 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-05-28 16:44:01.936557"], ["created_at", "2019-05-28 16:44:01.936598"], ["updated_at", "2019-05-28 16:44:01.936598"]] 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\":\"ee7250c5-3946-45ed-8a4f-34c3e2403165\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:44:01.939Z\",\"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-05-28 16:44:01.941210"], ["created_at", "2019-05-28 16:44:01.941235"], ["updated_at", "2019-05-28 16:44:01.941235"]]  (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.1ms) 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-05-28 16:44:01.957433"], ["created_at", "2019-05-28 16:44:01.957473"], ["updated_at", "2019-05-28 16:44:01.957473"]] 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\":\"af56fd25-de21-4da4-9e6a-6e0be2dffe14\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:44:01.959Z\",\"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-05-28 16:44:01.961671"], ["created_at", "2019-05-28 16:44:01.961714"], ["updated_at", "2019-05-28 16:44:01.961714"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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.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-05-28 16:44:01.979657"], ["created_at", "2019-05-28 16:44:01.979695"], ["updated_at", "2019-05-28 16:44:01.979695"]] 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\":\"e5ec3edb-1c25-44d4-9ac1-45f708f5dac7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:44:01.982Z\",\"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-05-28 16:44:01.984280"], ["created_at", "2019-05-28 16:44:01.984308"], ["updated_at", "2019-05-28 16:44:01.984308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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-05-28 16:44:01.997046"], ["created_at", "2019-05-28 16:44:01.997076"], ["updated_at", "2019-05-28 16:44:01.997076"]] 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\":\"baea024d-a598-47e9-a470-7ac38bcc4532\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:44:01.999Z\",\"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-05-28 16:44:02.001960"], ["created_at", "2019-05-28 16:44:02.001993"], ["updated_at", "2019-05-28 16:44:02.001993"]]  (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.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-05-28 16:44:02.017114"], ["created_at", "2019-05-28 16:44:02.017147"], ["updated_at", "2019-05-28 16:44:02.017147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-28 16:44:02.034418"], ["created_at", "2019-05-28 16:44:02.034472"], ["updated_at", "2019-05-28 16:44:02.034472"]] 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\":\"021d9318-de19-4f3c-9324-193725f7bfac\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:44:02.036Z\",\"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-05-28 16:44:02.038417"], ["created_at", "2019-05-28 16:44:02.038453"], ["updated_at", "2019-05-28 16:44:02.038453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.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.1ms) 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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) 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.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) 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.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) 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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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"  (4.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) 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"  (2.7ms) 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.2ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.5ms) 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"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.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.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.2ms) COMMIT  (0.2ms) 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-05-28 16:48:07.169304', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.168475' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.168519') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.175294', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.175074' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.175082') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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.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-05-28T16:48:07.177Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:48:07.188995"], ["created_at", "2019-05-28 16:48:07.189037"], ["updated_at", "2019-05-28 16:48:07.189037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.192541', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.192174' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.192189') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.195643', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.195434' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.195442') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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) 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.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-05-28T16:48:07.200Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:48:07.202529"], ["created_at", "2019-05-28 16:48:07.202554"], ["updated_at", "2019-05-28 16:48:07.202554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-28 16:48:07.204548', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.204339' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.204346') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.207148', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.206943' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.206950') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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) 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-05-28T16:48:07.210Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:48:07.211847"], ["created_at", "2019-05-28 16:48:07.211871"], ["updated_at", "2019-05-28 16:48:07.211871"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.214083', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.213839' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.213845') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:48:07.216692', locked_by = 'host:Corey-Alexander-MBP15 pid:83013' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:48:07.216463' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:48:07.216470') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83013') 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.1ms) 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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (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-05-28 16:48:07.413409"], ["created_at", "2019-05-28 16:48:07.413447"], ["updated_at", "2019-05-28 16:48:07.413447"]] 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\":\"3aafa98a-e908-4d30-b16c-880de24e1a1a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:48:07.416Z\",\"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-05-28 16:48:07.418424"], ["created_at", "2019-05-28 16:48:07.418451"], ["updated_at", "2019-05-28 16:48:07.418451"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (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-05-28 16:48:07.433355"], ["created_at", "2019-05-28 16:48:07.433387"], ["updated_at", "2019-05-28 16:48:07.433387"]] 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\":\"e3a4ec9b-75e4-44b8-8ebf-7d739076b7cf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:48:07.435Z\",\"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-05-28 16:48:07.436879"], ["created_at", "2019-05-28 16:48:07.436902"], ["updated_at", "2019-05-28 16:48:07.436902"]]  (0.2ms) 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-05-28 16:48:07.450094"], ["created_at", "2019-05-28 16:48:07.450125"], ["updated_at", "2019-05-28 16:48:07.450125"]] 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\":\"543277b8-9576-408e-9ae0-57c4e94f1224\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:48:07.452Z\",\"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-05-28 16:48:07.453724"], ["created_at", "2019-05-28 16:48:07.453767"], ["updated_at", "2019-05-28 16:48:07.453767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 8]]  (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-05-28 16:48:07.468479"], ["created_at", "2019-05-28 16:48:07.468510"], ["updated_at", "2019-05-28 16:48:07.468510"]] 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\":\"ea1270f6-2695-40bf-bae6-0931273bd402\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:48:07.470Z\",\"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-05-28 16:48:07.472141"], ["created_at", "2019-05-28 16:48:07.472164"], ["updated_at", "2019-05-28 16:48:07.472164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.1ms) 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-05-28 16:48:07.488626"], ["created_at", "2019-05-28 16:48:07.488676"], ["updated_at", "2019-05-28 16:48:07.488676"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-28 16:48:07.505178"], ["created_at", "2019-05-28 16:48:07.505256"], ["updated_at", "2019-05-28 16:48:07.505256"]] 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\":\"7b0e127f-5f3f-4ab1-bc8c-34e3e18e8c26\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:48:07.507Z\",\"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-05-28 16:48:07.509435"], ["created_at", "2019-05-28 16:48:07.509459"], ["updated_at", "2019-05-28 16:48:07.509459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.2ms) 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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.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.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.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.1ms) 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.4ms) 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.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.1ms) 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.3ms) ROLLBACK  (0.1ms) 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.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.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) 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-05-28 16:49:18.155313"], ["created_at", "2019-05-28 16:49:18.155352"], ["updated_at", "2019-05-28 16:49:18.155352"]] 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\":\"335a48ec-6d5a-4d51-8402-34c66e849482\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:49:18.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-05-28 16:49:18.161818"], ["created_at", "2019-05-28 16:49:18.161854"], ["updated_at", "2019-05-28 16:49:18.161854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-28 16:49:18.176846"], ["created_at", "2019-05-28 16:49:18.176881"], ["updated_at", "2019-05-28 16:49:18.176881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-28 16:49:18.191603"], ["created_at", "2019-05-28 16:49:18.191650"], ["updated_at", "2019-05-28 16:49:18.191650"]] 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\":\"0f6cdc39-42b9-42ac-abde-f62a484cb773\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:49:18.193Z\",\"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-05-28 16:49:18.195752"], ["created_at", "2019-05-28 16:49:18.195788"], ["updated_at", "2019-05-28 16:49:18.195788"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-28 16:49:18.210245"], ["created_at", "2019-05-28 16:49:18.210277"], ["updated_at", "2019-05-28 16:49:18.210277"]] 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\":\"82cc3fe8-5421-4d5e-aeb4-779077909017\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:49:18.213Z\",\"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-05-28 16:49:18.215111"], ["created_at", "2019-05-28 16:49:18.215139"], ["updated_at", "2019-05-28 16:49:18.215139"]]  (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.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-05-28 16:49:18.312301"], ["created_at", "2019-05-28 16:49:18.312361"], ["updated_at", "2019-05-28 16:49:18.312361"]] 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\":\"132d80e9-400f-49ac-97fc-766c530002e9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:49:18.323Z\",\"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-05-28 16:49:18.326864"], ["created_at", "2019-05-28 16:49:18.326899"], ["updated_at", "2019-05-28 16:49:18.326899"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["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-05-28 16:49:18.364130"], ["created_at", "2019-05-28 16:49:18.364169"], ["updated_at", "2019-05-28 16:49:18.364169"]] 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\":\"43ef4ab4-4d26-489f-8f9b-97eb2dd86ef7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:49:18.366Z\",\"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-05-28 16:49:18.368813"], ["created_at", "2019-05-28 16:49:18.368846"], ["updated_at", "2019-05-28 16:49:18.368846"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:49:18.376976', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.376256' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.376268') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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 (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:49:18.385617', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.385194' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.385206') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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.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-05-28T16:49:18.417Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:49:18.419350"], ["created_at", "2019-05-28 16:49:18.419384"], ["updated_at", "2019-05-28 16:49:18.419384"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:49:18.421962', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.421601' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.421611') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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-05-28 16:49:18.426273', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.426005' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.426014') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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.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-05-28T16:49:18.429Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:49:18.431877"], ["created_at", "2019-05-28 16:49:18.431910"], ["updated_at", "2019-05-28 16:49:18.431910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:49:18.433609', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.433368' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.433374') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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-05-28 16:49:18.436390', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.436182' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.436189') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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) 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-05-28T16:49:18.439Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:49:18.441474"], ["created_at", "2019-05-28 16:49:18.441499"], ["updated_at", "2019-05-28 16:49:18.441499"]]  (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-05-28 16:49:18.443911', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.443616' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.443625') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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-05-28 16:49:18.446792', locked_by = 'host:Corey-Alexander-MBP15 pid:84413' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:49:18.446543' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:49:18.446551') OR locked_by = 'host:Corey-Alexander-MBP15 pid:84413') 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.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.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.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) 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.2ms) COMMIT  (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  (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 # 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 # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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-05-28 16:50:53.971657"], ["created_at", "2019-05-28 16:50:53.971702"], ["updated_at", "2019-05-28 16:50:53.971702"]] 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\":\"661f51b7-6a92-4c5b-bb8b-92df17f51e54\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:50:54.082Z\",\"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-05-28 16:50:54.085196"], ["created_at", "2019-05-28 16:50:54.085231"], ["updated_at", "2019-05-28 16:50:54.085231"]]  (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-05-28 16:50:54.098781"], ["created_at", "2019-05-28 16:50:54.098817"], ["updated_at", "2019-05-28 16:50:54.098817"]] 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\":\"15d48d7d-d94b-48bc-b4c3-c17526d1082d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:50:54.100Z\",\"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-05-28 16:50:54.102501"], ["created_at", "2019-05-28 16:50:54.102536"], ["updated_at", "2019-05-28 16:50:54.102536"]]  (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.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-05-28 16:50:54.118538"], ["created_at", "2019-05-28 16:50:54.118577"], ["updated_at", "2019-05-28 16:50:54.118577"]] 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\":\"5119991e-fc8f-4bde-b207-09dc2f333e6d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:50:54.120Z\",\"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-05-28 16:50:54.122345"], ["created_at", "2019-05-28 16:50:54.122371"], ["updated_at", "2019-05-28 16:50:54.122371"]]  (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  (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-05-28 16:50:54.138541"], ["created_at", "2019-05-28 16:50:54.138584"], ["updated_at", "2019-05-28 16:50:54.138584"]] 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\":\"37b05d14-2b23-401f-843b-fad7f5d610c1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:50:54.141Z\",\"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-05-28 16:50:54.143191"], ["created_at", "2019-05-28 16:50:54.143217"], ["updated_at", "2019-05-28 16:50:54.143217"]]  (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-05-28 16:50:54.158090"], ["created_at", "2019-05-28 16:50:54.158133"], ["updated_at", "2019-05-28 16:50:54.158133"]] 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\":\"778f44e0-4f15-4e47-b860-a10ac9000209\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T16:50:54.160Z\",\"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-05-28 16:50:54.162083"], ["created_at", "2019-05-28 16:50:54.162104"], ["updated_at", "2019-05-28 16:50:54.162104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (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-05-28 16:50:54.177710"], ["created_at", "2019-05-28 16:50:54.177761"], ["updated_at", "2019-05-28 16:50:54.177761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK  (0.1ms) 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-05-28 16:50:54.185354', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.184800' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.184813') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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.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-05-28T16:50:54.191Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:50:54.194378"], ["created_at", "2019-05-28 16:50:54.194420"], ["updated_at", "2019-05-28 16:50:54.194420"]]  (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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:50:54.197056', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.196777' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.196784') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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-05-28 16:50:54.200501', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.200262' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.200271') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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-05-28T16:50:54.203Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:50:54.205649"], ["created_at", "2019-05-28 16:50:54.205683"], ["updated_at", "2019-05-28 16:50:54.205683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:50:54.207578', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.207273' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.207280') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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.2ms) 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-05-28 16:50:54.210480', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.210287' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.210293') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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.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-05-28T16:50:54.213Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 16:50:54.215533"], ["created_at", "2019-05-28 16:50:54.215559"], ["updated_at", "2019-05-28 16:50:54.215559"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:50:54.217666', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.217442' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.217449') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 16:50:54.220352', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.220123' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.220131') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.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-05-28 16:50:54.225139', locked_by = 'host:Corey-Alexander-MBP15 pid:85491' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 16:50:54.224924' AND (locked_at IS NULL OR locked_at < '2019-05-28 12:50:54.224930') OR locked_by = 'host:Corey-Alexander-MBP15 pid:85491') 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.1ms) 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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.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.1ms) 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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.1ms) 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.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.3ms) 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.1ms) 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.4ms) 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.4ms) 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.2ms) ROLLBACK  (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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.2ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:30:43.524813', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.524175' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.524189') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:30:43.531459', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.531195' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.531204') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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.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-05-28T17:30:43.534Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:30:43.546842"], ["created_at", "2019-05-28 17:30:43.546878"], ["updated_at", "2019-05-28 17:30:43.546878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:30:43.548941', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.548636' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.548642') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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-05-28 17:30:43.551979', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.551769' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.551775') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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", 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-05-28T17:30:43.558Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:30:43.561187"], ["created_at", "2019-05-28 17:30:43.561219"], ["updated_at", "2019-05-28 17:30:43.561219"]]  (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-05-28 17:30:43.563732', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.563488' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.563494') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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.2ms) 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-05-28 17:30:43.566425', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.566229' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.566235') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') 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) 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-05-28T17:30:43.569Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:30:43.571819"], ["created_at", "2019-05-28 17:30:43.571846"], ["updated_at", "2019-05-28 17:30:43.571846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-28 17:30:43.573849', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.573634' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.573640') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:30:43.576260', locked_by = 'host:Corey-Alexander-MBP15 pid:95403' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:30:43.576072' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:30:43.576079') OR locked_by = 'host:Corey-Alexander-MBP15 pid:95403') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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) 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-05-28 17:30:43.627493"], ["created_at", "2019-05-28 17:30:43.627530"], ["updated_at", "2019-05-28 17:30:43.627530"]] 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\":\"80c02ee3-56c0-4e91-81a3-1a4605bb66d6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:30:43.629Z\",\"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-05-28 17:30:43.633237"], ["created_at", "2019-05-28 17:30:43.633277"], ["updated_at", "2019-05-28 17:30:43.633277"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (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-05-28 17:30:43.650076"], ["created_at", "2019-05-28 17:30:43.650112"], ["updated_at", "2019-05-28 17:30:43.650112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (0.1ms) 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-05-28 17:30:43.666815"], ["created_at", "2019-05-28 17:30:43.666854"], ["updated_at", "2019-05-28 17:30:43.666854"]] 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\":\"cbdffa85-84af-4110-b9dc-a05c3d5f4886\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:30:43.669Z\",\"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-05-28 17:30:43.671279"], ["created_at", "2019-05-28 17:30:43.671303"], ["updated_at", "2019-05-28 17:30:43.671303"]]  (0.3ms) 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-05-28 17:30:43.704169"], ["created_at", "2019-05-28 17:30:43.704205"], ["updated_at", "2019-05-28 17:30:43.704205"]] 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\":\"3acb2e77-6450-470b-b97a-c9883ae41be3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:30:43.706Z\",\"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-05-28 17:30:43.707740"], ["created_at", "2019-05-28 17:30:43.707761"], ["updated_at", "2019-05-28 17:30:43.707761"]]  (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.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-05-28 17:30:43.723798"], ["created_at", "2019-05-28 17:30:43.723856"], ["updated_at", "2019-05-28 17:30:43.723856"]] 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\":\"c77716c5-fb33-4055-a668-64abb3636565\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:30:43.727Z\",\"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-05-28 17:30:43.728940"], ["created_at", "2019-05-28 17:30:43.728991"], ["updated_at", "2019-05-28 17:30:43.728991"]]  (0.2ms) 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-05-28 17:30:43.742830"], ["created_at", "2019-05-28 17:30:43.742867"], ["updated_at", "2019-05-28 17:30:43.742867"]] 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\":\"c555f2b6-9aef-4686-91f4-af3f50dabfd5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:30:43.745Z\",\"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-05-28 17:30:43.746870"], ["created_at", "2019-05-28 17:30:43.746902"], ["updated_at", "2019-05-28 17:30:43.746902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (64.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (164.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)  (239.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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-05-28 17:33:16.952275"], ["created_at", "2019-05-28 17:33:16.952315"], ["updated_at", "2019-05-28 17:33:16.952315"]] 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\":\"9269131e-184e-4a92-b616-4025a758c41a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:16.956Z\",\"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-05-28 17:33:16.959380"], ["created_at", "2019-05-28 17:33:16.959405"], ["updated_at", "2019-05-28 17:33:16.959405"]]  (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.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-05-28 17:33:16.974580"], ["created_at", "2019-05-28 17:33:16.974618"], ["updated_at", "2019-05-28 17:33:16.974618"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-28 17:33:16.998260"], ["created_at", "2019-05-28 17:33:16.998292"], ["updated_at", "2019-05-28 17:33:16.998292"]] 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\":\"68f3facd-dd13-4448-b1ea-9ffdf98b1a04\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:17.000Z\",\"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-05-28 17:33:17.002036"], ["created_at", "2019-05-28 17:33:17.002059"], ["updated_at", "2019-05-28 17:33:17.002059"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-28 17:33:17.017195"], ["created_at", "2019-05-28 17:33:17.017234"], ["updated_at", "2019-05-28 17:33:17.017234"]] 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\":\"e3fc11ef-4dc1-411e-863c-8659655e03a3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:17.021Z\",\"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-05-28 17:33:17.023060"], ["created_at", "2019-05-28 17:33:17.023090"], ["updated_at", "2019-05-28 17:33:17.023090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-28 17:33:17.039078"], ["created_at", "2019-05-28 17:33:17.039146"], ["updated_at", "2019-05-28 17:33:17.039146"]] 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\":\"8e7271d8-d344-466b-a825-efc9476be99d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:17.042Z\",\"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-05-28 17:33:17.044436"], ["created_at", "2019-05-28 17:33:17.044464"], ["updated_at", "2019-05-28 17:33:17.044464"]]  (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.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-05-28 17:33:17.060451"], ["created_at", "2019-05-28 17:33:17.060490"], ["updated_at", "2019-05-28 17:33:17.060490"]] 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\":\"2c449a96-a59b-4c3c-8818-64e2f200b56c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:17.063Z\",\"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-05-28 17:33:17.064807"], ["created_at", "2019-05-28 17:33:17.064829"], ["updated_at", "2019-05-28 17:33:17.064829"]]  (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.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (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 "handler" = ''  (0.3ms) ROLLBACK  (0.3ms) 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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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-05-28 17:33:17.154651', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.154090' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.154100') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:17.160680', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.160460' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.160466') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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" ("priority", "handler", "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-05-28T17:33:17.163Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:17.165920"], ["created_at", "2019-05-28 17:33:17.165963"], ["updated_at", "2019-05-28 17:33:17.165963"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:17.168611', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.168222' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.168236') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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-05-28 17:33:17.172409', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.172151' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.172159') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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", 20]]  (0.2ms) 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-05-28T17:33:17.179Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:17.181771"], ["created_at", "2019-05-28 17:33:17.181801"], ["updated_at", "2019-05-28 17:33:17.181801"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:17.185795', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.185364' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.185379') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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-05-28 17:33:17.190749', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.190429' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.190441') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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]]  (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-05-28T17:33:17.195Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:17.197374"], ["created_at", "2019-05-28 17:33:17.197400"], ["updated_at", "2019-05-28 17:33:17.197400"]]  (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-05-28 17:33:17.199631', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.199413' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.199419') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:17.202148', locked_by = 'host:Corey-Alexander-MBP15 pid:99158' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:17.201933' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:17.201941') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99158') 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) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.6ms) 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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.3ms) 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.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.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.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.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.1ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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-05-28 17:33:34.095879"], ["created_at", "2019-05-28 17:33:34.095925"], ["updated_at", "2019-05-28 17:33:34.095925"]] 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\":\"d16c1062-9e17-47e9-b6a1-73744159006a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:34.208Z\",\"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-05-28 17:33:34.211420"], ["created_at", "2019-05-28 17:33:34.211457"], ["updated_at", "2019-05-28 17:33:34.211457"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 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-05-28 17:33:34.230282"], ["created_at", "2019-05-28 17:33:34.230333"], ["updated_at", "2019-05-28 17:33:34.230333"]] 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\":\"34d95c62-cf95-458a-a77a-e7eb7826832c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:34.233Z\",\"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-05-28 17:33:34.235832"], ["created_at", "2019-05-28 17:33:34.235861"], ["updated_at", "2019-05-28 17:33:34.235861"]]  (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-05-28 17:33:34.252160"], ["created_at", "2019-05-28 17:33:34.252203"], ["updated_at", "2019-05-28 17:33:34.252203"]]  (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.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-05-28 17:33:34.270355"], ["created_at", "2019-05-28 17:33:34.270393"], ["updated_at", "2019-05-28 17:33:34.270393"]] 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\":\"0a0a7de8-8a31-428b-b58f-63df31754c08\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:34.272Z\",\"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-05-28 17:33:34.274459"], ["created_at", "2019-05-28 17:33:34.274483"], ["updated_at", "2019-05-28 17:33:34.274483"]]  (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.1ms) 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-05-28 17:33:34.290426"], ["created_at", "2019-05-28 17:33:34.290459"], ["updated_at", "2019-05-28 17:33:34.290459"]] 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\":\"6147c142-a3f9-4dba-b06a-6a355adb71a8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:34.292Z\",\"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-05-28 17:33:34.293929"], ["created_at", "2019-05-28 17:33:34.293951"], ["updated_at", "2019-05-28 17:33:34.293951"]]  (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-05-28 17:33:34.308094"], ["created_at", "2019-05-28 17:33:34.308133"], ["updated_at", "2019-05-28 17:33:34.308133"]] 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\":\"2eee975c-eca9-41c3-a3c0-8e598156a9d5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:33:34.310Z\",\"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-05-28 17:33:34.312024"], ["created_at", "2019-05-28 17:33:34.312049"], ["updated_at", "2019-05-28 17:33:34.312049"]]  (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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.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.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-05-28T17:33:34.425Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:34.427824"], ["created_at", "2019-05-28 17:33:34.427858"], ["updated_at", "2019-05-28 17:33:34.427858"]]  (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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.430931', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.430329' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.430344') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.435853', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.435542' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.435554') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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.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-05-28T17:33:34.438Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:34.440713"], ["created_at", "2019-05-28 17:33:34.440744"], ["updated_at", "2019-05-28 17:33:34.440744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.442554', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.442265' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.442271') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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-05-28 17:33:34.445427', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.445165' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.445174') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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) 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-05-28T17:33:34.448Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:33:34.451028"], ["created_at", "2019-05-28 17:33:34.451056"], ["updated_at", "2019-05-28 17:33:34.451056"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.453207', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.452993' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.453000') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.455725', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.455507' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.455515') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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 (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.485430', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.485146' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.485158') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:33:34.489631', locked_by = 'host:Corey-Alexander-MBP15 pid:99401' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:33:34.489421' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:33:34.489430') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99401') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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.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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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  (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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) 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-05-28 17:34:21.783962"], ["created_at", "2019-05-28 17:34:21.784017"], ["updated_at", "2019-05-28 17:34:21.784017"]] 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\":\"cc3d988c-8031-484c-8c75-50666bb1b1ce\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:34:21.903Z\",\"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-05-28 17:34:21.906483"], ["created_at", "2019-05-28 17:34:21.906525"], ["updated_at", "2019-05-28 17:34:21.906525"]]  (0.2ms) 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-05-28 17:34:21.921097"], ["created_at", "2019-05-28 17:34:21.921141"], ["updated_at", "2019-05-28 17:34:21.921141"]] 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\":\"08c888f0-3289-410b-b206-a5102c0de2ff\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:34:21.924Z\",\"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-05-28 17:34:21.925832"], ["created_at", "2019-05-28 17:34:21.925858"], ["updated_at", "2019-05-28 17:34:21.925858"]]  (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.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-05-28 17:34:21.942539"], ["created_at", "2019-05-28 17:34:21.942572"], ["updated_at", "2019-05-28 17:34:21.942572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-28 17:34:21.959844"], ["created_at", "2019-05-28 17:34:21.959881"], ["updated_at", "2019-05-28 17:34:21.959881"]] 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\":\"ecfcf615-a5e2-4740-875d-f6a959af1ffc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:34:21.962Z\",\"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-05-28 17:34:21.964274"], ["created_at", "2019-05-28 17:34:21.964304"], ["updated_at", "2019-05-28 17:34:21.964304"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-28 17:34:21.977766"], ["created_at", "2019-05-28 17:34:21.977804"], ["updated_at", "2019-05-28 17:34:21.977804"]] 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\":\"9fb24949-3b70-4b6d-bb54-807599c7c87c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:34:21.979Z\",\"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-05-28 17:34:21.981457"], ["created_at", "2019-05-28 17:34:21.981484"], ["updated_at", "2019-05-28 17:34:21.981484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["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-05-28 17:34:21.998251"], ["created_at", "2019-05-28 17:34:21.998289"], ["updated_at", "2019-05-28 17:34:21.998289"]] 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\":\"cf6df088-b29e-4617-84a4-0128f4c7802b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:34:22.001Z\",\"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-05-28 17:34:22.003221"], ["created_at", "2019-05-28 17:34:22.003249"], ["updated_at", "2019-05-28 17:34:22.003249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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.2ms) 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.1ms) 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-05-28 17:34:22.026744', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.026230' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.026241') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:34:22.032454', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.032229' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.032235') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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.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-05-28T17:34:22.035Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:34:22.037212"], ["created_at", "2019-05-28 17:34:22.037239"], ["updated_at", "2019-05-28 17:34:22.037239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:34:22.038835', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.038629' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.038634') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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-05-28 17:34:22.041891', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.041653' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.041661') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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", 20]]  (0.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-05-28T17:34:22.046Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:34:22.049167"], ["created_at", "2019-05-28 17:34:22.049205"], ["updated_at", "2019-05-28 17:34:22.049205"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:34:22.052137', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.051855' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.051864') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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-05-28 17:34:22.055180', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.054966' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.054972') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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) 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-05-28T17:34:22.058Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:34:22.060549"], ["created_at", "2019-05-28 17:34:22.060584"], ["updated_at", "2019-05-28 17:34:22.060584"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:34:22.062625', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.062418' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.062423') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:34:22.065303', locked_by = 'host:Corey-Alexander-MBP15 pid:383' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:34:22.065081' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:34:22.065089') OR locked_by = 'host:Corey-Alexander-MBP15 pid:383') 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) 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.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.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.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.2ms) 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.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.3ms) 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.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.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.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.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.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.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.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-05-28 17:37:57.493666"], ["created_at", "2019-05-28 17:37:57.493707"], ["updated_at", "2019-05-28 17:37:57.493707"]] 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\":\"a8da6ff2-f062-4c82-84db-4961b77eaf78\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:37:57.497Z\",\"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-05-28 17:37:57.500725"], ["created_at", "2019-05-28 17:37:57.500761"], ["updated_at", "2019-05-28 17:37:57.500761"]]  (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-05-28 17:37:57.514133"], ["created_at", "2019-05-28 17:37:57.514164"], ["updated_at", "2019-05-28 17:37:57.514164"]]  (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.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-05-28 17:37:57.531191"], ["created_at", "2019-05-28 17:37:57.531229"], ["updated_at", "2019-05-28 17:37:57.531229"]] 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\":\"77693641-bcd5-457a-8cf9-0ecf30ad4a5b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:37:57.534Z\",\"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-05-28 17:37:57.536838"], ["created_at", "2019-05-28 17:37:57.536867"], ["updated_at", "2019-05-28 17:37:57.536867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (0.1ms) 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-05-28 17:37:57.552480"], ["created_at", "2019-05-28 17:37:57.552530"], ["updated_at", "2019-05-28 17:37:57.552530"]] 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\":\"86a72f28-4256-49d7-8a07-988a82512bc8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:37:57.555Z\",\"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-05-28 17:37:57.556818"], ["created_at", "2019-05-28 17:37:57.556842"], ["updated_at", "2019-05-28 17:37:57.556842"]]  (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.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-05-28 17:37:57.572037"], ["created_at", "2019-05-28 17:37:57.572066"], ["updated_at", "2019-05-28 17:37:57.572066"]] 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\":\"2ee980da-a22f-4562-adc2-7d6a7d9758fa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:37:57.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-05-28 17:37:57.576005"], ["created_at", "2019-05-28 17:37:57.576032"], ["updated_at", "2019-05-28 17:37:57.576032"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-28 17:37:57.589743"], ["created_at", "2019-05-28 17:37:57.589780"], ["updated_at", "2019-05-28 17:37:57.589780"]] 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\":\"ee2bed24-869f-47ea-8603-4cee1386e658\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:37:57.591Z\",\"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-05-28 17:37:57.593304"], ["created_at", "2019-05-28 17:37:57.593325"], ["updated_at", "2019-05-28 17:37:57.593325"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (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.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-05-28 17:37:57.641162', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.640673' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.640686') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:37:57.646194', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.646012' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.646018') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') 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.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-05-28T17:37:57.648Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:37:57.651133"], ["created_at", "2019-05-28 17:37:57.651179"], ["updated_at", "2019-05-28 17:37:57.651179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:37:57.652635', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.652435' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.652440') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:37:57.655107', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.654914' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.654920') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.1ms) 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-05-28T17:37:57.659Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:37:57.661535"], ["created_at", "2019-05-28 17:37:57.661559"], ["updated_at", "2019-05-28 17:37:57.661559"]]  (0.1ms) 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-05-28 17:37:57.663636', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.663419' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.663425') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') 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-05-28 17:37:57.666554', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.666255' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.666268') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') 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) 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.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-05-28T17:37:57.670Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:37:57.672106"], ["created_at", "2019-05-28 17:37:57.672129"], ["updated_at", "2019-05-28 17:37:57.672129"]]  (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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:37:57.674220', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.674016' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.674021') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') 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-05-28 17:37:57.676678', locked_by = 'host:Corey-Alexander-MBP15 pid:2502' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:37:57.676479' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:37:57.676485') OR locked_by = 'host:Corey-Alexander-MBP15 pid:2502') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.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.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.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (2.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.398412', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.397778' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.397793') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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.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-05-28T17:39:35.402Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:39:35.415379"], ["created_at", "2019-05-28 17:39:35.415424"], ["updated_at", "2019-05-28 17:39:35.415424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.418133', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.417804' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.417814') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.421141', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.420923' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.420931') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.1ms) 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-05-28T17:39:35.426Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:39:35.427989"], ["created_at", "2019-05-28 17:39:35.428015"], ["updated_at", "2019-05-28 17:39:35.428015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.429915', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.429704' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.429710') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.432160', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.431982' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.431988') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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-05-28T17:39:35.435Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:39:35.437379"], ["created_at", "2019-05-28 17:39:35.437414"], ["updated_at", "2019-05-28 17:39:35.437414"]]  (0.1ms) 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-05-28 17:39:35.439867', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.439585' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.439592') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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.2ms) 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-05-28 17:39:35.442673', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.442455' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.442462') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:39:35.448395', locked_by = 'host:Corey-Alexander-MBP15 pid:4094' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:39:35.448151' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:39:35.448158') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4094') 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.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.1ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (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-05-28 17:39:35.569702"], ["created_at", "2019-05-28 17:39:35.569741"], ["updated_at", "2019-05-28 17:39:35.569741"]] 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\":\"e0dd94b4-3c14-4853-a7ea-a230a3354711\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:39:35.572Z\",\"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-05-28 17:39:35.574990"], ["created_at", "2019-05-28 17:39:35.575025"], ["updated_at", "2019-05-28 17:39:35.575025"]]  (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-05-28 17:39:35.589110"], ["created_at", "2019-05-28 17:39:35.589146"], ["updated_at", "2019-05-28 17:39:35.589146"]] 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\":\"8c8f791b-cb44-41f3-a3bb-faa33e92af70\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:39:35.591Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-28 17:39:35.592883"], ["created_at", "2019-05-28 17:39:35.592904"], ["updated_at", "2019-05-28 17:39:35.592904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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-05-28 17:39:35.609431"], ["created_at", "2019-05-28 17:39:35.609506"], ["updated_at", "2019-05-28 17:39:35.609506"]] 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\":\"afee577c-7421-4169-b635-5799655f24b2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:39:35.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-05-28 17:39:35.613737"], ["created_at", "2019-05-28 17:39:35.613762"], ["updated_at", "2019-05-28 17:39:35.613762"]]  (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.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-05-28 17:39:35.629725"], ["created_at", "2019-05-28 17:39:35.629763"], ["updated_at", "2019-05-28 17:39:35.629763"]] 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\":\"fef8ed83-10eb-497c-a47b-3a9d198889cf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:39:35.631Z\",\"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-05-28 17:39:35.633517"], ["created_at", "2019-05-28 17:39:35.633547"], ["updated_at", "2019-05-28 17:39:35.633547"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-28 17:39:35.647495"], ["created_at", "2019-05-28 17:39:35.647531"], ["updated_at", "2019-05-28 17:39:35.647531"]] 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\":\"c2e1e924-7cb8-41d1-aa5c-a2d6a30f0f18\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:39:35.649Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"12\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-28 17:39:35.650898"], ["created_at", "2019-05-28 17:39:35.650920"], ["updated_at", "2019-05-28 17:39:35.650920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.1ms) 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-05-28 17:39:35.683675"], ["created_at", "2019-05-28 17:39:35.683712"], ["updated_at", "2019-05-28 17:39:35.683712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (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.1ms) 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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) 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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.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.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.2ms) COMMIT  (0.4ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (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.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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-05-28 17:40:52.332593"], ["created_at", "2019-05-28 17:40:52.332666"], ["updated_at", "2019-05-28 17:40:52.332666"]] 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\":\"74d024b4-70e7-4087-9fb0-978d3c8a4803\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:40:52.436Z\",\"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-05-28 17:40:52.459950"], ["created_at", "2019-05-28 17:40:52.459985"], ["updated_at", "2019-05-28 17:40:52.459985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-28 17:40:52.473058"], ["created_at", "2019-05-28 17:40:52.473098"], ["updated_at", "2019-05-28 17:40:52.473098"]] 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\":\"d984a2c7-0005-464a-b311-164bbf10f14a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:40:52.475Z\",\"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-05-28 17:40:52.477450"], ["created_at", "2019-05-28 17:40:52.477477"], ["updated_at", "2019-05-28 17:40:52.477477"]]  (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.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-05-28 17:40:52.493393"], ["created_at", "2019-05-28 17:40:52.493426"], ["updated_at", "2019-05-28 17:40:52.493426"]] 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\":\"5fce6915-1ef8-4a6b-9914-8531717aa9d7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:40:52.495Z\",\"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-05-28 17:40:52.496808"], ["created_at", "2019-05-28 17:40:52.496829"], ["updated_at", "2019-05-28 17:40:52.496829"]]  (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.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-05-28 17:40:52.512696"], ["created_at", "2019-05-28 17:40:52.512734"], ["updated_at", "2019-05-28 17:40:52.512734"]]  (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.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-05-28 17:40:52.528226"], ["created_at", "2019-05-28 17:40:52.528260"], ["updated_at", "2019-05-28 17:40:52.528260"]] 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\":\"33d2bb05-a0be-43b8-ab1a-56b1ecac341f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:40:52.530Z\",\"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-05-28 17:40:52.531818"], ["created_at", "2019-05-28 17:40:52.531844"], ["updated_at", "2019-05-28 17:40:52.531844"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-28 17:40:52.549064"], ["created_at", "2019-05-28 17:40:52.549107"], ["updated_at", "2019-05-28 17:40:52.549107"]] 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\":\"f0a600a4-8770-4a1a-ab7e-0e4688bd7d69\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:40:52.551Z\",\"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-05-28 17:40:52.553599"], ["created_at", "2019-05-28 17:40:52.553625"], ["updated_at", "2019-05-28 17:40:52.553625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.2ms) ROLLBACK  (0.1ms) 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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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-05-28 17:40:52.681967', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.681397' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.681408') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') 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.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-05-28T17:40:52.687Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:40:52.690071"], ["created_at", "2019-05-28 17:40:52.690101"], ["updated_at", "2019-05-28 17:40:52.690101"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.693073', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.692772' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.692782') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.696205', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.696009' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.696017') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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-05-28T17:40:52.698Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:40:52.700542"], ["created_at", "2019-05-28 17:40:52.700563"], ["updated_at", "2019-05-28 17:40:52.700563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.701979', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.701764' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.701771') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.704492', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.704222' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.704230') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) 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-05-28T17:40:52.708Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:40:52.710188"], ["created_at", "2019-05-28 17:40:52.710215"], ["updated_at", "2019-05-28 17:40:52.710215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-28 17:40:52.712176', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.711959' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.711965') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.714980', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.714774' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.714781') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:40:52.719711', locked_by = 'host:Corey-Alexander-MBP15 pid:4466' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:40:52.719376' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:40:52.719387') OR locked_by = 'host:Corey-Alexander-MBP15 pid:4466') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.3ms) 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.2ms) 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.2ms) ROLLBACK  (0.2ms) 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.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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (1.0ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.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-05-28 17:41:16.878991"], ["created_at", "2019-05-28 17:41:16.879034"], ["updated_at", "2019-05-28 17:41:16.879034"]] 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\":\"f018036c-6608-4379-bd9a-92edf448a474\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:16.882Z\",\"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-05-28 17:41:16.885333"], ["created_at", "2019-05-28 17:41:16.885363"], ["updated_at", "2019-05-28 17:41:16.885363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-28 17:41:16.900299"], ["created_at", "2019-05-28 17:41:16.900329"], ["updated_at", "2019-05-28 17:41:16.900329"]] 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\":\"7e53ef29-dfe4-4976-a1ee-3528b8f86076\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:16.903Z\",\"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-05-28 17:41:16.904864"], ["created_at", "2019-05-28 17:41:16.904894"], ["updated_at", "2019-05-28 17:41:16.904894"]]  (0.2ms) 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-05-28 17:41:16.920958"], ["created_at", "2019-05-28 17:41:16.920999"], ["updated_at", "2019-05-28 17:41:16.920999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-28 17:41:16.936966"], ["created_at", "2019-05-28 17:41:16.937022"], ["updated_at", "2019-05-28 17:41:16.937022"]] 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\":\"a2a54630-4e21-4fa4-9d15-f42b34810555\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:16.940Z\",\"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-05-28 17:41:16.941923"], ["created_at", "2019-05-28 17:41:16.941950"], ["updated_at", "2019-05-28 17:41:16.941950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["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-05-28 17:41:16.956517"], ["created_at", "2019-05-28 17:41:16.956547"], ["updated_at", "2019-05-28 17:41:16.956547"]] 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\":\"79c61c95-b71c-46aa-b42e-17d7eca6de09\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:16.959Z\",\"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-05-28 17:41:16.961488"], ["created_at", "2019-05-28 17:41:16.961516"], ["updated_at", "2019-05-28 17:41:16.961516"]]  (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.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-05-28 17:41:16.978890"], ["created_at", "2019-05-28 17:41:16.978927"], ["updated_at", "2019-05-28 17:41:16.978927"]] 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\":\"02f76487-6e00-441a-9dc0-3e9fc41af576\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:16.981Z\",\"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-05-28 17:41:16.982764"], ["created_at", "2019-05-28 17:41:16.982785"], ["updated_at", "2019-05-28 17:41:16.982785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.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-05-28 17:41:16.990028', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:16.989511' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:16.989521') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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-05-28T17:41:16.993Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:16.995589"], ["created_at", "2019-05-28 17:41:16.995616"], ["updated_at", "2019-05-28 17:41:16.995616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:16.997309', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:16.996975' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:16.996991') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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-05-28 17:41:17.000586', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.000360' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.000368') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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.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-05-28T17:41:17.005Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:17.027090"], ["created_at", "2019-05-28 17:41:17.027120"], ["updated_at", "2019-05-28 17:41:17.027120"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:17.029578', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.029319' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.029326') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:17.032496', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.032289' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.032296') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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) 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-05-28T17:41:17.036Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:17.038223"], ["created_at", "2019-05-28 17:41:17.038257"], ["updated_at", "2019-05-28 17:41:17.038257"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:17.040633', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.040382' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.040390') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:17.043325', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.043130' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.043137') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:17.047668', locked_by = 'host:Corey-Alexander-MBP15 pid:5105' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:17.047427' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:17.047438') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5105') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.9ms) 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)  (1.2ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.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.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) BEGIN  (0.3ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.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-05-28 17:41:47.098178"], ["created_at", "2019-05-28 17:41:47.098222"], ["updated_at", "2019-05-28 17:41:47.098222"]] 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\":\"fe644b67-11ac-4a3b-b2e5-73e32687a7e4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:47.155Z\",\"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-05-28 17:41:47.158646"], ["created_at", "2019-05-28 17:41:47.158699"], ["updated_at", "2019-05-28 17:41:47.158699"]]  (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.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-05-28 17:41:47.175227"], ["created_at", "2019-05-28 17:41:47.175269"], ["updated_at", "2019-05-28 17:41:47.175269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-28 17:41:47.191239"], ["created_at", "2019-05-28 17:41:47.191288"], ["updated_at", "2019-05-28 17:41:47.191288"]] 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\":\"abcb4fc9-4667-4af1-a0b6-3d4d9d146bca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:47.193Z\",\"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-05-28 17:41:47.195752"], ["created_at", "2019-05-28 17:41:47.195776"], ["updated_at", "2019-05-28 17:41:47.195776"]]  (0.2ms) 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-05-28 17:41:47.208746"], ["created_at", "2019-05-28 17:41:47.208793"], ["updated_at", "2019-05-28 17:41:47.208793"]] 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\":\"a6d39a19-a772-46c6-84e6-75585eed51c1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:47.212Z\",\"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-05-28 17:41:47.213831"], ["created_at", "2019-05-28 17:41:47.213857"], ["updated_at", "2019-05-28 17:41:47.213857"]]  (0.2ms) 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-05-28 17:41:47.228969"], ["created_at", "2019-05-28 17:41:47.228997"], ["updated_at", "2019-05-28 17:41:47.228997"]] 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\":\"4191147c-36e0-444a-a6d1-8b249d10a9c1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:47.231Z\",\"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-05-28 17:41:47.232952"], ["created_at", "2019-05-28 17:41:47.232980"], ["updated_at", "2019-05-28 17:41:47.232980"]]  (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.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-05-28 17:41:47.249098"], ["created_at", "2019-05-28 17:41:47.249132"], ["updated_at", "2019-05-28 17:41:47.249132"]] 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\":\"bf9388fd-7623-414e-a7db-6d50d629f361\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:41:47.250Z\",\"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-05-28 17:41:47.252473"], ["created_at", "2019-05-28 17:41:47.252500"], ["updated_at", "2019-05-28 17:41:47.252500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 10]]  (0.1ms) 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-05-28 17:41:47.259604', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.259093' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.259105') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:47.265502', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.265301' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.265307') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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", 20]]  (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-05-28T17:41:47.290Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:47.292476"], ["created_at", "2019-05-28 17:41:47.292509"], ["updated_at", "2019-05-28 17:41:47.292509"]]  (0.1ms) 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-05-28 17:41:47.294782', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.294552' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.294558') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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.2ms) 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-05-28 17:41:47.297504', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.297320' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.297326') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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.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-05-28T17:41:47.299Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:47.301542"], ["created_at", "2019-05-28 17:41:47.301564"], ["updated_at", "2019-05-28 17:41:47.301564"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:47.303014', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.302790' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.302797') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:47.305437', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.305240' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.305247') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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", 0]]  (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-05-28T17:41:47.309Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:41:47.311380"], ["created_at", "2019-05-28 17:41:47.311407"], ["updated_at", "2019-05-28 17:41:47.311407"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:47.313540', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.313317' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.313323') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:41:47.316139', locked_by = 'host:Corey-Alexander-MBP15 pid:5969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:41:47.315959' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:41:47.315965') OR locked_by = 'host:Corey-Alexander-MBP15 pid:5969') 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) 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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.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  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.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.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.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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.384171', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.383637' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.383646') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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", 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-05-28T17:43:55.390Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:43:55.401617"], ["created_at", "2019-05-28 17:43:55.401664"], ["updated_at", "2019-05-28 17:43:55.401664"]]  (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-05-28 17:43:55.404956', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.404645' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.404655') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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.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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.408016', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.407830' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.407837') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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-05-28T17:43:55.410Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:43:55.412441"], ["created_at", "2019-05-28 17:43:55.412466"], ["updated_at", "2019-05-28 17:43:55.412466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.413896', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.413707' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.413713') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.416430', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.416213' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.416219') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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) 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.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-05-28T17:43:55.419Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:43:55.421698"], ["created_at", "2019-05-28 17:43:55.421730"], ["updated_at", "2019-05-28 17:43:55.421730"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.424520', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.424259' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.424266') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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-05-28 17:43:55.427471', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.427185' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.427193') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:43:55.432307', locked_by = 'host:Corey-Alexander-MBP15 pid:9279' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:43:55.432078' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:43:55.432088') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9279') 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 # 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-05-28 17:43:55.446677"], ["created_at", "2019-05-28 17:43:55.446713"], ["updated_at", "2019-05-28 17:43:55.446713"]] 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\":\"ac2c653f-b1c5-49cf-a02c-b3d3b4be587d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:43:55.449Z\",\"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-05-28 17:43:55.451734"], ["created_at", "2019-05-28 17:43:55.451760"], ["updated_at", "2019-05-28 17:43:55.451760"]]  (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-05-28 17:43:55.465454"], ["created_at", "2019-05-28 17:43:55.465502"], ["updated_at", "2019-05-28 17:43:55.465502"]] 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\":\"93ce2004-1809-489d-a11a-eb859b0914f5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:43:55.467Z\",\"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-05-28 17:43:55.469550"], ["created_at", "2019-05-28 17:43:55.469593"], ["updated_at", "2019-05-28 17:43:55.469593"]]  (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.1ms) 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-05-28 17:43:55.484516"], ["created_at", "2019-05-28 17:43:55.484554"], ["updated_at", "2019-05-28 17:43:55.484554"]] 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\":\"6218ae19-0f50-40d6-834d-8de3d52b2649\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:43:55.486Z\",\"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-05-28 17:43:55.488574"], ["created_at", "2019-05-28 17:43:55.488609"], ["updated_at", "2019-05-28 17:43:55.488609"]]  (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.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-05-28 17:43:55.504520"], ["created_at", "2019-05-28 17:43:55.504572"], ["updated_at", "2019-05-28 17:43:55.504572"]] 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\":\"88824c1b-790f-4745-b43b-bb88149bdc0d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:43:55.506Z\",\"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-05-28 17:43:55.508420"], ["created_at", "2019-05-28 17:43:55.508443"], ["updated_at", "2019-05-28 17:43:55.508443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-28 17:43:55.522706"], ["created_at", "2019-05-28 17:43:55.522742"], ["updated_at", "2019-05-28 17:43:55.522742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-28 17:43:55.539951"], ["created_at", "2019-05-28 17:43:55.539991"], ["updated_at", "2019-05-28 17:43:55.539991"]] 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\":\"42604556-c645-4cb3-822e-e2b2e2aadb75\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:43:55.542Z\",\"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-05-28 17:43:55.544216"], ["created_at", "2019-05-28 17:43:55.544240"], ["updated_at", "2019-05-28 17:43:55.544240"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) 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.3ms) 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"  (2.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) 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-05-28 17:44:18.172489"], ["created_at", "2019-05-28 17:44:18.172543"], ["updated_at", "2019-05-28 17:44:18.172543"]] 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\":\"7d15d4ba-c03e-4177-8276-f89b3ce005d8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:44:18.274Z\",\"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-05-28 17:44:18.295060"], ["created_at", "2019-05-28 17:44:18.295091"], ["updated_at", "2019-05-28 17:44:18.295091"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-28 17:44:18.310115"], ["created_at", "2019-05-28 17:44:18.310184"], ["updated_at", "2019-05-28 17:44:18.310184"]] 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\":\"e8b4f340-ccb5-434b-9d42-ec0023ad6fd7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:44:18.312Z\",\"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-05-28 17:44:18.313690"], ["created_at", "2019-05-28 17:44:18.313710"], ["updated_at", "2019-05-28 17:44:18.313710"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 3]]  (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-05-28 17:44:18.327937"], ["created_at", "2019-05-28 17:44:18.327973"], ["updated_at", "2019-05-28 17:44:18.327973"]] 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\":\"aefb5ac3-0f4c-4ebb-b37b-f0118dfe2f6e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:44:18.331Z\",\"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-05-28 17:44:18.333024"], ["created_at", "2019-05-28 17:44:18.333055"], ["updated_at", "2019-05-28 17:44:18.333055"]]  (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.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-05-28 17:44:18.349312"], ["created_at", "2019-05-28 17:44:18.349347"], ["updated_at", "2019-05-28 17:44:18.349347"]] 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\":\"4aa68508-acf4-4737-9d6e-4ab8d37bc89e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:44:18.352Z\",\"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-05-28 17:44:18.353946"], ["created_at", "2019-05-28 17:44:18.353991"], ["updated_at", "2019-05-28 17:44:18.353991"]]  (0.2ms) 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-05-28 17:44:18.367211"], ["created_at", "2019-05-28 17:44:18.367238"], ["updated_at", "2019-05-28 17:44:18.367238"]] 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\":\"760bccac-ad6f-4074-9d2b-69987cb0bc06\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:44:18.369Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"9\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-28 17:44:18.371396"], ["created_at", "2019-05-28 17:44:18.371457"], ["updated_at", "2019-05-28 17:44:18.371457"]]  (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.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-05-28 17:44:18.389464"], ["created_at", "2019-05-28 17:44:18.389505"], ["updated_at", "2019-05-28 17:44:18.389505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.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.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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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-05-28 17:44:18.544380', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.543694' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.543709') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') 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.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-05-28T17:44:18.550Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:44:18.554021"], ["created_at", "2019-05-28 17:44:18.554057"], ["updated_at", "2019-05-28 17:44:18.554057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-28 17:44:18.556366', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.556115' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.556121') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:44:18.559056', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.558841' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.558847') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) 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-05-28T17:44:18.561Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:44:18.563032"], ["created_at", "2019-05-28 17:44:18.563056"], ["updated_at", "2019-05-28 17:44:18.563056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:44:18.564449', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.564210' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.564215') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:44:18.567030', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.566773' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.566789') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') 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", 0]]  (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-05-28T17:44:18.570Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:44:18.572837"], ["created_at", "2019-05-28 17:44:18.572863"], ["updated_at", "2019-05-28 17:44:18.572863"]]  (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-05-28 17:44:18.575115', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.574875' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.574883') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') 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.2ms) 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-05-28 17:44:18.577791', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.577588' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.577595') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:44:18.602072', locked_by = 'host:Corey-Alexander-MBP15 pid:9519' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:44:18.601834' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:44:18.601842') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9519') 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (62.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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.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.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) 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-05-28T17:55:06.683Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:55:06.699827"], ["created_at", "2019-05-28 17:55:06.699880"], ["updated_at", "2019-05-28 17:55:06.699880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:55:06.771004', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.770168' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.770184') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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-05-28 17:55:06.775717', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.775347' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.775355') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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.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-05-28T17:55:06.783Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:55:06.785035"], ["created_at", "2019-05-28 17:55:06.785068"], ["updated_at", "2019-05-28 17:55:06.785068"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:55:06.787537', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.787285' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.787293') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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-05-28 17:55:06.790385', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.790187' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.790194') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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", 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-05-28T17:55:06.795Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-28 17:55:06.797251"], ["created_at", "2019-05-28 17:55:06.797279"], ["updated_at", "2019-05-28 17:55:06.797279"]]  (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-05-28 17:55:06.799890', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.799568' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.799575') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:55:06.802593', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.802391' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.802398') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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-05-28 17:55:06.888244', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.887926' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.887936') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-28 17:55:06.892955', locked_by = 'host:Corey-Alexander-MBP15 pid:25547' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-28 17:55:06.892731' AND (locked_at IS NULL OR locked_at < '2019-05-28 13:55:06.892739') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25547') 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.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.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.3ms) 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.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 # 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.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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-05-28 17:55:07.155536"], ["created_at", "2019-05-28 17:55:07.155576"], ["updated_at", "2019-05-28 17:55:07.155576"]] 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\":\"2b80c59b-913a-4240-9e08-7b6639f88a00\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:55:07.212Z\",\"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-05-28 17:55:07.216794"], ["created_at", "2019-05-28 17:55:07.216835"], ["updated_at", "2019-05-28 17:55:07.216835"]]  (0.2ms) 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-05-28 17:55:07.230409"], ["created_at", "2019-05-28 17:55:07.230448"], ["updated_at", "2019-05-28 17:55:07.230448"]] 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\":\"9d614d49-c574-44b4-9933-8c8f4cdce510\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:55:07.232Z\",\"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-05-28 17:55:07.234874"], ["created_at", "2019-05-28 17:55:07.234901"], ["updated_at", "2019-05-28 17:55:07.234901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (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-05-28 17:55:07.249536"], ["created_at", "2019-05-28 17:55:07.249567"], ["updated_at", "2019-05-28 17:55:07.249567"]]  (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.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-05-28 17:55:07.266749"], ["created_at", "2019-05-28 17:55:07.266796"], ["updated_at", "2019-05-28 17:55:07.266796"]] 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\":\"49ea0aed-b90b-4b34-937c-90568dc78961\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:55:07.269Z\",\"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-05-28 17:55:07.271087"], ["created_at", "2019-05-28 17:55:07.271109"], ["updated_at", "2019-05-28 17:55:07.271109"]]  (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-05-28 17:55:07.283994"], ["created_at", "2019-05-28 17:55:07.284023"], ["updated_at", "2019-05-28 17:55:07.284023"]] 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\":\"289cc12f-c70e-4d64-a93a-a188bc3a4a4d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:55:07.286Z\",\"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-05-28 17:55:07.287722"], ["created_at", "2019-05-28 17:55:07.287753"], ["updated_at", "2019-05-28 17:55:07.287753"]]  (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", 11]]  (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-05-28 17:55:07.303062"], ["created_at", "2019-05-28 17:55:07.303096"], ["updated_at", "2019-05-28 17:55:07.303096"]] 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\":\"a1325ed4-d49c-4e0d-94be-487b1f219eb6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-28T17:55:07.304Z\",\"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-05-28 17:55:07.306426"], ["created_at", "2019-05-28 17:55:07.306446"], ["updated_at", "2019-05-28 17:55:07.306446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.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.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.6ms) 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.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.2ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (3.6ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20190529213045) 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.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) 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.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.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.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.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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.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-05-29 21:39:33.081873"], ["created_at", "2019-05-29 21:39:33.081916"], ["updated_at", "2019-05-29 21:39:33.081916"]]  (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.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-05-29 21:39:33.100606"], ["created_at", "2019-05-29 21:39:33.100642"], ["updated_at", "2019-05-29 21:39:33.100642"]] 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\":\"fafca231-69ab-4f5b-ac3c-d983355eea87\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:39:33.103Z\",\"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-05-29 21:39:33.107900"], ["created_at", "2019-05-29 21:39:33.107929"], ["updated_at", "2019-05-29 21:39:33.107929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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.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-05-29 21:39:33.124054"], ["created_at", "2019-05-29 21:39:33.124089"], ["updated_at", "2019-05-29 21:39:33.124089"]] 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\":\"1b509d9c-edc6-4805-a853-493adbff0e7b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:39:33.126Z\",\"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-05-29 21:39:33.127791"], ["created_at", "2019-05-29 21:39:33.127815"], ["updated_at", "2019-05-29 21:39:33.127815"]]  (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-05-29 21:39:33.141093"], ["created_at", "2019-05-29 21:39:33.141139"], ["updated_at", "2019-05-29 21:39:33.141139"]] 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\":\"af254f8c-9abf-4ce0-89e7-bda3d7861595\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:39:33.143Z\",\"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-05-29 21:39:33.144841"], ["created_at", "2019-05-29 21:39:33.144868"], ["updated_at", "2019-05-29 21:39:33.144868"]]  (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.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-05-29 21:39:33.160960"], ["created_at", "2019-05-29 21:39:33.160997"], ["updated_at", "2019-05-29 21:39:33.160997"]] 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\":\"c787fcdc-88af-49aa-92e0-1ffc1780d8c2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:39:33.163Z\",\"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-05-29 21:39:33.164710"], ["created_at", "2019-05-29 21:39:33.164733"], ["updated_at", "2019-05-29 21:39:33.164733"]]  (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.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-05-29 21:39:33.180029"], ["created_at", "2019-05-29 21:39:33.180062"], ["updated_at", "2019-05-29 21:39:33.180062"]] 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\":\"aac74c4f-40bf-49eb-a55d-7a0eaca65994\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:39:33.182Z\",\"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-05-29 21:39:33.183931"], ["created_at", "2019-05-29 21:39:33.183959"], ["updated_at", "2019-05-29 21:39:33.183959"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.2ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) 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.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.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:39:33.271107', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.270585' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.270596') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') 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.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-05-29T21:39:33.274Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:39:33.277139"], ["created_at", "2019-05-29 21:39:33.277168"], ["updated_at", "2019-05-29 21:39:33.277168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:39:33.278902', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.278648' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.278654') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') 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-05-29 21:39:33.281943', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.281703' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.281713') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') 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.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-05-29T21:39:33.308Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:39:33.310858"], ["created_at", "2019-05-29 21:39:33.310884"], ["updated_at", "2019-05-29 21:39:33.310884"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:39:33.312956', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.312740' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.312746') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') 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-05-29 21:39:33.315661', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.315460' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.315467') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') 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]]  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.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-05-29T21:39:33.319Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:39:33.320909"], ["created_at", "2019-05-29 21:39:33.320930"], ["updated_at", "2019-05-29 21:39:33.320930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:39:33.322608', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.322407' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.322413') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:39:33.324832', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.324632' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.324639') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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-05-29 21:39:33.329474', locked_by = 'host:Corey-Alexander-MBP15 pid:82897' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:39:33.329207' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:39:33.329217') OR locked_by = 'host:Corey-Alexander-MBP15 pid:82897') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.2ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (36.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.9ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (3.2ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) 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.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-05-29 21:40:45.428901', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.428413' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.428424') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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.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-05-29T21:40:45.432Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:40:45.444402"], ["created_at", "2019-05-29 21:40:45.444446"], ["updated_at", "2019-05-29 21:40:45.444446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:40:45.446752', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.446454' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.446462') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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-05-29 21:40:45.449840', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.449606' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.449615') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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", 20]]  (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-05-29T21:40:45.455Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:40:45.457941"], ["created_at", "2019-05-29 21:40:45.457968"], ["updated_at", "2019-05-29 21:40:45.457968"]]  (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-05-29 21:40:45.460135', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.459916' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.459921') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:40:45.462646', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.462434' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.462441') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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-05-29T21:40:45.465Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:40:45.467433"], ["created_at", "2019-05-29 21:40:45.467456"], ["updated_at", "2019-05-29 21:40:45.467456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:40:45.469512', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.469294' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.469300') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:40:45.472043', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.471804' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.471813') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:40:45.476765', locked_by = 'host:Corey-Alexander-MBP15 pid:83843' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:40:45.476567' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:40:45.476572') OR locked_by = 'host:Corey-Alexander-MBP15 pid:83843') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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) 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-05-29 21:40:45.531443"], ["created_at", "2019-05-29 21:40:45.531478"], ["updated_at", "2019-05-29 21:40:45.531478"]] 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\":\"a13c8308-bfe3-42b7-8d32-d3bd90be5a97\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:40:45.534Z\",\"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-05-29 21:40:45.537211"], ["created_at", "2019-05-29 21:40:45.537244"], ["updated_at", "2019-05-29 21:40:45.537244"]]  (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.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-05-29 21:40:45.553386"], ["created_at", "2019-05-29 21:40:45.553441"], ["updated_at", "2019-05-29 21:40:45.553441"]] 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\":\"45b56ff3-65db-42b2-bd04-ae7bea70b9a3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:40:45.555Z\",\"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-05-29 21:40:45.557170"], ["created_at", "2019-05-29 21:40:45.557192"], ["updated_at", "2019-05-29 21:40:45.557192"]]  (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-05-29 21:40:45.571601"], ["created_at", "2019-05-29 21:40:45.571640"], ["updated_at", "2019-05-29 21:40:45.571640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 21:40:45.587166"], ["created_at", "2019-05-29 21:40:45.587198"], ["updated_at", "2019-05-29 21:40:45.587198"]] 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\":\"d82fa450-d796-4453-bd27-c78061ff37ce\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:40:45.589Z\",\"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-05-29 21:40:45.591295"], ["created_at", "2019-05-29 21:40:45.591350"], ["updated_at", "2019-05-29 21:40:45.591350"]]  (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-05-29 21:40:45.606051"], ["created_at", "2019-05-29 21:40:45.606087"], ["updated_at", "2019-05-29 21:40:45.606087"]] 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\":\"1963f87c-f115-4c29-84cf-8cc2a64e58fa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:40:45.608Z\",\"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-05-29 21:40:45.609580"], ["created_at", "2019-05-29 21:40:45.609600"], ["updated_at", "2019-05-29 21:40:45.609600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-29 21:40:45.623434"], ["created_at", "2019-05-29 21:40:45.623468"], ["updated_at", "2019-05-29 21:40:45.623468"]] 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\":\"fb2a71c6-37a6-4222-a2d9-d3fdcfbd4312\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:40:45.625Z\",\"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-05-29 21:40:45.626983"], ["created_at", "2019-05-29 21:40:45.627007"], ["updated_at", "2019-05-29 21:40:45.627007"]]  (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.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.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (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.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.6ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.0ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.6ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) 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.1ms) BEGIN  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (2.8ms) 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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (1.0ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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-05-29 21:45:17.584376"], ["created_at", "2019-05-29 21:45:17.584426"], ["updated_at", "2019-05-29 21:45:17.584426"]] 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\":\"7f72ab5d-5bb9-4a97-a4a1-46e82a39a128\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:45:17.588Z\",\"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-05-29 21:45:17.591498"], ["created_at", "2019-05-29 21:45:17.591525"], ["updated_at", "2019-05-29 21:45:17.591525"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 21:45:17.605061"], ["created_at", "2019-05-29 21:45:17.605091"], ["updated_at", "2019-05-29 21:45:17.605091"]] 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\":\"ff65c9b0-a11a-499a-90cc-134f11424aaa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:45:17.606Z\",\"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-05-29 21:45:17.608443"], ["created_at", "2019-05-29 21:45:17.608465"], ["updated_at", "2019-05-29 21:45:17.608465"]]  (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.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-05-29 21:45:17.624326"], ["created_at", "2019-05-29 21:45:17.624363"], ["updated_at", "2019-05-29 21:45:17.624363"]] 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\":\"a3196ccf-d0f7-4052-a9fe-de7a59053ff5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:45:17.626Z\",\"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-05-29 21:45:17.627963"], ["created_at", "2019-05-29 21:45:17.627985"], ["updated_at", "2019-05-29 21:45:17.627985"]]  (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.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-05-29 21:45:17.644602"], ["created_at", "2019-05-29 21:45:17.644641"], ["updated_at", "2019-05-29 21:45:17.644641"]] 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\":\"160384b0-be86-49d4-8273-4060987d6ed4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:45:17.647Z\",\"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-05-29 21:45:17.649035"], ["created_at", "2019-05-29 21:45:17.649059"], ["updated_at", "2019-05-29 21:45:17.649059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 7]]  (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-05-29 21:45:17.663036"], ["created_at", "2019-05-29 21:45:17.663086"], ["updated_at", "2019-05-29 21:45:17.663086"]] 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\":\"02f8a1ef-638d-4c0a-bc93-3d43fe1cfabb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:45:17.665Z\",\"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-05-29 21:45:17.667653"], ["created_at", "2019-05-29 21:45:17.667679"], ["updated_at", "2019-05-29 21:45:17.667679"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 21:45:17.681825"], ["created_at", "2019-05-29 21:45:17.681864"], ["updated_at", "2019-05-29 21:45:17.681864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.693650', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.693160' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.693170') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.700859', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.700582' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.700594') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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", 20]]  (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-05-29T21:45:17.706Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:45:17.708619"], ["created_at", "2019-05-29 21:45:17.708651"], ["updated_at", "2019-05-29 21:45:17.708651"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.710811', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.710590' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.710596') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.713581', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.713364' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.713371') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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-05-29T21:45:17.715Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:45:17.717595"], ["created_at", "2019-05-29 21:45:17.717621"], ["updated_at", "2019-05-29 21:45:17.717621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.719208', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.718970' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.718975') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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-05-29 21:45:17.721941', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.721751' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.721757') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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) 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-05-29T21:45:17.725Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:45:17.727591"], ["created_at", "2019-05-29 21:45:17.727621"], ["updated_at", "2019-05-29 21:45:17.727621"]]  (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-05-29 21:45:17.730038', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.729806' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.729813') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:45:17.732745', locked_by = 'host:Corey-Alexander-MBP15 pid:87513' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:45:17.732525' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:45:17.732533') OR locked_by = 'host:Corey-Alexander-MBP15 pid:87513') 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.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.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.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.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.1ms) BEGIN  (0.3ms) 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.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.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.1ms) 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.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.2ms) 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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.6ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) 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.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.4ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) 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  (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) 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-05-29 21:50:11.495118"], ["created_at", "2019-05-29 21:50:11.495169"], ["updated_at", "2019-05-29 21:50:11.495169"]] 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\":\"9f931fe1-d27b-4e5a-8c86-a7d9e37f3de1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:50:11.560Z\",\"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-05-29 21:50:11.564442"], ["created_at", "2019-05-29 21:50:11.564479"], ["updated_at", "2019-05-29 21:50:11.564479"]]  (0.2ms) 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-05-29 21:50:11.579059"], ["created_at", "2019-05-29 21:50:11.579101"], ["updated_at", "2019-05-29 21:50:11.579101"]] 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\":\"ff5ec420-6f90-4a3c-8d4a-c03dedc26745\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:50:11.582Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"3\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 21:50:11.583727"], ["created_at", "2019-05-29 21:50:11.583753"], ["updated_at", "2019-05-29 21:50:11.583753"]]  (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.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-05-29 21:50:11.598463"], ["created_at", "2019-05-29 21:50:11.598512"], ["updated_at", "2019-05-29 21:50:11.598512"]] 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\":\"3be3dcd5-1b2a-4d5c-94b0-1ff885ced794\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:50:11.601Z\",\"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-05-29 21:50:11.603487"], ["created_at", "2019-05-29 21:50:11.603512"], ["updated_at", "2019-05-29 21:50:11.603512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (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-05-29 21:50:11.618211"], ["created_at", "2019-05-29 21:50:11.618241"], ["updated_at", "2019-05-29 21:50:11.618241"]] 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\":\"0907f493-ffaa-4ae8-9278-8d3c9239f2eb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:50:11.620Z\",\"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-05-29 21:50:11.621642"], ["created_at", "2019-05-29 21:50:11.621668"], ["updated_at", "2019-05-29 21:50:11.621668"]]  (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.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-05-29 21:50:11.637580"], ["created_at", "2019-05-29 21:50:11.637616"], ["updated_at", "2019-05-29 21:50:11.637616"]] 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\":\"15387628-9949-4f21-a6f8-2afd7ec76095\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:50:11.639Z\",\"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-05-29 21:50:11.641152"], ["created_at", "2019-05-29 21:50:11.641178"], ["updated_at", "2019-05-29 21:50:11.641178"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 21:50:11.655532"], ["created_at", "2019-05-29 21:50:11.655567"], ["updated_at", "2019-05-29 21:50:11.655567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK  (0.1ms) 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.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.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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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-05-29 21:50:11.690587', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.689954' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.689969') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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.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-05-29T21:50:11.693Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:50:11.696228"], ["created_at", "2019-05-29 21:50:11.696260"], ["updated_at", "2019-05-29 21:50:11.696260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.698063', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.697743' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.697770') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.701202', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.700899' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.700907') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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", 20]]  (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-05-29T21:50:11.706Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:50:11.708816"], ["created_at", "2019-05-29 21:50:11.708858"], ["updated_at", "2019-05-29 21:50:11.708858"]]  (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-05-29 21:50:11.711325', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.711066' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.711076') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.713961', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.713743' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.713751') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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) 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-05-29T21:50:11.717Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:50:11.719428"], ["created_at", "2019-05-29 21:50:11.719455"], ["updated_at", "2019-05-29 21:50:11.719455"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.721371', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.721162' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.721168') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.723808', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.723598' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.723606') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:50:11.728191', locked_by = 'host:Corey-Alexander-MBP15 pid:92286' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:50:11.727972' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:50:11.727979') OR locked_by = 'host:Corey-Alexander-MBP15 pid:92286') 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.1ms) 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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.4ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (3.6ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.9ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) 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.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.198623', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.197786' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.197817') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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.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-05-29T21:53:08.204Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:53:08.218533"], ["created_at", "2019-05-29 21:53:08.218582"], ["updated_at", "2019-05-29 21:53:08.218582"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.221780', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.221530' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.221538') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.224885', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.224672' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.224680') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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-05-29T21:53:08.227Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:53:08.229332"], ["created_at", "2019-05-29 21:53:08.229354"], ["updated_at", "2019-05-29 21:53:08.229354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.232417', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.232054' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.232064') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.235227', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.234986' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.234995') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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) 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.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-05-29T21:53:08.238Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:53:08.240292"], ["created_at", "2019-05-29 21:53:08.240321"], ["updated_at", "2019-05-29 21:53:08.240321"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.242485', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.242260' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.242266') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:53:08.245168', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.244963' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.244970') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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-05-29 21:53:08.260860', locked_by = 'host:Corey-Alexander-MBP15 pid:96240' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:53:08.260661' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:53:08.260667') OR locked_by = 'host:Corey-Alexander-MBP15 pid:96240') 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.1ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) 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 # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) 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-05-29 21:53:08.465621"], ["created_at", "2019-05-29 21:53:08.465670"], ["updated_at", "2019-05-29 21:53:08.465670"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (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-05-29 21:53:08.482043"], ["created_at", "2019-05-29 21:53:08.482088"], ["updated_at", "2019-05-29 21:53:08.482088"]] 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\":\"84515022-3992-4ac1-a51b-45ae8cbf4c68\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:53:08.485Z\",\"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-05-29 21:53:08.488148"], ["created_at", "2019-05-29 21:53:08.488178"], ["updated_at", "2019-05-29 21:53:08.488178"]]  (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-05-29 21:53:08.501483"], ["created_at", "2019-05-29 21:53:08.501517"], ["updated_at", "2019-05-29 21:53:08.501517"]] 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\":\"5db76730-70bc-40b4-8b44-16d9da0f476f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:53:08.503Z\",\"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-05-29 21:53:08.505134"], ["created_at", "2019-05-29 21:53:08.505163"], ["updated_at", "2019-05-29 21:53:08.505163"]]  (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.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-05-29 21:53:08.522626"], ["created_at", "2019-05-29 21:53:08.522666"], ["updated_at", "2019-05-29 21:53:08.522666"]] 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\":\"c34bd94d-3286-4866-b61f-e2a83e2a71b6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:53:08.524Z\",\"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-05-29 21:53:08.526280"], ["created_at", "2019-05-29 21:53:08.526300"], ["updated_at", "2019-05-29 21:53:08.526300"]]  (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-05-29 21:53:08.540438"], ["created_at", "2019-05-29 21:53:08.540476"], ["updated_at", "2019-05-29 21:53:08.540476"]] 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\":\"0f1a04c5-eb13-48b4-af34-0298e58c67b3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:53:08.543Z\",\"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-05-29 21:53:08.544752"], ["created_at", "2019-05-29 21:53:08.544776"], ["updated_at", "2019-05-29 21:53:08.544776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.7ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 11]]  (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-05-29 21:53:08.561662"], ["created_at", "2019-05-29 21:53:08.561699"], ["updated_at", "2019-05-29 21:53:08.561699"]] 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\":\"2480edb8-b31e-44a0-94b6-5a0c27e5b575\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:53:08.563Z\",\"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-05-29 21:53:08.565863"], ["created_at", "2019-05-29 21:53:08.565904"], ["updated_at", "2019-05-29 21:53:08.565904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (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.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) 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.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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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")  (2.2ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) 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.3ms) 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  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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.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.1ms) 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.2ms) 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.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.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) 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-05-29 21:54:24.151204"], ["created_at", "2019-05-29 21:54:24.151244"], ["updated_at", "2019-05-29 21:54:24.151244"]] 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\":\"f787a824-d690-40c6-9532-d18be7cad0bc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:54:24.154Z\",\"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-05-29 21:54:24.157462"], ["created_at", "2019-05-29 21:54:24.157488"], ["updated_at", "2019-05-29 21:54:24.157488"]]  (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.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-05-29 21:54:24.174419"], ["created_at", "2019-05-29 21:54:24.174464"], ["updated_at", "2019-05-29 21:54:24.174464"]] 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\":\"44f331d9-0280-437e-b109-3d78541d80ac\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:54:24.177Z\",\"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-05-29 21:54:24.179091"], ["created_at", "2019-05-29 21:54:24.179121"], ["updated_at", "2019-05-29 21:54:24.179121"]]  (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.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-05-29 21:54:24.196229"], ["created_at", "2019-05-29 21:54:24.196264"], ["updated_at", "2019-05-29 21:54:24.196264"]] 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\":\"c62583c0-a6f8-4288-9834-400f1a3b1b60\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:54:24.198Z\",\"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-05-29 21:54:24.199922"], ["created_at", "2019-05-29 21:54:24.199942"], ["updated_at", "2019-05-29 21:54:24.199942"]]  (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-05-29 21:54:24.214928"], ["created_at", "2019-05-29 21:54:24.214965"], ["updated_at", "2019-05-29 21:54:24.214965"]] 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\":\"f3798cc8-f6dc-46ec-b1a9-7ed4a2645032\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:54:24.216Z\",\"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-05-29 21:54:24.218598"], ["created_at", "2019-05-29 21:54:24.218622"], ["updated_at", "2019-05-29 21:54:24.218622"]]  (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.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-05-29 21:54:24.234887"], ["created_at", "2019-05-29 21:54:24.234924"], ["updated_at", "2019-05-29 21:54:24.234924"]] 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\":\"0a2cd236-71a9-4f2b-8f44-1c0ad73b3e0b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:54:24.236Z\",\"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-05-29 21:54:24.238853"], ["created_at", "2019-05-29 21:54:24.238880"], ["updated_at", "2019-05-29 21:54:24.238880"]]  (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-05-29 21:54:24.252877"], ["created_at", "2019-05-29 21:54:24.252913"], ["updated_at", "2019-05-29 21:54:24.252913"]]  (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.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (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.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.1ms) 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-05-29T21:54:24.343Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:54:24.346369"], ["created_at", "2019-05-29 21:54:24.346401"], ["updated_at", "2019-05-29 21:54:24.346401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-29 21:54:24.348719', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.348245' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.348252') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:54:24.351564', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.351356' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.351362') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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.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-05-29T21:54:24.354Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:54:24.356423"], ["created_at", "2019-05-29 21:54:24.356456"], ["updated_at", "2019-05-29 21:54:24.356456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:54:24.358154', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.357858' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.357864') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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-05-29 21:54:24.360858', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.360654' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.360661') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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) 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-05-29T21:54:24.364Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:54:24.365924"], ["created_at", "2019-05-29 21:54:24.365946"], ["updated_at", "2019-05-29 21:54:24.365946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-29 21:54:24.367816', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.367609' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.367615') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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.2ms) 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-05-29 21:54:24.370342', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.370160' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.370166') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:54:24.376124', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.375851' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.375862') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:54:24.380638', locked_by = 'host:Corey-Alexander-MBP15 pid:97359' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:54:24.380404' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:54:24.380414') OR locked_by = 'host:Corey-Alexander-MBP15 pid:97359') 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"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.7ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.5ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) 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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.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-05-29 21:56:07.232765', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.232212' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.232225') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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-05-29 21:56:07.239383', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.239160' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.239166') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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.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-05-29T21:56:07.244Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:56:07.255740"], ["created_at", "2019-05-29 21:56:07.255781"], ["updated_at", "2019-05-29 21:56:07.255781"]]  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:56:07.258765', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.258506' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.258512') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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-05-29 21:56:07.261521', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.261335' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.261341') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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" ("priority", "handler", "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-05-29T21:56:07.263Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:56:07.265729"], ["created_at", "2019-05-29 21:56:07.265755"], ["updated_at", "2019-05-29 21:56:07.265755"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:56:07.267830', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.267580' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.267588') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:56:07.270630', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.270389' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.270406') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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) 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-05-29T21:56:07.273Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:56:07.275602"], ["created_at", "2019-05-29 21:56:07.275626"], ["updated_at", "2019-05-29 21:56:07.275626"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:56:07.277863', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.277603' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.277611') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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.2ms) 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-05-29 21:56:07.280466', locked_by = 'host:Corey-Alexander-MBP15 pid:99272' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:56:07.280275' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:56:07.280282') OR locked_by = 'host:Corey-Alexander-MBP15 pid:99272') 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) 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.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.3ms) 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.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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (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-05-29 21:56:07.508769"], ["created_at", "2019-05-29 21:56:07.508804"], ["updated_at", "2019-05-29 21:56:07.508804"]] 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\":\"b05eb669-c316-46e6-847c-706f07118c31\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:56:07.510Z\",\"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-05-29 21:56:07.512780"], ["created_at", "2019-05-29 21:56:07.512803"], ["updated_at", "2019-05-29 21:56:07.512803"]]  (0.1ms) 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-05-29 21:56:07.526279"], ["created_at", "2019-05-29 21:56:07.526327"], ["updated_at", "2019-05-29 21:56:07.526327"]] 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\":\"106dee41-4c02-431d-8a8b-65b0e4f864b9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:56:07.528Z\",\"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-05-29 21:56:07.530198"], ["created_at", "2019-05-29 21:56:07.530220"], ["updated_at", "2019-05-29 21:56:07.530220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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.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-05-29 21:56:07.545139"], ["created_at", "2019-05-29 21:56:07.545176"], ["updated_at", "2019-05-29 21:56:07.545176"]] 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\":\"ad020918-b63a-445b-bfc5-ecb61feb5bc6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:56:07.546Z\",\"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-05-29 21:56:07.548515"], ["created_at", "2019-05-29 21:56:07.548536"], ["updated_at", "2019-05-29 21:56:07.548536"]]  (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.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-05-29 21:56:07.563777"], ["created_at", "2019-05-29 21:56:07.563816"], ["updated_at", "2019-05-29 21:56:07.563816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.1ms) 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-05-29 21:56:07.579420"], ["created_at", "2019-05-29 21:56:07.579453"], ["updated_at", "2019-05-29 21:56:07.579453"]] 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\":\"3c834ee1-d9fe-46d3-bd64-ca0177510031\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:56:07.581Z\",\"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-05-29 21:56:07.582697"], ["created_at", "2019-05-29 21:56:07.582717"], ["updated_at", "2019-05-29 21:56:07.582717"]]  (0.1ms) 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.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-05-29 21:56:07.597621"], ["created_at", "2019-05-29 21:56:07.597659"], ["updated_at", "2019-05-29 21:56:07.597659"]] 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\":\"1ffa7721-d8c8-4076-931f-8b1fc4a8a0b4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:56:07.600Z\",\"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-05-29 21:56:07.602030"], ["created_at", "2019-05-29 21:56:07.602057"], ["updated_at", "2019-05-29 21:56:07.602057"]]  (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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) 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.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  (1.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.8ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (3.0ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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) 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-05-29T21:57:25.503Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:57:25.519684"], ["created_at", "2019-05-29 21:57:25.519727"], ["updated_at", "2019-05-29 21:57:25.519727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:57:25.522792', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.522210' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.522216') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:57:25.527412', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.527116' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.527126') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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", 20]]  (0.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-05-29T21:57:25.542Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:57:25.545227"], ["created_at", "2019-05-29 21:57:25.545269"], ["updated_at", "2019-05-29 21:57:25.545269"]]  (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-05-29 21:57:25.547942', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.547684' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.547690') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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-05-29 21:57:25.550732', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.550532' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.550539') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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]]  (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-05-29T21:57:25.554Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:57:25.555898"], ["created_at", "2019-05-29 21:57:25.555920"], ["updated_at", "2019-05-29 21:57:25.555920"]]  (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-05-29 21:57:25.557921', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.557720' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.557726') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:57:25.560546', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.560344' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.560351') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:57:25.565219', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.565004' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.565011') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.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-05-29 21:57:25.569862', locked_by = 'host:Corey-Alexander-MBP15 pid:868' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:57:25.569603' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:57:25.569617') OR locked_by = 'host:Corey-Alexander-MBP15 pid:868') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.3ms) 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.1ms) ROLLBACK  (0.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.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) 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-05-29 21:57:25.836889"], ["created_at", "2019-05-29 21:57:25.836941"], ["updated_at", "2019-05-29 21:57:25.836941"]] 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\":\"938ee54e-03dc-451d-ae75-ac437c4ac625\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:57:25.840Z\",\"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-05-29 21:57:25.842814"], ["created_at", "2019-05-29 21:57:25.842849"], ["updated_at", "2019-05-29 21:57:25.842849"]]  (0.2ms) 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-05-29 21:57:25.856376"], ["created_at", "2019-05-29 21:57:25.856404"], ["updated_at", "2019-05-29 21:57:25.856404"]] 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\":\"78073712-c991-4d88-b41f-8f62a2336b4b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:57:25.858Z\",\"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-05-29 21:57:25.859921"], ["created_at", "2019-05-29 21:57:25.859947"], ["updated_at", "2019-05-29 21:57:25.859947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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.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-05-29 21:57:25.875298"], ["created_at", "2019-05-29 21:57:25.875335"], ["updated_at", "2019-05-29 21:57:25.875335"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 21:57:25.891708"], ["created_at", "2019-05-29 21:57:25.891744"], ["updated_at", "2019-05-29 21:57:25.891744"]] 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\":\"48f37c5e-c781-40e6-9a37-868f4b62e219\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:57:25.894Z\",\"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-05-29 21:57:25.896074"], ["created_at", "2019-05-29 21:57:25.896109"], ["updated_at", "2019-05-29 21:57:25.896109"]]  (0.2ms) RELEASE 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-05-29 21:57:25.909625"], ["created_at", "2019-05-29 21:57:25.909665"], ["updated_at", "2019-05-29 21:57:25.909665"]] 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\":\"346c0192-ecc0-4f19-ba5f-3044e3e25dbf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:57:25.912Z\",\"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-05-29 21:57:25.914535"], ["created_at", "2019-05-29 21:57:25.914567"], ["updated_at", "2019-05-29 21:57:25.914567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-29 21:57:25.951204"], ["created_at", "2019-05-29 21:57:25.951242"], ["updated_at", "2019-05-29 21:57:25.951242"]] 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\":\"b6f3dbbb-88b0-4675-964c-1423a69c5fca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:57:25.953Z\",\"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-05-29 21:57:25.954929"], ["created_at", "2019-05-29 21:57:25.954952"], ["updated_at", "2019-05-29 21:57:25.954952"]]  (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.2ms) ROLLBACK  (0.2ms) BEGIN  (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.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.8ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.4ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) 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.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.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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:58:16.539612', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.539076' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.539089') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:58:16.545432', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.545193' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.545199') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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.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", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-05-29T21:58:16.551Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:58:16.560711"], ["created_at", "2019-05-29 21:58:16.560752"], ["updated_at", "2019-05-29 21:58:16.560752"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:58:16.563665', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.563354' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.563371') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:58:16.567305', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.567031' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.567043') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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-05-29T21:58:16.569Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:58:16.571740"], ["created_at", "2019-05-29 21:58:16.571765"], ["updated_at", "2019-05-29 21:58:16.571765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 21:58:16.573273', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.573069' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.573075') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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.2ms) 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-05-29 21:58:16.575685', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.575493' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.575499') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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]]  (0.3ms) 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-05-29T21:58:16.578Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 21:58:16.584119"], ["created_at", "2019-05-29 21:58:16.584174"], ["updated_at", "2019-05-29 21:58:16.584174"]]  (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-05-29 21:58:16.587929', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.587686' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.587694') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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-05-29 21:58:16.591738', locked_by = 'host:Corey-Alexander-MBP15 pid:3054' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 21:58:16.591057' AND (locked_at IS NULL OR locked_at < '2019-05-29 17:58:16.591064') OR locked_by = 'host:Corey-Alexander-MBP15 pid:3054') 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) 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.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.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.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.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.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.2ms) 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 # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) 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  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (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-05-29 21:58:16.859768"], ["created_at", "2019-05-29 21:58:16.859805"], ["updated_at", "2019-05-29 21:58:16.859805"]] 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\":\"f0a7f8cc-c11d-4f2e-a1c4-31d31e7c265c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:58:16.861Z\",\"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-05-29 21:58:16.864336"], ["created_at", "2019-05-29 21:58:16.864375"], ["updated_at", "2019-05-29 21:58:16.864375"]]  (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-05-29 21:58:16.878019"], ["created_at", "2019-05-29 21:58:16.878050"], ["updated_at", "2019-05-29 21:58:16.878050"]] 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\":\"ad6a879a-cdc0-48ea-b076-021852879e8b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:58:16.879Z\",\"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-05-29 21:58:16.881986"], ["created_at", "2019-05-29 21:58:16.882013"], ["updated_at", "2019-05-29 21:58:16.882013"]]  (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-05-29 21:58:16.899503"], ["created_at", "2019-05-29 21:58:16.899549"], ["updated_at", "2019-05-29 21:58:16.899549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.1ms) 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-05-29 21:58:16.935434"], ["created_at", "2019-05-29 21:58:16.935468"], ["updated_at", "2019-05-29 21:58:16.935468"]] 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\":\"c87ab371-ed04-4aa3-b32f-4f882f910fae\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:58:16.937Z\",\"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-05-29 21:58:16.939121"], ["created_at", "2019-05-29 21:58:16.939148"], ["updated_at", "2019-05-29 21:58:16.939148"]]  (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.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-05-29 21:58:16.954533"], ["created_at", "2019-05-29 21:58:16.954570"], ["updated_at", "2019-05-29 21:58:16.954570"]] 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\":\"5d104d74-568f-4b43-b4a7-c35671e92515\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:58:16.956Z\",\"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-05-29 21:58:16.958139"], ["created_at", "2019-05-29 21:58:16.958163"], ["updated_at", "2019-05-29 21:58:16.958163"]]  (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-05-29 21:58:16.972083"], ["created_at", "2019-05-29 21:58:16.972135"], ["updated_at", "2019-05-29 21:58:16.972135"]] 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\":\"45d28690-4414-419f-9d2d-97fe511fcbf4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T21:58:16.974Z\",\"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-05-29 21:58:16.976402"], ["created_at", "2019-05-29 21:58:16.976430"], ["updated_at", "2019-05-29 21:58:16.976430"]]  (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.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.1ms) 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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.2ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:01:56.659663', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.658860' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.658882') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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.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-05-29T22:01:56.668Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:01:56.683270"], ["created_at", "2019-05-29 22:01:56.683331"], ["updated_at", "2019-05-29 22:01:56.683331"]]  (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-05-29 22:01:56.686519', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.686262' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.686271') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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-05-29 22:01:56.689397', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.689198' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.689205') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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-05-29T22:01:56.691Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:01:56.693839"], ["created_at", "2019-05-29 22:01:56.693863"], ["updated_at", "2019-05-29 22:01:56.693863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:01:56.696852', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.696405' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.696435') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:01:56.699850', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.699620' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.699629') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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) 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-05-29T22:01:56.703Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:01:56.704710"], ["created_at", "2019-05-29 22:01:56.704732"], ["updated_at", "2019-05-29 22:01:56.704732"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:01:56.707024', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.706758' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.706774') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:01:56.709818', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.709586' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.709595') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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-05-29 22:01:56.715681', locked_by = 'host:Corey-Alexander-MBP15 pid:6456' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:01:56.715421' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:01:56.715433') OR locked_by = 'host:Corey-Alexander-MBP15 pid:6456') 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.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.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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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-05-29 22:01:56.827294"], ["created_at", "2019-05-29 22:01:56.827330"], ["updated_at", "2019-05-29 22:01:56.827330"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.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.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-05-29 22:01:56.856379"], ["created_at", "2019-05-29 22:01:56.856415"], ["updated_at", "2019-05-29 22:01:56.856415"]] 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\":\"8551f46c-99ce-4609-b150-0f4a422caf0b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:01:56.951Z\",\"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-05-29 22:01:56.954428"], ["created_at", "2019-05-29 22:01:56.954464"], ["updated_at", "2019-05-29 22:01:56.954464"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 22:01:56.970805"], ["created_at", "2019-05-29 22:01:56.970845"], ["updated_at", "2019-05-29 22:01:56.970845"]] 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\":\"8a7b5b10-cffd-4fcc-8f86-a1615e6525bc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:01:56.972Z\",\"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-05-29 22:01:56.974537"], ["created_at", "2019-05-29 22:01:56.974562"], ["updated_at", "2019-05-29 22:01:56.974562"]]  (0.2ms) 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-05-29 22:01:56.989421"], ["created_at", "2019-05-29 22:01:56.989460"], ["updated_at", "2019-05-29 22:01:56.989460"]] 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\":\"88495009-fc75-4f14-a37f-85e2fd2a4442\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:01:56.991Z\",\"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-05-29 22:01:56.993456"], ["created_at", "2019-05-29 22:01:56.993483"], ["updated_at", "2019-05-29 22:01:56.993483"]]  (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-05-29 22:01:57.011159"], ["created_at", "2019-05-29 22:01:57.011212"], ["updated_at", "2019-05-29 22:01:57.011212"]] 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\":\"cb35a4d3-0481-4881-88cd-1f10f8a097d8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:01:57.014Z\",\"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-05-29 22:01:57.017169"], ["created_at", "2019-05-29 22:01:57.017197"], ["updated_at", "2019-05-29 22:01:57.017197"]]  (0.1ms) 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.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-05-29 22:01:57.033718"], ["created_at", "2019-05-29 22:01:57.033758"], ["updated_at", "2019-05-29 22:01:57.033758"]] 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\":\"0180469f-76fe-4d9c-a32e-9e8c85a4882d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:01:57.036Z\",\"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-05-29 22:01:57.037858"], ["created_at", "2019-05-29 22:01:57.037879"], ["updated_at", "2019-05-29 22:01:57.037879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (0.2ms) ROLLBACK  (0.1ms) 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.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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  (0.2ms) 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.2ms) BEGIN  (0.2ms) 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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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"  (61.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)  (2.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.5ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.5ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) 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.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.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.550232', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.549598' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.549612') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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.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-05-29T22:03:07.557Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:07.577414"], ["created_at", "2019-05-29 22:03:07.577452"], ["updated_at", "2019-05-29 22:03:07.577452"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.579920', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.579721' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.579726') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.582890', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.582694' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.582701') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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.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-05-29T22:03:07.585Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:07.587988"], ["created_at", "2019-05-29 22:03:07.588019"], ["updated_at", "2019-05-29 22:03:07.588019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.589761', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.589448' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.589453') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.592518', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.592324' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.592331') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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) 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-05-29T22:03:07.595Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:07.597482"], ["created_at", "2019-05-29 22:03:07.597502"], ["updated_at", "2019-05-29 22:03:07.597502"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.599561', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.599299' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.599306') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.602586', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.602359' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.602367') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:07.607041', locked_by = 'host:Corey-Alexander-MBP15 pid:8273' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:07.606818' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:07.606827') OR locked_by = 'host:Corey-Alexander-MBP15 pid:8273') 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.1ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) ROLLBACK  (0.3ms) BEGIN  (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-05-29 22:03:07.932253"], ["created_at", "2019-05-29 22:03:07.932289"], ["updated_at", "2019-05-29 22:03:07.932289"]] 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\":\"e9618ba9-16de-4be0-a513-921940b5e655\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:07.934Z\",\"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-05-29 22:03:07.937833"], ["created_at", "2019-05-29 22:03:07.937865"], ["updated_at", "2019-05-29 22:03:07.937865"]]  (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.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-05-29 22:03:07.955843"], ["created_at", "2019-05-29 22:03:07.955882"], ["updated_at", "2019-05-29 22:03:07.955882"]] 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\":\"84ee9817-e029-4839-a90b-f7f892b09ef1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:07.958Z\",\"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-05-29 22:03:07.960120"], ["created_at", "2019-05-29 22:03:07.960159"], ["updated_at", "2019-05-29 22:03:07.960159"]]  (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.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-05-29 22:03:07.978803"], ["created_at", "2019-05-29 22:03:07.978865"], ["updated_at", "2019-05-29 22:03:07.978865"]] 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\":\"0899a708-eb47-4c8e-8664-db154265b32e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:07.982Z\",\"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-05-29 22:03:07.984325"], ["created_at", "2019-05-29 22:03:07.984377"], ["updated_at", "2019-05-29 22:03:07.984377"]]  (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-05-29 22:03:08.019811"], ["created_at", "2019-05-29 22:03:08.019848"], ["updated_at", "2019-05-29 22:03:08.019848"]] 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\":\"9a935fb7-0c39-418b-bbe1-7a37fcb2d167\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:08.022Z\",\"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-05-29 22:03:08.023524"], ["created_at", "2019-05-29 22:03:08.023547"], ["updated_at", "2019-05-29 22:03:08.023547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:03:08.037753"], ["created_at", "2019-05-29 22:03:08.037794"], ["updated_at", "2019-05-29 22:03:08.037794"]] 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\":\"1a09e320-f5d7-4897-93b4-10111f7f0924\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:08.040Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"12\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 22:03:08.041927"], ["created_at", "2019-05-29 22:03:08.041950"], ["updated_at", "2019-05-29 22:03:08.041950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-29 22:03:08.058532"], ["created_at", "2019-05-29 22:03:08.058569"], ["updated_at", "2019-05-29 22:03:08.058569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.8ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (3.5ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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-05-29 22:03:57.688480"], ["created_at", "2019-05-29 22:03:57.688524"], ["updated_at", "2019-05-29 22:03:57.688524"]] 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\":\"b6489b54-8a5c-4e1c-bc59-38baac369518\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:57.692Z\",\"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-05-29 22:03:57.695235"], ["created_at", "2019-05-29 22:03:57.695263"], ["updated_at", "2019-05-29 22:03:57.695263"]]  (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", 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-05-29 22:03:57.713894"], ["created_at", "2019-05-29 22:03:57.713936"], ["updated_at", "2019-05-29 22:03:57.713936"]] 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\":\"543b8cf2-ee9e-4b1c-988f-d5044209c588\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:57.716Z\",\"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-05-29 22:03:57.718352"], ["created_at", "2019-05-29 22:03:57.718376"], ["updated_at", "2019-05-29 22:03:57.718376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 3]]  (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-05-29 22:03:57.733977"], ["created_at", "2019-05-29 22:03:57.734013"], ["updated_at", "2019-05-29 22:03:57.734013"]] 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\":\"e8cd95c2-c1a6-4458-83f6-46dbc97da46b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:57.735Z\",\"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-05-29 22:03:57.737336"], ["created_at", "2019-05-29 22:03:57.737359"], ["updated_at", "2019-05-29 22:03:57.737359"]]  (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-05-29 22:03:57.752166"], ["created_at", "2019-05-29 22:03:57.752206"], ["updated_at", "2019-05-29 22:03:57.752206"]] 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\":\"2c431394-f48d-4b70-a603-a10614438e79\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:57.755Z\",\"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-05-29 22:03:57.757321"], ["created_at", "2019-05-29 22:03:57.757351"], ["updated_at", "2019-05-29 22:03:57.757351"]]  (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.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-05-29 22:03:57.773228"], ["created_at", "2019-05-29 22:03:57.773265"], ["updated_at", "2019-05-29 22:03:57.773265"]] 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\":\"c9b97ae3-f043-492d-a4b9-1a84a4bf2d50\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:03:57.775Z\",\"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-05-29 22:03:57.777643"], ["created_at", "2019-05-29 22:03:57.777674"], ["updated_at", "2019-05-29 22:03:57.777674"]]  (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-05-29 22:03:57.790688"], ["created_at", "2019-05-29 22:03:57.790732"], ["updated_at", "2019-05-29 22:03:57.790732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) 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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (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.3ms) BEGIN  (0.3ms) 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.2ms) 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.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.1ms) BEGIN  (0.1ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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.2ms) 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.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) 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-05-29T22:03:57.999Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:58.001974"], ["created_at", "2019-05-29 22:03:58.002003"], ["updated_at", "2019-05-29 22:03:58.002003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:58.003948', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.003427' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.003433') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:58.007203', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.006984' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.006992') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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.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-05-29T22:03:58.012Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:58.014611"], ["created_at", "2019-05-29 22:03:58.014643"], ["updated_at", "2019-05-29 22:03:58.014643"]]  (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-05-29 22:03:58.016948', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.016692' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.016699') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:58.019720', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.019523' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.019530') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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) 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-05-29T22:03:58.023Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:03:58.025377"], ["created_at", "2019-05-29 22:03:58.025408"], ["updated_at", "2019-05-29 22:03:58.025408"]]  (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-05-29 22:03:58.027708', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.027478' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.027485') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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-05-29 22:03:58.030343', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.030147' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.030153') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:58.034850', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.034596' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.034603') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:03:58.039263', locked_by = 'host:Corey-Alexander-MBP15 pid:9515' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:03:58.039035' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:03:58.039044') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9515') 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.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"  (3.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.8ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.6ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) 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.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.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.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:04:28.887584', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.886402' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.886422') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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-05-29 22:04:28.902823', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.901198' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.901207') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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.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-05-29T22:04:28.907Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:04:28.934039"], ["created_at", "2019-05-29 22:04:28.934082"], ["updated_at", "2019-05-29 22:04:28.934082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:04:28.936283', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.936032' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.936037') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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-05-29 22:04:28.939361', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.939162' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.939169') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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", 20]]  (0.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-05-29T22:04:28.944Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:04:28.946455"], ["created_at", "2019-05-29 22:04:28.946487"], ["updated_at", "2019-05-29 22:04:28.946487"]]  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:04:28.948812', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.948573' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.948579') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:04:28.951340', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.951151' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.951158') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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.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-05-29T22:04:28.954Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:04:28.956448"], ["created_at", "2019-05-29 22:04:28.956474"], ["updated_at", "2019-05-29 22:04:28.956474"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:04:28.958753', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.958490' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.958497') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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-05-29 22:04:28.961584', locked_by = 'host:Corey-Alexander-MBP15 pid:9996' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:04:28.961344' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:04:28.961352') OR locked_by = 'host:Corey-Alexander-MBP15 pid:9996') 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.1ms) ROLLBACK  (0.2ms) 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.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-05-29 22:04:28.985573"], ["created_at", "2019-05-29 22:04:28.985609"], ["updated_at", "2019-05-29 22:04:28.985609"]] 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\":\"c08dffa1-e429-4dc9-9c62-bc4383562bc5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:04:29.039Z\",\"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-05-29 22:04:29.042151"], ["created_at", "2019-05-29 22:04:29.042194"], ["updated_at", "2019-05-29 22:04:29.042194"]]  (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.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-05-29 22:04:29.057844"], ["created_at", "2019-05-29 22:04:29.057885"], ["updated_at", "2019-05-29 22:04:29.057885"]] 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\":\"9f88385e-14a8-405c-aea7-37700408627c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:04:29.060Z\",\"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-05-29 22:04:29.062119"], ["created_at", "2019-05-29 22:04:29.062145"], ["updated_at", "2019-05-29 22:04:29.062145"]]  (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-05-29 22:04:29.075568"], ["created_at", "2019-05-29 22:04:29.075604"], ["updated_at", "2019-05-29 22:04:29.075604"]] 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\":\"76b82b89-5a5d-40d3-818c-0c10ea643baa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:04:29.077Z\",\"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-05-29 22:04:29.079675"], ["created_at", "2019-05-29 22:04:29.079713"], ["updated_at", "2019-05-29 22:04:29.079713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (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-05-29 22:04:29.094473"], ["created_at", "2019-05-29 22:04:29.094503"], ["updated_at", "2019-05-29 22:04:29.094503"]] 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\":\"1b23fed4-e6bb-41a5-bc7a-cb0b4add792e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:04:29.096Z\",\"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-05-29 22:04:29.098514"], ["created_at", "2019-05-29 22:04:29.098544"], ["updated_at", "2019-05-29 22:04:29.098544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:04:29.112238"], ["created_at", "2019-05-29 22:04:29.112287"], ["updated_at", "2019-05-29 22:04:29.112287"]] 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\":\"4c2fbe74-e6a7-402b-b164-b5a056856866\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:04:29.115Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"12\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 22:04:29.117160"], ["created_at", "2019-05-29 22:04:29.117186"], ["updated_at", "2019-05-29 22:04:29.117186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.1ms) 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-05-29 22:04:29.132947"], ["created_at", "2019-05-29 22:04:29.132986"], ["updated_at", "2019-05-29 22:04:29.132986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN  (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" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (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.1ms) 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.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.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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) 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.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.7ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.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  (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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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-05-29 22:05:17.884896', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.884322' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.884337') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') 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.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-05-29T22:05:17.888Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:17.900745"], ["created_at", "2019-05-29 22:05:17.900783"], ["updated_at", "2019-05-29 22:05:17.900783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:17.902691', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.902467' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.902472') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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-05-29 22:05:17.905633', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.905338' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.905347') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') 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) 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.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-05-29T22:05:17.910Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:17.912218"], ["created_at", "2019-05-29 22:05:17.912242"], ["updated_at", "2019-05-29 22:05:17.912242"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:17.914309', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.914099' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.914106') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:17.916764', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.916540' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.916559') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') 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) 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-05-29T22:05:17.919Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:17.921450"], ["created_at", "2019-05-29 22:05:17.921475"], ["updated_at", "2019-05-29 22:05:17.921475"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:17.923504', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.923285' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.923292') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:17.926325', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.926114' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.926122') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.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-05-29 22:05:17.931154', locked_by = 'host:Corey-Alexander-MBP15 pid:11528' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:17.930896' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:17.930903') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11528') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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-05-29 22:05:17.999903"], ["created_at", "2019-05-29 22:05:17.999950"], ["updated_at", "2019-05-29 22:05:17.999950"]] 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\":\"570a94e2-048b-4862-85c1-4fcda32d2f22\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:18.003Z\",\"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-05-29 22:05:18.005645"], ["created_at", "2019-05-29 22:05:18.005678"], ["updated_at", "2019-05-29 22:05:18.005678"]]  (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-05-29 22:05:18.019960"], ["created_at", "2019-05-29 22:05:18.019994"], ["updated_at", "2019-05-29 22:05:18.019994"]] 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\":\"857f55e2-d623-4c07-abee-47fe8f361088\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:18.022Z\",\"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-05-29 22:05:18.024564"], ["created_at", "2019-05-29 22:05:18.024597"], ["updated_at", "2019-05-29 22:05:18.024597"]]  (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.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-05-29 22:05:18.041893"], ["created_at", "2019-05-29 22:05:18.041932"], ["updated_at", "2019-05-29 22:05:18.041932"]] 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\":\"52db6a73-7594-4086-8675-503ba84b1dd9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:18.044Z\",\"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-05-29 22:05:18.045613"], ["created_at", "2019-05-29 22:05:18.045635"], ["updated_at", "2019-05-29 22:05:18.045635"]]  (0.1ms) 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.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-05-29 22:05:18.062475"], ["created_at", "2019-05-29 22:05:18.062514"], ["updated_at", "2019-05-29 22:05:18.062514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (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-05-29 22:05:18.079702"], ["created_at", "2019-05-29 22:05:18.079745"], ["updated_at", "2019-05-29 22:05:18.079745"]] 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\":\"24e5ad3c-e097-494f-b807-4f41659cec93\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:18.082Z\",\"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-05-29 22:05:18.084732"], ["created_at", "2019-05-29 22:05:18.084761"], ["updated_at", "2019-05-29 22:05:18.084761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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.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-05-29 22:05:18.119394"], ["created_at", "2019-05-29 22:05:18.119436"], ["updated_at", "2019-05-29 22:05:18.119436"]] 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\":\"a2d4fb9e-172c-4b6a-9da5-f1f670fd3c44\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:18.121Z\",\"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-05-29 22:05:18.123588"], ["created_at", "2019-05-29 22:05:18.123611"], ["updated_at", "2019-05-29 22:05:18.123611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (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.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.0ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.7ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.4ms) 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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) 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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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-05-29 22:05:45.136249"], ["created_at", "2019-05-29 22:05:45.136297"], ["updated_at", "2019-05-29 22:05:45.136297"]] 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\":\"8df9d197-d6ea-4c4f-b8c7-4a385885bc9b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:45.247Z\",\"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-05-29 22:05:45.250412"], ["created_at", "2019-05-29 22:05:45.250450"], ["updated_at", "2019-05-29 22:05:45.250450"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.5ms) 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.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-05-29 22:05:45.267055"], ["created_at", "2019-05-29 22:05:45.267092"], ["updated_at", "2019-05-29 22:05:45.267092"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 22:05:45.283930"], ["created_at", "2019-05-29 22:05:45.283972"], ["updated_at", "2019-05-29 22:05:45.283972"]] 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\":\"ca2d8a82-78ff-420c-8827-0078e13bba2e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:45.286Z\",\"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-05-29 22:05:45.288699"], ["created_at", "2019-05-29 22:05:45.288728"], ["updated_at", "2019-05-29 22:05:45.288728"]]  (0.2ms) 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-05-29 22:05:45.302414"], ["created_at", "2019-05-29 22:05:45.302448"], ["updated_at", "2019-05-29 22:05:45.302448"]] 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\":\"9c1d45cc-4cca-4847-bd2b-af35476bc62b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:45.305Z\",\"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-05-29 22:05:45.307238"], ["created_at", "2019-05-29 22:05:45.307270"], ["updated_at", "2019-05-29 22:05:45.307270"]]  (0.2ms) 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-05-29 22:05:45.321359"], ["created_at", "2019-05-29 22:05:45.321394"], ["updated_at", "2019-05-29 22:05:45.321394"]] 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\":\"392c65de-7e14-4a4a-a5c2-8fe0d1b73498\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:45.323Z\",\"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-05-29 22:05:45.325815"], ["created_at", "2019-05-29 22:05:45.325859"], ["updated_at", "2019-05-29 22:05:45.325859"]]  (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.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-05-29 22:05:45.343078"], ["created_at", "2019-05-29 22:05:45.343113"], ["updated_at", "2019-05-29 22:05:45.343113"]] 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\":\"cab99ddf-b09f-42aa-add5-adabc5cb1681\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:05:45.345Z\",\"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-05-29 22:05:45.346828"], ["created_at", "2019-05-29 22:05:45.346850"], ["updated_at", "2019-05-29 22:05:45.346850"]]  (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.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.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.1ms) 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.2ms) ROLLBACK  (0.1ms) 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.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.1ms) 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-05-29 22:05:45.469365', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.468781' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.468794') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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-05-29 22:05:45.476385', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.476122' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.476128') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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-05-29T22:05:45.478Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:45.480682"], ["created_at", "2019-05-29 22:05:45.480721"], ["updated_at", "2019-05-29 22:05:45.480721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:45.482301', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.482106' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.482111') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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-05-29 22:05:45.485123', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.484927' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.484934') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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", 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-05-29T22:05:45.512Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:45.514897"], ["created_at", "2019-05-29 22:05:45.514929"], ["updated_at", "2019-05-29 22:05:45.514929"]]  (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-05-29 22:05:45.517474', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.517214' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.517220') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:45.520453', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.520179' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.520190') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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) 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-05-29T22:05:45.523Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:05:45.525867"], ["created_at", "2019-05-29 22:05:45.525891"], ["updated_at", "2019-05-29 22:05:45.525891"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:45.527896', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.527695' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.527700') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:05:45.530322', locked_by = 'host:Corey-Alexander-MBP15 pid:11969' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:05:45.530139' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:05:45.530145') OR locked_by = 'host:Corey-Alexander-MBP15 pid:11969') 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.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (2.6ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.2ms) 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-05-29 22:06:28.429400"], ["created_at", "2019-05-29 22:06:28.429451"], ["updated_at", "2019-05-29 22:06:28.429451"]] 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\":\"65f45005-24c5-4bc1-beda-20410a827cc0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:28.529Z\",\"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-05-29 22:06:28.542438"], ["created_at", "2019-05-29 22:06:28.542476"], ["updated_at", "2019-05-29 22:06:28.542476"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 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-05-29 22:06:28.576373"], ["created_at", "2019-05-29 22:06:28.576409"], ["updated_at", "2019-05-29 22:06:28.576409"]] 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\":\"c1634355-b31a-4dda-8541-5cb782888752\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:28.578Z\",\"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-05-29 22:06:28.579882"], ["created_at", "2019-05-29 22:06:28.579912"], ["updated_at", "2019-05-29 22:06:28.579912"]]  (0.3ms) 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-05-29 22:06:28.597122"], ["created_at", "2019-05-29 22:06:28.597164"], ["updated_at", "2019-05-29 22:06:28.597164"]] 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\":\"d7b25f8c-3649-40e3-95be-971aeadda2c2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:28.599Z\",\"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-05-29 22:06:28.601206"], ["created_at", "2019-05-29 22:06:28.601233"], ["updated_at", "2019-05-29 22:06:28.601233"]]  (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.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-05-29 22:06:28.617428"], ["created_at", "2019-05-29 22:06:28.617470"], ["updated_at", "2019-05-29 22:06:28.617470"]] 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\":\"7c63fb85-fce0-4681-98e7-81630c928dad\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:28.619Z\",\"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-05-29 22:06:28.621386"], ["created_at", "2019-05-29 22:06:28.621423"], ["updated_at", "2019-05-29 22:06:28.621423"]]  (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.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-05-29 22:06:28.638559"], ["created_at", "2019-05-29 22:06:28.638598"], ["updated_at", "2019-05-29 22:06:28.638598"]] 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\":\"c3b97dbc-b3e7-49d6-a826-61b538d9cadb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:28.640Z\",\"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-05-29 22:06:28.642361"], ["created_at", "2019-05-29 22:06:28.642383"], ["updated_at", "2019-05-29 22:06:28.642383"]]  (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-05-29 22:06:28.657537"], ["created_at", "2019-05-29 22:06:28.657584"], ["updated_at", "2019-05-29 22:06:28.657584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "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.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.1ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) 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.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.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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-05-29 22:06:28.874535', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.873997' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.874012') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.880662', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.880386' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.880396') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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.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-05-29T22:06:28.905Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:28.907733"], ["created_at", "2019-05-29 22:06:28.907765"], ["updated_at", "2019-05-29 22:06:28.907765"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.909918', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.909694' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.909699') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.912569', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.912372' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.912378') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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-05-29T22:06:28.914Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:28.916768"], ["created_at", "2019-05-29 22:06:28.916791"], ["updated_at", "2019-05-29 22:06:28.916791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.918332', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.918097' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.918103') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.920880', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.920616' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.920624') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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) 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-05-29T22:06:28.924Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:28.925960"], ["created_at", "2019-05-29 22:06:28.925990"], ["updated_at", "2019-05-29 22:06:28.925990"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.928067', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.927838' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.927844') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:28.930727', locked_by = 'host:Corey-Alexander-MBP15 pid:13487' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:28.930485' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:28.930494') OR locked_by = 'host:Corey-Alexander-MBP15 pid:13487') 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) 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.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.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.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.5ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (3.7ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) 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.2ms) BEGIN  (0.2ms) COMMIT  (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.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.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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-05-29T22:06:48.672Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:48.685811"], ["created_at", "2019-05-29 22:06:48.685857"], ["updated_at", "2019-05-29 22:06:48.685857"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.689200', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.688710' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.688719') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.692786', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.692556' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.692565') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') 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.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-05-29T22:06:48.695Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:48.696977"], ["created_at", "2019-05-29 22:06:48.696999"], ["updated_at", "2019-05-29 22:06:48.696999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.698385', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.698167' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.698173') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.700974', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.700752' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.700760') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') 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) 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-05-29T22:06:48.704Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:06:48.706915"], ["created_at", "2019-05-29 22:06:48.706944"], ["updated_at", "2019-05-29 22:06:48.706944"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.709176', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.708930' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.708937') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.711912', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.711667' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.711677') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.717363', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.716920' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.716935') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:06:48.722366', locked_by = 'host:Corey-Alexander-MBP15 pid:14249' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:06:48.722130' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:06:48.722142') OR locked_by = 'host:Corey-Alexander-MBP15 pid:14249') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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-05-29 22:06:48.744386"], ["created_at", "2019-05-29 22:06:48.744426"], ["updated_at", "2019-05-29 22:06:48.744426"]] 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\":\"8d7e173d-dc3d-4ea3-9ce5-9ce1c575b71f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:48.825Z\",\"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-05-29 22:06:48.832685"], ["created_at", "2019-05-29 22:06:48.832722"], ["updated_at", "2019-05-29 22:06:48.832722"]]  (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-05-29 22:06:48.863162"], ["created_at", "2019-05-29 22:06:48.863208"], ["updated_at", "2019-05-29 22:06:48.863208"]] 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\":\"611758ec-55fd-4757-a561-b818c41c7f24\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:48.865Z\",\"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-05-29 22:06:48.871640"], ["created_at", "2019-05-29 22:06:48.871678"], ["updated_at", "2019-05-29 22:06:48.871678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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-05-29 22:06:48.903726"], ["created_at", "2019-05-29 22:06:48.903768"], ["updated_at", "2019-05-29 22:06:48.903768"]] 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\":\"16eff42f-25c3-4d16-b6d1-fa553de833e5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:48.905Z\",\"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-05-29 22:06:48.907452"], ["created_at", "2019-05-29 22:06:48.907476"], ["updated_at", "2019-05-29 22:06:48.907476"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.1ms) 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-05-29 22:06:48.921687"], ["created_at", "2019-05-29 22:06:48.921731"], ["updated_at", "2019-05-29 22:06:48.921731"]] 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\":\"4e9e760e-c464-4824-a943-e707efa4331a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:48.924Z\",\"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-05-29 22:06:48.925979"], ["created_at", "2019-05-29 22:06:48.926017"], ["updated_at", "2019-05-29 22:06:48.926017"]]  (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-05-29 22:06:48.940648"], ["created_at", "2019-05-29 22:06:48.940687"], ["updated_at", "2019-05-29 22:06:48.940687"]] 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\":\"353aa0a5-29ef-4f76-bd22-a2de2f5c4e81\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:06:48.942Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"12\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 22:06:48.944249"], ["created_at", "2019-05-29 22:06:48.944272"], ["updated_at", "2019-05-29 22:06:48.944272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-29 22:06:48.959418"], ["created_at", "2019-05-29 22:06:48.959459"], ["updated_at", "2019-05-29 22:06:48.959459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.2ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) 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.1ms) ROLLBACK  (0.2ms) 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.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.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.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.1ms) 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.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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")  (1.8ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.8ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) 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.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  (2.8ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.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.2ms) 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.2ms) ROLLBACK  (0.2ms) 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.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.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.2ms) 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-05-29 22:07:18.682501', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.681992' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.682005') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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-05-29 22:07:18.689072', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.688837' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.688847') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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.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-05-29T22:07:18.691Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:18.703165"], ["created_at", "2019-05-29 22:07:18.703205"], ["updated_at", "2019-05-29 22:07:18.703205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:18.705317', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.705089' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.705094') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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-05-29 22:07:18.708351', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.708106' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.708116') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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.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-05-29T22:07:18.713Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:18.715610"], ["created_at", "2019-05-29 22:07:18.715639"], ["updated_at", "2019-05-29 22:07:18.715639"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:18.718024', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.717769' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.717777') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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-05-29 22:07:18.720913', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.720663' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.720673') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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.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-05-29T22:07:18.724Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:18.726622"], ["created_at", "2019-05-29 22:07:18.726647"], ["updated_at", "2019-05-29 22:07:18.726647"]]  (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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:18.728852', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.728618' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.728631') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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.2ms) 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-05-29 22:07:18.731375', locked_by = 'host:Corey-Alexander-MBP15 pid:16133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:18.731196' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:18.731202') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16133') 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.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.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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-05-29 22:07:18.828661"], ["created_at", "2019-05-29 22:07:18.828695"], ["updated_at", "2019-05-29 22:07:18.828695"]] 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\":\"b2466778-6db8-4e76-9235-4cd3da7a3193\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:18.830Z\",\"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-05-29 22:07:18.833208"], ["created_at", "2019-05-29 22:07:18.833248"], ["updated_at", "2019-05-29 22:07:18.833248"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:07:18.846947"], ["created_at", "2019-05-29 22:07:18.846982"], ["updated_at", "2019-05-29 22:07:18.846982"]] 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\":\"0d11129a-4721-4526-b3af-11dd00399cbb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:18.848Z\",\"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-05-29 22:07:18.850528"], ["created_at", "2019-05-29 22:07:18.850551"], ["updated_at", "2019-05-29 22:07:18.850551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (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-05-29 22:07:18.884096"], ["created_at", "2019-05-29 22:07:18.884135"], ["updated_at", "2019-05-29 22:07:18.884135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (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-05-29 22:07:18.899778"], ["created_at", "2019-05-29 22:07:18.899818"], ["updated_at", "2019-05-29 22:07:18.899818"]] 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\":\"2c2e5e81-70df-4ef3-b5de-9b413fb4646b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:18.902Z\",\"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-05-29 22:07:18.904503"], ["created_at", "2019-05-29 22:07:18.904533"], ["updated_at", "2019-05-29 22:07:18.904533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-29 22:07:18.917455"], ["created_at", "2019-05-29 22:07:18.917492"], ["updated_at", "2019-05-29 22:07:18.917492"]] 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\":\"d7ae0a3b-eedf-4710-89ac-c5782bd7ad48\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:18.919Z\",\"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-05-29 22:07:18.921696"], ["created_at", "2019-05-29 22:07:18.921729"], ["updated_at", "2019-05-29 22:07:18.921729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-29 22:07:18.937044"], ["created_at", "2019-05-29 22:07:18.937083"], ["updated_at", "2019-05-29 22:07:18.937083"]] 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\":\"f8071402-db1e-4ceb-b164-5d72f9d64dee\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:18.939Z\",\"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-05-29 22:07:18.940926"], ["created_at", "2019-05-29 22:07:18.940952"], ["updated_at", "2019-05-29 22:07:18.940952"]]  (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.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"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (1.6ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.9ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) 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.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.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.1ms) BEGIN # Update All (0.6ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.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-05-29 22:07:27.747316"], ["created_at", "2019-05-29 22:07:27.747367"], ["updated_at", "2019-05-29 22:07:27.747367"]] 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\":\"ab35c8aa-4a32-4ce2-9533-0d0e714464c7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:27.860Z\",\"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-05-29 22:07:27.863733"], ["created_at", "2019-05-29 22:07:27.863765"], ["updated_at", "2019-05-29 22:07:27.863765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) 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-05-29 22:07:27.879177"], ["created_at", "2019-05-29 22:07:27.879214"], ["updated_at", "2019-05-29 22:07:27.879214"]] 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\":\"1a4cb04e-cda4-4d1e-9e98-f377646a9293\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:27.881Z\",\"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-05-29 22:07:27.882754"], ["created_at", "2019-05-29 22:07:27.882781"], ["updated_at", "2019-05-29 22:07:27.882781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 3]]  (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-05-29 22:07:27.898207"], ["created_at", "2019-05-29 22:07:27.898249"], ["updated_at", "2019-05-29 22:07:27.898249"]] 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\":\"f7426750-d209-4c5e-8c38-2bcd8be30912\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:27.901Z\",\"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-05-29 22:07:27.902957"], ["created_at", "2019-05-29 22:07:27.902986"], ["updated_at", "2019-05-29 22:07:27.902986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:07:27.915596"], ["created_at", "2019-05-29 22:07:27.915626"], ["updated_at", "2019-05-29 22:07:27.915626"]]  (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.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-05-29 22:07:27.932828"], ["created_at", "2019-05-29 22:07:27.932874"], ["updated_at", "2019-05-29 22:07:27.932874"]] 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\":\"fb6e3c75-c8a2-4b89-916c-9d8444afc17d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:27.935Z\",\"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-05-29 22:07:27.937125"], ["created_at", "2019-05-29 22:07:27.937148"], ["updated_at", "2019-05-29 22:07:27.937148"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (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-05-29 22:07:27.954385"], ["created_at", "2019-05-29 22:07:27.954422"], ["updated_at", "2019-05-29 22:07:27.954422"]] 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\":\"b071bdc6-7bfe-4824-b4d7-a441f1e94180\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:07:27.956Z\",\"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-05-29 22:07:27.958264"], ["created_at", "2019-05-29 22:07:27.958289"], ["updated_at", "2019-05-29 22:07:27.958289"]]  (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.1ms) 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.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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.7ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.063097', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.062611' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.062623') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.069711', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.069476' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.069484') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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", 20]]  (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-05-29T22:07:28.074Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:28.076332"], ["created_at", "2019-05-29 22:07:28.076360"], ["updated_at", "2019-05-29 22:07:28.076360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.078472', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.078233' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.078240') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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-05-29 22:07:28.081201', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.080973' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.080982') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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" ("priority", "handler", "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-05-29T22:07:28.083Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:28.085965"], ["created_at", "2019-05-29 22:07:28.086000"], ["updated_at", "2019-05-29 22:07:28.086000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.087727', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.087481' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.087487') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.090655', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.090437' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.090445') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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-05-29T22:07:28.093Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:07:28.095802"], ["created_at", "2019-05-29 22:07:28.095828"], ["updated_at", "2019-05-29 22:07:28.095828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-29 22:07:28.098091', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.097748' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.097755') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:07:28.101356', locked_by = 'host:Corey-Alexander-MBP15 pid:16257' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:07:28.101078' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:07:28.101088') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16257') 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) ROLLBACK  (0.2ms) 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.4ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.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.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.3ms) 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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:18:22.569545', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.568921' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.568926') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') 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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:18:22.578617', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.578314' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.578319') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.7ms) 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-05-29T22:18:22.581Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:18:22.595332"], ["created_at", "2019-05-29 22:18:22.595375"], ["updated_at", "2019-05-29 22:18:22.595375"]]  (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-05-29 22:18:22.598357', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.598131' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.598136') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') 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-05-29 22:18:22.601264', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.601080' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.601086') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:18:22.604718', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.604498' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.604502') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:18:22.608425', locked_by = 'host:Corey-Alexander-MBP15 pid:25339' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:18:22.608098' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:18:22.608115') OR locked_by = 'host:Corey-Alexander-MBP15 pid:25339') 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.1ms) BEGIN  (0.3ms) 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.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.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.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.1ms) 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.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) 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) 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-05-29 22:18:22.761959"], ["created_at", "2019-05-29 22:18:22.762000"], ["updated_at", "2019-05-29 22:18:22.762000"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"67f905c6-30a2-4cb4-8c94-b0cd89021915\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:18:22.764Z\",\"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-05-29 22:18:22.768778"], ["created_at", "2019-05-29 22:18:22.768805"], ["updated_at", "2019-05-29 22:18:22.768805"]]  (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-05-29 22:18:22.784142"], ["created_at", "2019-05-29 22:18:22.784178"], ["updated_at", "2019-05-29 22:18:22.784178"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"daf16210-bd97-40b2-b98a-e65216a652c8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:18:22.786Z\",\"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-05-29 22:18:22.787749"], ["created_at", "2019-05-29 22:18:22.787771"], ["updated_at", "2019-05-29 22:18:22.787771"]]  (0.2ms) ROLLBACK TO 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-05-29 22:18:22.802646"], ["created_at", "2019-05-29 22:18:22.802680"], ["updated_at", "2019-05-29 22:18:22.802680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 22:18:22.819884"], ["created_at", "2019-05-29 22:18:22.819920"], ["updated_at", "2019-05-29 22:18:22.819920"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"e4fa131a-6253-4fd9-afea-2788750eb7c5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:18:22.822Z\",\"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-05-29 22:18:22.823867"], ["created_at", "2019-05-29 22:18:22.823894"], ["updated_at", "2019-05-29 22:18:22.823894"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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-05-29 22:18:22.856588"], ["created_at", "2019-05-29 22:18:22.856623"], ["updated_at", "2019-05-29 22:18:22.856623"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"4fb4e780-7f43-49ef-a305-1cf60d84c76f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:18:22.859Z\",\"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-05-29 22:18:22.861055"], ["created_at", "2019-05-29 22:18:22.861085"], ["updated_at", "2019-05-29 22:18:22.861085"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) 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-05-29 22:18:22.877000"], ["created_at", "2019-05-29 22:18:22.877043"], ["updated_at", "2019-05-29 22:18:22.877043"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"9ec0a0c5-7ecf-4fd3-bd49-5042dadb9431\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:18:22.880Z\",\"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-05-29 22:18:22.881668"], ["created_at", "2019-05-29 22:18:22.881692"], ["updated_at", "2019-05-29 22:18:22.881692"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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  (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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:19:59.177823', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.177208' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.177215') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:19:59.184000', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.183756' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.183762') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:19:59.190726', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.190462' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.190471') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.7ms) 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-05-29T22:19:59.193Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:19:59.206282"], ["created_at", "2019-05-29 22:19:59.206320"], ["updated_at", "2019-05-29 22:19:59.206320"]]  (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-05-29 22:19:59.209261', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.209022' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.209029') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:19:59.212332', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.212129' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.212136') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') 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-05-29 22:19:59.215945', locked_by = 'host:Corey-Alexander-MBP15 pid:27607' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:19:59.215554' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:19:59.215580') OR locked_by = 'host:Corey-Alexander-MBP15 pid:27607') 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.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) 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.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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-05-29 22:19:59.270420"], ["created_at", "2019-05-29 22:19:59.270458"], ["updated_at", "2019-05-29 22:19:59.270458"]] Delayed::Backend::ActiveRecord::Job Create (41.6ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"24f4927e-f852-4410-9a1d-445bb2385967\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:19:59.330Z\",\"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-05-29 22:19:59.333593"], ["created_at", "2019-05-29 22:19:59.333633"], ["updated_at", "2019-05-29 22:19:59.333633"]]  (0.4ms) ROLLBACK TO 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-05-29 22:19:59.392786"], ["created_at", "2019-05-29 22:19:59.392822"], ["updated_at", "2019-05-29 22:19:59.392822"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"4116ee39-c0c3-40b7-a2e4-3e7b518b2d8a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:19:59.394Z\",\"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-05-29 22:19:59.396493"], ["created_at", "2019-05-29 22:19:59.396517"], ["updated_at", "2019-05-29 22:19:59.396517"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_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-05-29 22:19:59.411301"], ["created_at", "2019-05-29 22:19:59.411334"], ["updated_at", "2019-05-29 22:19:59.411334"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"cea43694-e470-478c-9fd3-3b18d96b3615\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:19:59.413Z\",\"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-05-29 22:19:59.415269"], ["created_at", "2019-05-29 22:19:59.415296"], ["updated_at", "2019-05-29 22:19:59.415296"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) 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-05-29 22:19:59.428299"], ["created_at", "2019-05-29 22:19:59.428335"], ["updated_at", "2019-05-29 22:19:59.428335"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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.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-05-29 22:19:59.444404"], ["created_at", "2019-05-29 22:19:59.444441"], ["updated_at", "2019-05-29 22:19:59.444441"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"7b923ff8-16bc-4c1e-8068-db813743a5fc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:19:59.446Z\",\"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-05-29 22:19:59.448226"], ["created_at", "2019-05-29 22:19:59.448256"], ["updated_at", "2019-05-29 22:19:59.448256"]]  (0.2ms) ROLLBACK TO 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-05-29 22:19:59.462526"], ["created_at", "2019-05-29 22:19:59.462564"], ["updated_at", "2019-05-29 22:19:59.462564"]] 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", nil], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"163edaae-cf32-4ae1-88de-3b4318cb339b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:19:59.464Z\",\"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-05-29 22:19:59.466772"], ["created_at", "2019-05-29 22:19:59.466822"], ["updated_at", "2019-05-29 22:19:59.466822"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) 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.2ms) 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.1ms) 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.2ms) ROLLBACK  (0.1ms) 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.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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (41.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:20:46.685964', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.685191' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.685204') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:20:46.693400', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.693067' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.693075') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:20:46.699796', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.699530' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.699539') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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) 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 (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-05-29T22:20:46.703Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:20:46.716244"], ["created_at", "2019-05-29 22:20:46.716293"], ["updated_at", "2019-05-29 22:20:46.716293"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:20:46.720037', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.719770' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.719781') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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-05-29 22:20:46.723142', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.722926' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.722934') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:20:46.726759', locked_by = 'host:Corey-Alexander-MBP15 pid:28840' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:20:46.726541' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:20:46.726548') OR locked_by = 'host:Corey-Alexander-MBP15 pid:28840') 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) 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.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) 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.1ms) 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.1ms) 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.1ms) 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.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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" 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 "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) 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-05-29 22:20:46.995453"], ["created_at", "2019-05-29 22:20:46.995502"], ["updated_at", "2019-05-29 22:20:46.995502"]] 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\":\"8b0fc487-c035-4ac3-8745-f4809753dce3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:20:47.057Z\",\"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-05-29 22:20:47.059617"], ["created_at", "2019-05-29 22:20:47.059655"], ["updated_at", "2019-05-29 22:20:47.059655"]]  (0.2ms) 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-05-29 22:20:47.073359"], ["created_at", "2019-05-29 22:20:47.073395"], ["updated_at", "2019-05-29 22:20:47.073395"]] 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\":\"10167b35-ca16-425a-89d7-b0d8f5000c0d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:20:47.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-05-29 22:20:47.077335"], ["created_at", "2019-05-29 22:20:47.077360"], ["updated_at", "2019-05-29 22:20:47.077360"]]  (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.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-05-29 22:20:47.094044"], ["created_at", "2019-05-29 22:20:47.094084"], ["updated_at", "2019-05-29 22:20:47.094084"]] 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\":\"40690c79-f6b0-4115-a94c-e9f2a86953e3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:20:47.095Z\",\"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-05-29 22:20:47.097485"], ["created_at", "2019-05-29 22:20:47.097506"], ["updated_at", "2019-05-29 22:20:47.097506"]]  (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.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-05-29 22:20:47.113433"], ["created_at", "2019-05-29 22:20:47.113474"], ["updated_at", "2019-05-29 22:20:47.113474"]] 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\":\"1c6d8c21-77ba-41af-88f0-ba7e4e435d90\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:20:47.115Z\",\"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-05-29 22:20:47.117615"], ["created_at", "2019-05-29 22:20:47.117648"], ["updated_at", "2019-05-29 22:20:47.117648"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:20:47.131004"], ["created_at", "2019-05-29 22:20:47.131051"], ["updated_at", "2019-05-29 22:20:47.131051"]]  (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.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-05-29 22:20:47.147684"], ["created_at", "2019-05-29 22:20:47.147716"], ["updated_at", "2019-05-29 22:20:47.147716"]] 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\":\"ea5a2c5e-6369-4b78-b679-de31f0ec5896\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:20:47.149Z\",\"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-05-29 22:20:47.171545"], ["created_at", "2019-05-29 22:20:47.171583"], ["updated_at", "2019-05-29 22:20:47.171583"]]  (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.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.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.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.6ms) 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.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.2ms) 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.2ms) 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-05-29 22:22:03.780504"], ["created_at", "2019-05-29 22:22:03.780547"], ["updated_at", "2019-05-29 22:22:03.780547"]] 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\":\"dbaceb60-28cf-4d7c-9bd6-2596ccdd5c40\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:03.856Z\",\"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-05-29 22:22:03.860974"], ["created_at", "2019-05-29 22:22:03.861021"], ["updated_at", "2019-05-29 22:22:03.861021"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 # Update (0.6ms) 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-05-29 22:22:03.901583"], ["created_at", "2019-05-29 22:22:03.901621"], ["updated_at", "2019-05-29 22:22:03.901621"]] 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\":\"9965ac6f-03f9-4e2d-8f1a-dc69e7a873a0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:03.903Z\",\"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-05-29 22:22:03.905468"], ["created_at", "2019-05-29 22:22:03.905494"], ["updated_at", "2019-05-29 22:22:03.905494"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:22:03.922340"], ["created_at", "2019-05-29 22:22:03.922387"], ["updated_at", "2019-05-29 22:22:03.922387"]] 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\":\"b2e05023-a5b1-4667-8d6b-fa8c43927c06\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:03.925Z\",\"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-05-29 22:22:03.927204"], ["created_at", "2019-05-29 22:22:03.927230"], ["updated_at", "2019-05-29 22:22:03.927230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["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-05-29 22:22:03.944956"], ["created_at", "2019-05-29 22:22:03.944995"], ["updated_at", "2019-05-29 22:22:03.944995"]]  (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-05-29 22:22:03.961829"], ["created_at", "2019-05-29 22:22:03.961870"], ["updated_at", "2019-05-29 22:22:03.961870"]] 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\":\"c633cdc3-74e3-4725-a4b1-fdc0f31fc38e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:03.964Z\",\"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-05-29 22:22:03.965818"], ["created_at", "2019-05-29 22:22:03.965845"], ["updated_at", "2019-05-29 22:22:03.965845"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:22:03.982303"], ["created_at", "2019-05-29 22:22:03.982348"], ["updated_at", "2019-05-29 22:22:03.982348"]] 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\":\"a88fc73a-f85f-4a52-a0a9-462a0b8511b1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:03.985Z\",\"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-05-29 22:22:03.987611"], ["created_at", "2019-05-29 22:22:03.987636"], ["updated_at", "2019-05-29 22:22:03.987636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:04.096972', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.096360' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.096373') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:04.100700', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.100432' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.100437') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') 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) 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-05-29 22:22:04.106695', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.106483' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.106489') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') 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) 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-05-29T22:22:04.110Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:22:04.112811"], ["created_at", "2019-05-29 22:22:04.112847"], ["updated_at", "2019-05-29 22:22:04.112847"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:04.115251', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.114991' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.115000') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:04.118301', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.118054' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.118064') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') 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 (21.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:04.122360', locked_by = 'host:Corey-Alexander-MBP15 pid:31392' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:04.122055' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:04.122063') OR locked_by = 'host:Corey-Alexander-MBP15 pid:31392') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) 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.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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (41.9ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (5.4ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 # Create (1.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-05-29 22:22:59.315659"], ["created_at", "2019-05-29 22:22:59.315716"], ["updated_at", "2019-05-29 22:22:59.315716"]] 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\":\"e6c953c2-24d4-4c19-8917-3a95c1c6e3bd\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:59.424Z\",\"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-05-29 22:22:59.439806"], ["created_at", "2019-05-29 22:22:59.439841"], ["updated_at", "2019-05-29 22:22:59.439841"]]  (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.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-05-29 22:22:59.475518"], ["created_at", "2019-05-29 22:22:59.475554"], ["updated_at", "2019-05-29 22:22:59.475554"]] 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\":\"78862892-57a6-4423-9ec3-dde8705fec54\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:59.477Z\",\"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-05-29 22:22:59.479717"], ["created_at", "2019-05-29 22:22:59.479768"], ["updated_at", "2019-05-29 22:22:59.479768"]]  (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.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-05-29 22:22:59.496833"], ["created_at", "2019-05-29 22:22:59.496868"], ["updated_at", "2019-05-29 22:22:59.496868"]] 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\":\"28eda918-2c7b-47d2-8530-45470d967aa2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:59.499Z\",\"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-05-29 22:22:59.501042"], ["created_at", "2019-05-29 22:22:59.501068"], ["updated_at", "2019-05-29 22:22:59.501068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:22:59.515578"], ["created_at", "2019-05-29 22:22:59.515616"], ["updated_at", "2019-05-29 22:22:59.515616"]]  (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.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-05-29 22:22:59.532927"], ["created_at", "2019-05-29 22:22:59.532984"], ["updated_at", "2019-05-29 22:22:59.532984"]] 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\":\"79af8556-6761-4566-aba9-9776e369c311\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:59.537Z\",\"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-05-29 22:22:59.539338"], ["created_at", "2019-05-29 22:22:59.539367"], ["updated_at", "2019-05-29 22:22:59.539367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.1ms) 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-05-29 22:22:59.557459"], ["created_at", "2019-05-29 22:22:59.557494"], ["updated_at", "2019-05-29 22:22:59.557494"]] 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\":\"7dccc6d1-cfe4-4b1e-b5a5-82c498bbed63\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:22:59.559Z\",\"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-05-29 22:22:59.561234"], ["created_at", "2019-05-29 22:22:59.561253"], ["updated_at", "2019-05-29 22:22:59.561253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) 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.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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.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.1ms) 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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:59.756984', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.756338' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.756350') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:59.760634', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.760294' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.760300') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') 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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:59.767754', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.767457' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.767463') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') 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) 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-05-29T22:22:59.771Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:22:59.774067"], ["created_at", "2019-05-29 22:22:59.774096"], ["updated_at", "2019-05-29 22:22:59.774096"]]  (0.1ms) 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:59.776189', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.775968' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.775974') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') 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-05-29 22:22:59.778961', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.778770' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.778777') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:22:59.782212', locked_by = 'host:Corey-Alexander-MBP15 pid:32430' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:22:59.782024' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:22:59.782029') OR locked_by = 'host:Corey-Alexander-MBP15 pid:32430') 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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.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)  (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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.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-05-29 22:24:06.046116"], ["created_at", "2019-05-29 22:24:06.046170"], ["updated_at", "2019-05-29 22:24:06.046170"]] 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\":\"e1038ac5-cdb6-470d-a4db-a498ec0d4361\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:06.148Z\",\"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-05-29 22:24:06.161019"], ["created_at", "2019-05-29 22:24:06.161055"], ["updated_at", "2019-05-29 22:24:06.161055"]]  (0.2ms) 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-05-29 22:24:06.188619"], ["created_at", "2019-05-29 22:24:06.188670"], ["updated_at", "2019-05-29 22:24:06.188670"]] 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\":\"265e4d19-8b1a-4940-9185-2a5552e78a37\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:06.190Z\",\"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-05-29 22:24:06.192480"], ["created_at", "2019-05-29 22:24:06.192501"], ["updated_at", "2019-05-29 22:24:06.192501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-29 22:24:06.205724"], ["created_at", "2019-05-29 22:24:06.205752"], ["updated_at", "2019-05-29 22:24:06.205752"]]  (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.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-05-29 22:24:06.224513"], ["created_at", "2019-05-29 22:24:06.224548"], ["updated_at", "2019-05-29 22:24:06.224548"]] 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\":\"9d17cc8d-d50f-48ad-9340-a23d07be3a84\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:06.226Z\",\"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-05-29 22:24:06.228395"], ["created_at", "2019-05-29 22:24:06.228419"], ["updated_at", "2019-05-29 22:24:06.228419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 6]]  (0.1ms) 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-05-29 22:24:06.243074"], ["created_at", "2019-05-29 22:24:06.243118"], ["updated_at", "2019-05-29 22:24:06.243118"]] 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\":\"67cee3db-fe31-42f7-a94d-a462dd736c04\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:06.245Z\",\"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-05-29 22:24:06.247506"], ["created_at", "2019-05-29 22:24:06.247533"], ["updated_at", "2019-05-29 22:24:06.247533"]]  (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.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-05-29 22:24:06.263165"], ["created_at", "2019-05-29 22:24:06.263199"], ["updated_at", "2019-05-29 22:24:06.263199"]] 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\":\"10a24c75-70d3-414e-a509-04325faef442\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:06.265Z\",\"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-05-29 22:24:06.266655"], ["created_at", "2019-05-29 22:24:06.266678"], ["updated_at", "2019-05-29 22:24:06.266678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.1ms) BEGIN  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) 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.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-05-29T22:24:06.375Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:06.378507"], ["created_at", "2019-05-29 22:24:06.378549"], ["updated_at", "2019-05-29 22:24:06.378549"]]  (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.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.414853', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.414340' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.414353') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.418657', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.418378' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.418398') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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-05-29T22:24:06.421Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:06.423432"], ["created_at", "2019-05-29 22:24:06.423458"], ["updated_at", "2019-05-29 22:24:06.423458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.425223', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.424920' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.424938') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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-05-29 22:24:06.428064', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.427830' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.427840') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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.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-05-29T22:24:06.431Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:06.433819"], ["created_at", "2019-05-29 22:24:06.433855"], ["updated_at", "2019-05-29 22:24:06.433855"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.436527', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.436241' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.436252') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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-05-29 22:24:06.439365', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.439151' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.439157') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.464408', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.464189' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.464195') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:06.468057', locked_by = 'host:Corey-Alexander-MBP15 pid:34089' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:06.467799' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:06.467808') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34089') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.2ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) 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.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) 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.1ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.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-05-29 22:24:26.427445', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.426775' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.426789') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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-05-29 22:24:26.434771', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.434385' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.434398') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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.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-05-29T22:24:26.438Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:26.449876"], ["created_at", "2019-05-29 22:24:26.449910"], ["updated_at", "2019-05-29 22:24:26.449910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:26.452260', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.451968' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.451976') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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-05-29 22:24:26.455516', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.455300' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.455307') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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.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-05-29T22:24:26.460Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:26.462546"], ["created_at", "2019-05-29 22:24:26.462572"], ["updated_at", "2019-05-29 22:24:26.462572"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:26.464767', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.464554' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.464560') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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-05-29 22:24:26.467655', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.467397' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.467406') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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) 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.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-05-29T22:24:26.471Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:24:26.473259"], ["created_at", "2019-05-29 22:24:26.473295"], ["updated_at", "2019-05-29 22:24:26.473295"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:26.476036', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.475759' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.475770') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:24:26.479505', locked_by = 'host:Corey-Alexander-MBP15 pid:34731' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:24:26.479259' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:24:26.479269') OR locked_by = 'host:Corey-Alexander-MBP15 pid:34731') 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) 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 # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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-05-29 22:24:26.540153"], ["created_at", "2019-05-29 22:24:26.540197"], ["updated_at", "2019-05-29 22:24:26.540197"]] 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\":\"273a4f72-4362-4380-ba98-01a67bdd23d6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:26.543Z\",\"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-05-29 22:24:26.545746"], ["created_at", "2019-05-29 22:24:26.545777"], ["updated_at", "2019-05-29 22:24:26.545777"]]  (0.2ms) 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-05-29 22:24:26.559922"], ["created_at", "2019-05-29 22:24:26.559960"], ["updated_at", "2019-05-29 22:24:26.559960"]] 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\":\"1155dab3-1282-475e-b778-c31b8f9094e1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:26.561Z\",\"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-05-29 22:24:26.563491"], ["created_at", "2019-05-29 22:24:26.563513"], ["updated_at", "2019-05-29 22:24:26.563513"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 22:24:26.579377"], ["created_at", "2019-05-29 22:24:26.579418"], ["updated_at", "2019-05-29 22:24:26.579418"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-29 22:24:26.596385"], ["created_at", "2019-05-29 22:24:26.596420"], ["updated_at", "2019-05-29 22:24:26.596420"]] 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\":\"7c12dbab-555b-451d-8808-05d863655497\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:26.598Z\",\"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-05-29 22:24:26.599961"], ["created_at", "2019-05-29 22:24:26.599987"], ["updated_at", "2019-05-29 22:24:26.599987"]]  (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.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-05-29 22:24:26.616588"], ["created_at", "2019-05-29 22:24:26.616632"], ["updated_at", "2019-05-29 22:24:26.616632"]] 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\":\"8c766044-5275-4a36-92e9-bce5ad60b5e0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:26.619Z\",\"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-05-29 22:24:26.621475"], ["created_at", "2019-05-29 22:24:26.621508"], ["updated_at", "2019-05-29 22:24:26.621508"]]  (0.2ms) 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-05-29 22:24:26.635443"], ["created_at", "2019-05-29 22:24:26.635495"], ["updated_at", "2019-05-29 22:24:26.635495"]] 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\":\"bca5151d-2f90-4a9a-9fc7-c0b782d729e1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:24:26.638Z\",\"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-05-29 22:24:26.640445"], ["created_at", "2019-05-29 22:24:26.640475"], ["updated_at", "2019-05-29 22:24:26.640475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 13]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.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.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.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.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.2ms) COMMIT  (0.3ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.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.1ms) ROLLBACK  (0.2ms) 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%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (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-05-29T22:25:46.681Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:25:46.695164"], ["created_at", "2019-05-29 22:25:46.695205"], ["updated_at", "2019-05-29 22:25:46.695205"]]  (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-05-29 22:25:46.698688', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.698224' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.698230') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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-05-29 22:25:46.702047', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.701853' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.701860') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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.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-05-29T22:25:46.704Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:25:46.706694"], ["created_at", "2019-05-29 22:25:46.706722"], ["updated_at", "2019-05-29 22:25:46.706722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:25:46.708358', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.708122' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.708127') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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-05-29 22:25:46.711238', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.710996' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.711006') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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) 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-05-29T22:25:46.714Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:25:46.716535"], ["created_at", "2019-05-29 22:25:46.716561"], ["updated_at", "2019-05-29 22:25:46.716561"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:25:46.718559', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.718369' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.718374') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:25:46.721068', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.720875' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.720882') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:25:46.725344', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.725129' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.725136') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:25:46.729208', locked_by = 'host:Corey-Alexander-MBP15 pid:35986' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:25:46.728997' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:25:46.729014') OR locked_by = 'host:Corey-Alexander-MBP15 pid:35986') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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 # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) 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.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-05-29 22:25:46.872709"], ["created_at", "2019-05-29 22:25:46.872745"], ["updated_at", "2019-05-29 22:25:46.872745"]] 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\":\"9d0895c7-ee53-4072-92c1-13477741de99\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:25:46.875Z\",\"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-05-29 22:25:46.878815"], ["created_at", "2019-05-29 22:25:46.878851"], ["updated_at", "2019-05-29 22:25:46.878851"]]  (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.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-05-29 22:25:46.894899"], ["created_at", "2019-05-29 22:25:46.894930"], ["updated_at", "2019-05-29 22:25:46.894930"]] 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\":\"1d302d3f-7d54-4a5c-8dc4-a73c2364ad7e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:25:46.896Z\",\"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-05-29 22:25:46.898283"], ["created_at", "2019-05-29 22:25:46.898304"], ["updated_at", "2019-05-29 22:25:46.898304"]]  (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.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-05-29 22:25:46.914823"], ["created_at", "2019-05-29 22:25:46.914859"], ["updated_at", "2019-05-29 22:25:46.914859"]] 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\":\"94d82d22-66ad-4f92-a918-a9ebbd834d17\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:25:46.916Z\",\"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-05-29 22:25:46.918318"], ["created_at", "2019-05-29 22:25:46.918339"], ["updated_at", "2019-05-29 22:25:46.918339"]]  (0.1ms) RELEASE SAVEPOINT active_record_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-05-29 22:25:46.932135"], ["created_at", "2019-05-29 22:25:46.932176"], ["updated_at", "2019-05-29 22:25:46.932176"]] 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\":\"6c9fe2b8-659f-4293-8424-e310d4c66349\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:25:46.934Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 22:25:46.936306"], ["created_at", "2019-05-29 22:25:46.936332"], ["updated_at", "2019-05-29 22:25:46.936332"]]  (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-05-29 22:25:46.949924"], ["created_at", "2019-05-29 22:25:46.949961"], ["updated_at", "2019-05-29 22:25:46.949961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-29 22:25:46.983886"], ["created_at", "2019-05-29 22:25:46.983933"], ["updated_at", "2019-05-29 22:25:46.983933"]] 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\":\"0b5f6a15-5db1-4f72-b33b-9ba585ebaef0\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:25:46.986Z\",\"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-05-29 22:25:46.988217"], ["created_at", "2019-05-29 22:25:46.988249"], ["updated_at", "2019-05-29 22:25:46.988249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.3ms) 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.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) 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.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.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.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-05-29 22:27:12.987882', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:12.987380' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:12.987389') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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.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-05-29T22:27:12.993Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:27:13.025871"], ["created_at", "2019-05-29 22:27:13.025909"], ["updated_at", "2019-05-29 22:27:13.025909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.029984', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.028521' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.028527') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.033981', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.033777' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.033784') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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.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-05-29T22:27:13.044Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:27:13.048595"], ["created_at", "2019-05-29 22:27:13.048629"], ["updated_at", "2019-05-29 22:27:13.048629"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.052046', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.051769' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.051779') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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 (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.068227', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.067964' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.067975') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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]]  (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-05-29T22:27:13.071Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:27:13.073552"], ["created_at", "2019-05-29 22:27:13.073575"], ["updated_at", "2019-05-29 22:27:13.073575"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.075532', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.075340' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.075346') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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.2ms) 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-05-29 22:27:13.078120', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.077916' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.077922') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:27:13.083088', locked_by = 'host:Corey-Alexander-MBP15 pid:38485' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:27:13.082802' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:27:13.082816') OR locked_by = 'host:Corey-Alexander-MBP15 pid:38485') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.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.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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.3ms) 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.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 # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.3ms) DELETE FROM "delayed_jobs"  (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-05-29 22:27:13.274020"], ["created_at", "2019-05-29 22:27:13.274059"], ["updated_at", "2019-05-29 22:27:13.274059"]] 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\":\"c4a80fc8-98b3-4252-b4b7-c07961230434\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:27:13.276Z\",\"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-05-29 22:27:13.279028"], ["created_at", "2019-05-29 22:27:13.279055"], ["updated_at", "2019-05-29 22:27:13.279055"]]  (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.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-05-29 22:27:13.295368"], ["created_at", "2019-05-29 22:27:13.295408"], ["updated_at", "2019-05-29 22:27:13.295408"]] 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\":\"ec78114d-2d80-4cd2-88f4-d191e00f2651\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:27:13.297Z\",\"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-05-29 22:27:13.299203"], ["created_at", "2019-05-29 22:27:13.299227"], ["updated_at", "2019-05-29 22:27:13.299227"]]  (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-05-29 22:27:13.313292"], ["created_at", "2019-05-29 22:27:13.313336"], ["updated_at", "2019-05-29 22:27:13.313336"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 8]]  (0.1ms) 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-05-29 22:27:13.330655"], ["created_at", "2019-05-29 22:27:13.330695"], ["updated_at", "2019-05-29 22:27:13.330695"]] 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\":\"16fd4d71-9a81-4676-abc0-843c0b0f01f8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:27:13.333Z\",\"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-05-29 22:27:13.334925"], ["created_at", "2019-05-29 22:27:13.334957"], ["updated_at", "2019-05-29 22:27:13.334957"]]  (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.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-05-29 22:27:13.370755"], ["created_at", "2019-05-29 22:27:13.370800"], ["updated_at", "2019-05-29 22:27:13.370800"]] 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\":\"fd042d35-813a-45c7-bf8c-f262f51f4385\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:27:13.372Z\",\"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-05-29 22:27:13.374507"], ["created_at", "2019-05-29 22:27:13.374534"], ["updated_at", "2019-05-29 22:27:13.374534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-29 22:27:13.389091"], ["created_at", "2019-05-29 22:27:13.389124"], ["updated_at", "2019-05-29 22:27:13.389124"]] 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\":\"6d0a60f2-0e91-4469-868c-e176220a9109\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:27:13.390Z\",\"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-05-29 22:27:13.392527"], ["created_at", "2019-05-29 22:27:13.392554"], ["updated_at", "2019-05-29 22:27:13.392554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.5ms) 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.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.3ms) 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%') 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-05-29T22:29:31.279Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:29:31.292318"], ["created_at", "2019-05-29 22:29:31.292363"], ["updated_at", "2019-05-29 22:29:31.292363"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.295271', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.294833' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.294840') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.298230', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.298036' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.298042') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.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-05-29T22:29:31.301Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:29:31.303384"], ["created_at", "2019-05-29 22:29:31.303415"], ["updated_at", "2019-05-29 22:29:31.303415"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.306092', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.305826' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.305834') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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-05-29 22:29:31.309348', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.309097' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.309107') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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]]  (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-05-29T22:29:31.313Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:29:31.316070"], ["created_at", "2019-05-29 22:29:31.316107"], ["updated_at", "2019-05-29 22:29:31.316107"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.318631', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.318383' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.318391') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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-05-29 22:29:31.321461', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.321261' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.321268') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.327530', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.327146' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.327156') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:29:31.333692', locked_by = 'host:Corey-Alexander-MBP15 pid:42850' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:29:31.333427' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:29:31.333437') OR locked_by = 'host:Corey-Alexander-MBP15 pid:42850') 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.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  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (1.0ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.1ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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) 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-05-29 22:29:31.472792"], ["created_at", "2019-05-29 22:29:31.472830"], ["updated_at", "2019-05-29 22:29:31.472830"]] 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\":\"739c99f7-af5f-43c5-b4b7-cbb797796ee8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:29:31.555Z\",\"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-05-29 22:29:31.557603"], ["created_at", "2019-05-29 22:29:31.557642"], ["updated_at", "2019-05-29 22:29:31.557642"]]  (0.1ms) 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.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-05-29 22:29:31.573673"], ["created_at", "2019-05-29 22:29:31.573710"], ["updated_at", "2019-05-29 22:29:31.573710"]] 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\":\"5fb56363-bcd9-4f02-b8b6-fef77b4e9948\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:29:31.575Z\",\"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-05-29 22:29:31.577624"], ["created_at", "2019-05-29 22:29:31.577656"], ["updated_at", "2019-05-29 22:29:31.577656"]]  (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.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-05-29 22:29:31.594195"], ["created_at", "2019-05-29 22:29:31.594241"], ["updated_at", "2019-05-29 22:29:31.594241"]] 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\":\"f10bc123-47e2-42bf-aae4-dae2ae41981d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:29:31.596Z\",\"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-05-29 22:29:31.598208"], ["created_at", "2019-05-29 22:29:31.598235"], ["updated_at", "2019-05-29 22:29:31.598235"]]  (0.2ms) 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-05-29 22:29:31.611165"], ["created_at", "2019-05-29 22:29:31.611208"], ["updated_at", "2019-05-29 22:29:31.611208"]]  (0.1ms) 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-05-29 22:29:31.627839"], ["created_at", "2019-05-29 22:29:31.627874"], ["updated_at", "2019-05-29 22:29:31.627874"]] 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\":\"ca6f2a96-d631-4dd6-b815-28dcd4a952c3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:29:31.630Z\",\"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-05-29 22:29:31.631716"], ["created_at", "2019-05-29 22:29:31.631748"], ["updated_at", "2019-05-29 22:29:31.631748"]]  (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-05-29 22:29:31.645580"], ["created_at", "2019-05-29 22:29:31.645622"], ["updated_at", "2019-05-29 22:29:31.645622"]] 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\":\"bd310861-47bb-4a53-a607-25c01cdc1c43\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:29:31.649Z\",\"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-05-29 22:29:31.651047"], ["created_at", "2019-05-29 22:29:31.651077"], ["updated_at", "2019-05-29 22:29:31.651077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (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.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.1ms) 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.1ms) 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.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) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (2.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.4ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:31:12.942256"], ["created_at", "2019-05-29 22:31:12.942293"], ["updated_at", "2019-05-29 22:31:12.942293"]] 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\":\"35ab338b-0952-4842-9522-eea29531ba08\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:31:12.945Z\",\"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-05-29 22:31:12.948954"], ["created_at", "2019-05-29 22:31:12.948981"], ["updated_at", "2019-05-29 22:31:12.948981"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:31:12.964660"], ["created_at", "2019-05-29 22:31:12.964699"], ["updated_at", "2019-05-29 22:31:12.964699"]] 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\":\"f3701caa-8cbd-42ef-8e94-398eb61a3557\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:31:12.966Z\",\"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-05-29 22:31:12.968237"], ["created_at", "2019-05-29 22:31:12.968260"], ["updated_at", "2019-05-29 22:31:12.968260"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:31:12.981897"], ["created_at", "2019-05-29 22:31:12.981934"], ["updated_at", "2019-05-29 22:31:12.981934"]] 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\":\"b9edb9c6-7d42-429c-9722-e11804f55be9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:31:12.983Z\",\"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-05-29 22:31:12.985280"], ["created_at", "2019-05-29 22:31:12.985300"], ["updated_at", "2019-05-29 22:31:12.985300"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:31:13.000415"], ["created_at", "2019-05-29 22:31:13.000449"], ["updated_at", "2019-05-29 22:31:13.000449"]] 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\":\"852c250c-71db-431c-9e89-34877209e431\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:31:13.002Z\",\"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-05-29 22:31:13.004016"], ["created_at", "2019-05-29 22:31:13.004039"], ["updated_at", "2019-05-29 22:31:13.004039"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 # 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-05-29 22:31:13.017075"], ["created_at", "2019-05-29 22:31:13.017108"], ["updated_at", "2019-05-29 22:31:13.017108"]] 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\":\"6df1b447-fb3b-4423-8eeb-f37ccd496616\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:31:13.018Z\",\"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-05-29 22:31:13.020488"], ["created_at", "2019-05-29 22:31:13.020507"], ["updated_at", "2019-05-29 22:31:13.020507"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 9]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:31:13.035756"], ["created_at", "2019-05-29 22:31:13.035802"], ["updated_at", "2019-05-29 22:31:13.035802"]]  (0.1ms) RELEASE SAVEPOINT active_record_3 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 11]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Destroy (0.5ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (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-05-29 22:31:13.082913', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.082465' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.082472') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 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-05-29T22:31:13.086Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:31:13.087820"], ["created_at", "2019-05-29 22:31:13.087851"], ["updated_at", "2019-05-29 22:31:13.087851"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:31:13.089873', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.089532' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.089540') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:31:13.093160', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.092921' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.092931') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.2ms) SAVEPOINT active_record_3 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-05-29T22:31:13.098Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:31:13.100117"], ["created_at", "2019-05-29 22:31:13.100141"], ["updated_at", "2019-05-29 22:31:13.100141"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:31:13.102337', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.102095' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.102102') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:31:13.105520', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.105294' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.105301') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.4ms) SAVEPOINT active_record_3 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-05-29T22:31:13.109Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:31:13.111847"], ["created_at", "2019-05-29 22:31:13.111880"], ["updated_at", "2019-05-29 22:31:13.111880"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (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-05-29 22:31:13.114295', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.114047' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.114053') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:31:13.117003', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.116816' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.116822') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (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-05-29 22:31:13.121605', locked_by = 'host:Corey-Alexander-MBP15 pid:44670' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:31:13.121347' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:31:13.121358') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44670') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) 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.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (1.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.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.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.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (5.4ms) SAVEPOINT active_record_1  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 # Destroy (0.9ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_2 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.4ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.114943"], ["created_at", "2019-05-29 22:32:02.115002"], ["updated_at", "2019-05-29 22:32:02.115002"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.132538"], ["created_at", "2019-05-29 22:32:02.132583"], ["updated_at", "2019-05-29 22:32:02.132583"]] 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\":\"945f6c8a-127b-4b86-8fe8-ab6ce66789cc\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:32:02.135Z\",\"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-05-29 22:32:02.138946"], ["created_at", "2019-05-29 22:32:02.138976"], ["updated_at", "2019-05-29 22:32:02.138976"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.155733"], ["created_at", "2019-05-29 22:32:02.155773"], ["updated_at", "2019-05-29 22:32:02.155773"]] 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\":\"d999caa4-b80b-4be9-88da-ed65bc77a6df\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:32:02.158Z\",\"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-05-29 22:32:02.160350"], ["created_at", "2019-05-29 22:32:02.160390"], ["updated_at", "2019-05-29 22:32:02.160390"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.174565"], ["created_at", "2019-05-29 22:32:02.174600"], ["updated_at", "2019-05-29 22:32:02.174600"]] 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\":\"6c6dfd76-b938-465f-87e8-1a934e7c67e8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:32:02.177Z\",\"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-05-29 22:32:02.178935"], ["created_at", "2019-05-29 22:32:02.178970"], ["updated_at", "2019-05-29 22:32:02.178970"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Update (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.195841"], ["created_at", "2019-05-29 22:32:02.195880"], ["updated_at", "2019-05-29 22:32:02.195880"]] 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\":\"f779a5b7-03d4-4c0c-b997-98cfe711c292\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:32:02.198Z\",\"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-05-29 22:32:02.199825"], ["created_at", "2019-05-29 22:32:02.199857"], ["updated_at", "2019-05-29 22:32:02.199857"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.3ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 # 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-05-29 22:32:02.216200"], ["created_at", "2019-05-29 22:32:02.216238"], ["updated_at", "2019-05-29 22:32:02.216238"]] 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\":\"d5e61e64-fdf5-4763-9124-52f79db11f5e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:32:02.218Z\",\"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-05-29 22:32:02.220649"], ["created_at", "2019-05-29 22:32:02.220675"], ["updated_at", "2019-05-29 22:32:02.220675"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_3 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-05-29T22:32:02.262Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:32:02.265771"], ["created_at", "2019-05-29 22:32:02.265802"], ["updated_at", "2019-05-29 22:32:02.265802"]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (1.0ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.267897', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.267313' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.267325') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.271637', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.271343' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.271356') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.6ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (0.2ms) SAVEPOINT active_record_3 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-05-29T22:32:02.278Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:32:02.280019"], ["created_at", "2019-05-29 22:32:02.280048"], ["updated_at", "2019-05-29 22:32:02.280048"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.3ms) 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-05-29 22:32:02.282036', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.281809' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.281814') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.284697', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.284474' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.284482') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.2ms) SAVEPOINT active_record_3 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-05-29T22:32:02.288Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:32:02.289741"], ["created_at", "2019-05-29 22:32:02.289765"], ["updated_at", "2019-05-29 22:32:02.289765"]]  (0.2ms) RELEASE SAVEPOINT active_record_3  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.291933', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.291697' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.291704') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_3 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.295765', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.295458' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.295473') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.300584', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.300363' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.300370') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:32:02.304725', locked_by = 'host:Corey-Alexander-MBP15 pid:44984' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:32:02.304516' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:32:02.304525') OR locked_by = 'host:Corey-Alexander-MBP15 pid:44984') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (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  (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.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (1.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (1.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.5ms) UPDATE "delayed_jobs" SET "handler" = ''  (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 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) 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-05-29 22:33:39.570489"], ["created_at", "2019-05-29 22:33:39.570530"], ["updated_at", "2019-05-29 22:33:39.570530"]] 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\":\"917149e1-8959-45d5-a196-240347c2d7ca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:33:39.626Z\",\"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-05-29 22:33:39.629188"], ["created_at", "2019-05-29 22:33:39.629220"], ["updated_at", "2019-05-29 22:33:39.629220"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:33:39.642746"], ["created_at", "2019-05-29 22:33:39.642781"], ["updated_at", "2019-05-29 22:33:39.642781"]]  (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.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-05-29 22:33:39.658436"], ["created_at", "2019-05-29 22:33:39.658478"], ["updated_at", "2019-05-29 22:33:39.658478"]] 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\":\"02386d65-60b9-43f1-9c0c-eccc2b42fb25\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:33:39.660Z\",\"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-05-29 22:33:39.662658"], ["created_at", "2019-05-29 22:33:39.662693"], ["updated_at", "2019-05-29 22:33:39.662693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (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-05-29 22:33:39.679232"], ["created_at", "2019-05-29 22:33:39.679268"], ["updated_at", "2019-05-29 22:33:39.679268"]] 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\":\"4e36fd72-17af-41e2-a2b8-2544b7833c80\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:33:39.681Z\",\"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-05-29 22:33:39.683099"], ["created_at", "2019-05-29 22:33:39.683126"], ["updated_at", "2019-05-29 22:33:39.683126"]]  (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.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-05-29 22:33:39.699277"], ["created_at", "2019-05-29 22:33:39.699321"], ["updated_at", "2019-05-29 22:33:39.699321"]] Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"86f017bf-ea46-46dd-bfbb-100801d95cca\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:33:39.702Z\",\"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-05-29 22:33:39.704512"], ["created_at", "2019-05-29 22:33:39.704560"], ["updated_at", "2019-05-29 22:33:39.704560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]  (0.1ms) 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-05-29 22:33:39.718550"], ["created_at", "2019-05-29 22:33:39.718591"], ["updated_at", "2019-05-29 22:33:39.718591"]] 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\":\"d8441e97-7710-487f-9899-294bbf45455f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:33:39.721Z\",\"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-05-29 22:33:39.722888"], ["created_at", "2019-05-29 22:33:39.722912"], ["updated_at", "2019-05-29 22:33:39.722912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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-05-29 22:33:39.749771', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.749254' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.749265') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:33:39.756235', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.755970' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.755976') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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", 20]]  (0.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-05-29T22:33:39.761Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:33:39.763021"], ["created_at", "2019-05-29 22:33:39.763059"], ["updated_at", "2019-05-29 22:33:39.763059"]]  (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-05-29 22:33:39.765319', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.765115' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.765121') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:33:39.768453', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.768187' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.768195') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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" ("priority", "handler", "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-05-29T22:33:39.771Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:33:39.773411"], ["created_at", "2019-05-29 22:33:39.773445"], ["updated_at", "2019-05-29 22:33:39.773445"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:33:39.775400', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.775112' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.775119') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:33:39.778509', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.778266' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.778274') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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-05-29T22:33:39.782Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:33:39.784423"], ["created_at", "2019-05-29 22:33:39.784468"], ["updated_at", "2019-05-29 22:33:39.784468"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:33:39.806816', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.806545' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.806556') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') 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-05-29 22:33:39.809485', locked_by = 'host:Corey-Alexander-MBP15 pid:46357' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:33:39.809289' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:33:39.809295') OR locked_by = 'host:Corey-Alexander-MBP15 pid:46357') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.1ms) ROLLBACK  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.8ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.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.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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.2ms) 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.1ms) 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-05-29 22:35:14.446123"], ["created_at", "2019-05-29 22:35:14.446162"], ["updated_at", "2019-05-29 22:35:14.446162"]]  (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.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-05-29 22:35:14.464378"], ["created_at", "2019-05-29 22:35:14.464419"], ["updated_at", "2019-05-29 22:35:14.464419"]] 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\":\"958bef7f-bff2-453b-8799-a81009cc24fa\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:14.572Z\",\"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-05-29 22:35:14.575742"], ["created_at", "2019-05-29 22:35:14.575790"], ["updated_at", "2019-05-29 22:35:14.575790"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:35:14.589496"], ["created_at", "2019-05-29 22:35:14.589531"], ["updated_at", "2019-05-29 22:35:14.589531"]] 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\":\"a3fb5992-fcb0-4232-9cf0-26d8c8971d31\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:14.591Z\",\"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-05-29 22:35:14.593218"], ["created_at", "2019-05-29 22:35:14.593248"], ["updated_at", "2019-05-29 22:35:14.593248"]]  (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-05-29 22:35:14.609359"], ["created_at", "2019-05-29 22:35:14.609400"], ["updated_at", "2019-05-29 22:35:14.609400"]] 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\":\"8147898e-b1b4-42f8-a0f6-e497d6c13a86\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:14.612Z\",\"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-05-29 22:35:14.613907"], ["created_at", "2019-05-29 22:35:14.613934"], ["updated_at", "2019-05-29 22:35:14.613934"]]  (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-05-29 22:35:14.627780"], ["created_at", "2019-05-29 22:35:14.627820"], ["updated_at", "2019-05-29 22:35:14.627820"]] 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\":\"ed062a74-f9bc-451b-99fb-8f2c1fff76bd\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:14.630Z\",\"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-05-29 22:35:14.632437"], ["created_at", "2019-05-29 22:35:14.632462"], ["updated_at", "2019-05-29 22:35:14.632462"]]  (0.2ms) 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-05-29 22:35:14.645930"], ["created_at", "2019-05-29 22:35:14.645991"], ["updated_at", "2019-05-29 22:35:14.645991"]] 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\":\"313350f6-d810-4403-800a-859dd6db3420\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:14.647Z\",\"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-05-29 22:35:14.649490"], ["created_at", "2019-05-29 22:35:14.649517"], ["updated_at", "2019-05-29 22:35:14.649517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) 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"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) 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.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-05-29T22:35:14.785Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:14.787855"], ["created_at", "2019-05-29 22:35:14.787884"], ["updated_at", "2019-05-29 22:35:14.787884"]]  (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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:14.790529', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.790068' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.790076') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:14.793862', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.793640' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.793649') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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-05-29T22:35:14.796Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:14.798421"], ["created_at", "2019-05-29 22:35:14.798450"], ["updated_at", "2019-05-29 22:35:14.798450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:14.800143', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.799889' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.799897') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:14.802832', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.802623' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.802631') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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", 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-05-29T22:35:14.807Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:14.809047"], ["created_at", "2019-05-29 22:35:14.809079"], ["updated_at", "2019-05-29 22:35:14.809079"]]  (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-05-29 22:35:14.811582', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.811339' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.811346') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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-05-29 22:35:14.814581', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.814343' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.814352') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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-05-29 22:35:14.841000', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.840697' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.840708') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') 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-05-29 22:35:14.845377', locked_by = 'host:Corey-Alexander-MBP15 pid:47184' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:14.845196' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:14.845203') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47184') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.2ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (2.8ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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.1ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (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.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.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.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-05-29 22:35:35.095611', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.095153' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.095160') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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.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-05-29T22:35:35.098Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:35.110781"], ["created_at", "2019-05-29 22:35:35.110828"], ["updated_at", "2019-05-29 22:35:35.110828"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:35.113028', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.112770' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.112775') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:35.116159', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.115976' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.115983') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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) 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-05-29T22:35:35.121Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:35.123575"], ["created_at", "2019-05-29 22:35:35.123600"], ["updated_at", "2019-05-29 22:35:35.123600"]]  (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-05-29 22:35:35.125807', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.125596' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.125602') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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-05-29 22:35:35.128601', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.128362' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.128371') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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]]  (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-05-29T22:35:35.132Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:35:35.134301"], ["created_at", "2019-05-29 22:35:35.134331"], ["updated_at", "2019-05-29 22:35:35.134331"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:35.136883', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.136577' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.136589') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:35:35.140051', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.139783' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.139793') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') 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-05-29 22:35:35.144758', locked_by = 'host:Corey-Alexander-MBP15 pid:47414' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:35:35.144531' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:35:35.144540') OR locked_by = 'host:Corey-Alexander-MBP15 pid:47414') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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.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.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.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.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-05-29 22:35:35.418713"], ["created_at", "2019-05-29 22:35:35.418759"], ["updated_at", "2019-05-29 22:35:35.418759"]]  (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.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-05-29 22:35:35.434711"], ["created_at", "2019-05-29 22:35:35.434750"], ["updated_at", "2019-05-29 22:35:35.434750"]] 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\":\"4da7d9c8-c43f-45f6-ae6b-d539603180e3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:35.436Z\",\"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-05-29 22:35:35.439269"], ["created_at", "2019-05-29 22:35:35.439301"], ["updated_at", "2019-05-29 22:35:35.439301"]]  (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-05-29 22:35:35.451729"], ["created_at", "2019-05-29 22:35:35.451756"], ["updated_at", "2019-05-29 22:35:35.451756"]] 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\":\"430e097f-e557-4017-8a91-4f3e6f0d00b5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:35.453Z\",\"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-05-29 22:35:35.455026"], ["created_at", "2019-05-29 22:35:35.455048"], ["updated_at", "2019-05-29 22:35:35.455048"]]  (0.1ms) 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-05-29 22:35:35.469669"], ["created_at", "2019-05-29 22:35:35.469719"], ["updated_at", "2019-05-29 22:35:35.469719"]] 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\":\"232bc2c9-8960-43f0-bc0c-76be55b3f69e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:35.472Z\",\"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-05-29 22:35:35.474229"], ["created_at", "2019-05-29 22:35:35.474256"], ["updated_at", "2019-05-29 22:35:35.474256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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.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-05-29 22:35:35.490743"], ["created_at", "2019-05-29 22:35:35.490783"], ["updated_at", "2019-05-29 22:35:35.490783"]] 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\":\"bcb567a6-6ce5-45f6-95af-59457b80e49a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:35.493Z\",\"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-05-29 22:35:35.495076"], ["created_at", "2019-05-29 22:35:35.495119"], ["updated_at", "2019-05-29 22:35:35.495119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-29 22:35:35.511417"], ["created_at", "2019-05-29 22:35:35.511455"], ["updated_at", "2019-05-29 22:35:35.511455"]] 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\":\"1f02a00d-e201-4e9b-a8d0-f53d6ee17f52\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:35:35.513Z\",\"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-05-29 22:35:35.515081"], ["created_at", "2019-05-29 22:35:35.515104"], ["updated_at", "2019-05-29 22:35:35.515104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.1ms) ROLLBACK  (0.6ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.3ms) 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.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) 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.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) 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-05-29 22:36:22.506205"], ["created_at", "2019-05-29 22:36:22.506276"], ["updated_at", "2019-05-29 22:36:22.506276"]] 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\":\"7e25ec08-cf3e-433b-9d34-685cd14223e9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:36:22.625Z\",\"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-05-29 22:36:22.628241"], ["created_at", "2019-05-29 22:36:22.628275"], ["updated_at", "2019-05-29 22:36:22.628275"]]  (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-05-29 22:36:22.643527"], ["created_at", "2019-05-29 22:36:22.643583"], ["updated_at", "2019-05-29 22:36:22.643583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-29 22:36:22.662682"], ["created_at", "2019-05-29 22:36:22.662723"], ["updated_at", "2019-05-29 22:36:22.662723"]] 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\":\"6f9b31d1-e4a7-4cc2-9d4f-17e0157ae6c9\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:36:22.664Z\",\"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-05-29 22:36:22.666419"], ["created_at", "2019-05-29 22:36:22.666441"], ["updated_at", "2019-05-29 22:36:22.666441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]  (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-05-29 22:36:22.682476"], ["created_at", "2019-05-29 22:36:22.682523"], ["updated_at", "2019-05-29 22:36:22.682523"]] 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\":\"c28756fa-b34d-4173-a27f-d63007d1ebfb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:36:22.685Z\",\"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-05-29 22:36:22.687445"], ["created_at", "2019-05-29 22:36:22.687477"], ["updated_at", "2019-05-29 22:36:22.687477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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.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-05-29 22:36:22.701745"], ["created_at", "2019-05-29 22:36:22.701773"], ["updated_at", "2019-05-29 22:36:22.701773"]] 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\":\"9470763c-9d21-47a0-8da4-9657271409c8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:36:22.703Z\",\"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-05-29 22:36:22.705192"], ["created_at", "2019-05-29 22:36:22.705217"], ["updated_at", "2019-05-29 22:36:22.705217"]]  (0.3ms) RELEASE SAVEPOINT active_record_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-05-29 22:36:22.721770"], ["created_at", "2019-05-29 22:36:22.721808"], ["updated_at", "2019-05-29 22:36:22.721808"]] 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\":\"4c6bc385-7111-4d8c-b01f-e86b3587a5af\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:36:22.724Z\",\"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-05-29 22:36:22.726535"], ["created_at", "2019-05-29 22:36:22.726560"], ["updated_at", "2019-05-29 22:36:22.726560"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) 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 # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) 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  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.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.1ms) ROLLBACK  (0.1ms) 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-05-29 22:36:22.807610', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.807029' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.807041') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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-05-29T22:36:22.811Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:36:22.813773"], ["created_at", "2019-05-29 22:36:22.813806"], ["updated_at", "2019-05-29 22:36:22.813806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.815449', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.815187' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.815193') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.818192', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.817986' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.817993') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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", 20]]  (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-05-29T22:36:22.822Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:36:22.824813"], ["created_at", "2019-05-29 22:36:22.824839"], ["updated_at", "2019-05-29 22:36:22.824839"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.826864', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.826655' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.826662') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.829348', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.829154' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.829161') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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]]  (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-05-29T22:36:22.832Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:36:22.834712"], ["created_at", "2019-05-29 22:36:22.834742"], ["updated_at", "2019-05-29 22:36:22.834742"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.836898', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.836632' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.836639') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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-05-29 22:36:22.840151', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.839738' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.839754') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:36:22.845824', locked_by = 'host:Corey-Alexander-MBP15 pid:48762' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:36:22.845604' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:36:22.845610') OR locked_by = 'host:Corey-Alexander-MBP15 pid:48762') 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.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.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.2ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) 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-05-29 22:37:31.101463', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.100928' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.100950') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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.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-05-29T22:37:31.104Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:37:31.116642"], ["created_at", "2019-05-29 22:37:31.116684"], ["updated_at", "2019-05-29 22:37:31.116684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:37:31.119977', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.119632' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.119640') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:37:31.123038', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.122820' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.122829') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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.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-05-29T22:37:31.129Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:37:31.131042"], ["created_at", "2019-05-29 22:37:31.131072"], ["updated_at", "2019-05-29 22:37:31.131072"]]  (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-05-29 22:37:31.133536', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.133293' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.133300') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:37:31.136295', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.136049' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.136059') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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]]  (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-05-29T22:37:31.140Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:37:31.142734"], ["created_at", "2019-05-29 22:37:31.142773"], ["updated_at", "2019-05-29 22:37:31.142773"]]  (0.1ms) 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-05-29 22:37:31.145207', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.144969' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.144977') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:37:31.148060', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.147842' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.147850') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:37:31.152538', locked_by = 'host:Corey-Alexander-MBP15 pid:51718' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:37:31.152336' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:37:31.152343') OR locked_by = 'host:Corey-Alexander-MBP15 pid:51718') 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) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.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.1ms) BEGIN  (0.3ms) 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.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.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.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (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-05-29 22:37:31.446861"], ["created_at", "2019-05-29 22:37:31.446898"], ["updated_at", "2019-05-29 22:37:31.446898"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["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-05-29 22:37:31.462718"], ["created_at", "2019-05-29 22:37:31.462756"], ["updated_at", "2019-05-29 22:37:31.462756"]] 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\":\"50e6cbba-9bf8-4f26-a20e-130fcbe0297c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:37:31.465Z\",\"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-05-29 22:37:31.467605"], ["created_at", "2019-05-29 22:37:31.467631"], ["updated_at", "2019-05-29 22:37:31.467631"]]  (0.1ms) 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.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-05-29 22:37:31.483158"], ["created_at", "2019-05-29 22:37:31.483193"], ["updated_at", "2019-05-29 22:37:31.483193"]] 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\":\"d6dd99f9-4e3a-45ad-83fe-e54f8c65f882\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:37:31.485Z\",\"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-05-29 22:37:31.486634"], ["created_at", "2019-05-29 22:37:31.486656"], ["updated_at", "2019-05-29 22:37:31.486656"]]  (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-05-29 22:37:31.499670"], ["created_at", "2019-05-29 22:37:31.499706"], ["updated_at", "2019-05-29 22:37:31.499706"]] 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\":\"7f2ab2f1-f1eb-4f76-9fe8-f4772a251728\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:37:31.502Z\",\"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-05-29 22:37:31.503986"], ["created_at", "2019-05-29 22:37:31.504017"], ["updated_at", "2019-05-29 22:37:31.504017"]]  (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.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-05-29 22:37:31.519557"], ["created_at", "2019-05-29 22:37:31.519608"], ["updated_at", "2019-05-29 22:37:31.519608"]] 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\":\"1c1cb583-73e7-4443-9070-fddc079bdc7d\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:37:31.522Z\",\"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-05-29 22:37:31.523710"], ["created_at", "2019-05-29 22:37:31.523743"], ["updated_at", "2019-05-29 22:37:31.523743"]]  (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", 11]]  (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-05-29 22:37:31.541462"], ["created_at", "2019-05-29 22:37:31.541500"], ["updated_at", "2019-05-29 22:37:31.541500"]] 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\":\"6accd25c-d1c6-43f5-826e-1dc3d5dabb01\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:37:31.543Z\",\"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-05-29 22:37:31.545414"], ["created_at", "2019-05-29 22:37:31.545440"], ["updated_at", "2019-05-29 22:37:31.545440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.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.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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.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")  (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.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) 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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.8ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) 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-05-29 22:38:21.672273"], ["created_at", "2019-05-29 22:38:21.672312"], ["updated_at", "2019-05-29 22:38:21.672312"]] 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\":\"b66fa8d0-6409-4796-81e1-45f3770041a8\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:21.781Z\",\"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-05-29 22:38:21.784829"], ["created_at", "2019-05-29 22:38:21.784859"], ["updated_at", "2019-05-29 22:38:21.784859"]]  (0.2ms) 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-05-29 22:38:21.798795"], ["created_at", "2019-05-29 22:38:21.798841"], ["updated_at", "2019-05-29 22:38:21.798841"]] 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\":\"6c4f363f-7b3a-4fec-a47d-f890395d1e1b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:21.801Z\",\"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-05-29 22:38:21.803210"], ["created_at", "2019-05-29 22:38:21.803244"], ["updated_at", "2019-05-29 22:38:21.803244"]]  (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.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-05-29 22:38:21.818574"], ["created_at", "2019-05-29 22:38:21.818618"], ["updated_at", "2019-05-29 22:38:21.818618"]] 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\":\"608a4ba6-aa86-42c0-bca5-187b7625b9b7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:21.821Z\",\"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-05-29 22:38:21.823427"], ["created_at", "2019-05-29 22:38:21.823464"], ["updated_at", "2019-05-29 22:38:21.823464"]]  (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.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-05-29 22:38:21.840309"], ["created_at", "2019-05-29 22:38:21.840343"], ["updated_at", "2019-05-29 22:38:21.840343"]]  (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.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-05-29 22:38:21.855271"], ["created_at", "2019-05-29 22:38:21.855311"], ["updated_at", "2019-05-29 22:38:21.855311"]] 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\":\"a413e6d7-e000-462c-a941-aa47e7e9f645\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:21.857Z\",\"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-05-29 22:38:21.858930"], ["created_at", "2019-05-29 22:38:21.858953"], ["updated_at", "2019-05-29 22:38:21.858953"]]  (0.2ms) 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-05-29 22:38:21.872836"], ["created_at", "2019-05-29 22:38:21.872877"], ["updated_at", "2019-05-29 22:38:21.872877"]] 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\":\"870ae39b-f0fb-4d15-a515-d7d6444dd47c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:21.875Z\",\"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-05-29 22:38:21.876826"], ["created_at", "2019-05-29 22:38:21.876853"], ["updated_at", "2019-05-29 22:38:21.876853"]]  (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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.942451', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.941968' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.941982') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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" ("priority", "handler", "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-05-29T22:38:21.945Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:21.948002"], ["created_at", "2019-05-29 22:38:21.948030"], ["updated_at", "2019-05-29 22:38:21.948030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.949688', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.949449' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.949455') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.952957', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.952686' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.952697') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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.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-05-29T22:38:21.958Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:21.960071"], ["created_at", "2019-05-29 22:38:21.960099"], ["updated_at", "2019-05-29 22:38:21.960099"]]  (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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.962759', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.962447' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.962457') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.965823', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.965611' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.965619') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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) 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.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-05-29T22:38:21.969Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:21.971308"], ["created_at", "2019-05-29 22:38:21.971335"], ["updated_at", "2019-05-29 22:38:21.971335"]]  (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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:21.973609', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.973374' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.973380') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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.2ms) 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-05-29 22:38:21.976183', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.975979' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.975986') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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-05-29 22:38:21.981365', locked_by = 'host:Corey-Alexander-MBP15 pid:52156' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:21.981012' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:21.981025') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52156') 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.1ms) BEGIN  (0.4ms) 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.3ms) BEGIN  (0.3ms) 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.1ms) ROLLBACK  (2.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.1ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (3.8ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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  (1.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-05-29 22:38:47.984774', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:47.984150' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:47.984163') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:47.991202', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:47.990965' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:47.990973') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) 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-05-29T22:38:47.993Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:48.005933"], ["created_at", "2019-05-29 22:38:48.005974"], ["updated_at", "2019-05-29 22:38:48.005974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:48.007899', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.007673' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.007679') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:48.010559', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.010362' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.010369') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') 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) 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-05-29T22:38:48.015Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:48.028615"], ["created_at", "2019-05-29 22:38:48.028648"], ["updated_at", "2019-05-29 22:38:48.028648"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:48.030928', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.030702' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.030707') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') 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-05-29 22:38:48.033704', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.033486' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.033494') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') 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) 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-05-29T22:38:48.037Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:38:48.039004"], ["created_at", "2019-05-29 22:38:48.039034"], ["updated_at", "2019-05-29 22:38:48.039034"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:48.041357', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.041108' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.041114') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:38:48.043909', locked_by = 'host:Corey-Alexander-MBP15 pid:52597' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:38:48.043714' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:38:48.043721') OR locked_by = 'host:Corey-Alexander-MBP15 pid:52597') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (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.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.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.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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.1ms) BEGIN  (0.1ms) 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-05-29 22:38:48.230559"], ["created_at", "2019-05-29 22:38:48.230594"], ["updated_at", "2019-05-29 22:38:48.230594"]] 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\":\"aecc556e-496d-478b-bee7-58996770d5db\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:48.233Z\",\"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-05-29 22:38:48.235838"], ["created_at", "2019-05-29 22:38:48.235872"], ["updated_at", "2019-05-29 22:38:48.235872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 4]]  (0.1ms) 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-05-29 22:38:48.250548"], ["created_at", "2019-05-29 22:38:48.250598"], ["updated_at", "2019-05-29 22:38:48.250598"]] 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\":\"73584401-0914-484e-a385-58c3ddba2577\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:48.253Z\",\"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-05-29 22:38:48.255647"], ["created_at", "2019-05-29 22:38:48.255673"], ["updated_at", "2019-05-29 22:38:48.255673"]]  (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-05-29 22:38:48.268965"], ["created_at", "2019-05-29 22:38:48.268997"], ["updated_at", "2019-05-29 22:38:48.268997"]] 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\":\"3eb8e32a-a3d9-4b83-88f0-7f9edfe4ae5b\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:48.270Z\",\"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-05-29 22:38:48.272632"], ["created_at", "2019-05-29 22:38:48.272660"], ["updated_at", "2019-05-29 22:38:48.272660"]]  (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.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-05-29 22:38:48.289838"], ["created_at", "2019-05-29 22:38:48.289876"], ["updated_at", "2019-05-29 22:38:48.289876"]] 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\":\"3a749e86-5b2b-4b92-89df-5a4a60d51701\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:48.291Z\",\"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-05-29 22:38:48.293377"], ["created_at", "2019-05-29 22:38:48.293398"], ["updated_at", "2019-05-29 22:38:48.293398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-29 22:38:48.306748"], ["created_at", "2019-05-29 22:38:48.306806"], ["updated_at", "2019-05-29 22:38:48.306806"]] 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\":\"c8bf91ee-66c3-4e36-96fa-6a453aa31ccb\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:38:48.308Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"12\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-05-29 22:38:48.310471"], ["created_at", "2019-05-29 22:38:48.310495"], ["updated_at", "2019-05-29 22:38:48.310495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]  (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-05-29 22:38:48.325776"], ["created_at", "2019-05-29 22:38:48.325810"], ["updated_at", "2019-05-29 22:38:48.325810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.1ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.1ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.2ms) 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.4ms) 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.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.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.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 # Update All (0.8ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.3ms) 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.1ms) 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) 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-05-29 22:50:09.036199"], ["created_at", "2019-05-29 22:50:09.036260"], ["updated_at", "2019-05-29 22:50:09.036260"]] 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\":\"015e5fa8-23a0-4af0-b069-dcf2b2f12cff\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:50:09.039Z\",\"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-05-29 22:50:09.044444"], ["created_at", "2019-05-29 22:50:09.044484"], ["updated_at", "2019-05-29 22:50:09.044484"]]  (0.2ms) RELEASE SAVEPOINT active_record_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-05-29 22:50:09.061013"], ["created_at", "2019-05-29 22:50:09.061074"], ["updated_at", "2019-05-29 22:50:09.061074"]]  (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.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-05-29 22:50:09.081836"], ["created_at", "2019-05-29 22:50:09.081892"], ["updated_at", "2019-05-29 22:50:09.081892"]] 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\":\"558b5b55-88cc-490f-bfe8-95a2fc28fc71\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:50:09.084Z\",\"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-05-29 22:50:09.087027"], ["created_at", "2019-05-29 22:50:09.087064"], ["updated_at", "2019-05-29 22:50:09.087064"]]  (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-05-29 22:50:09.104417"], ["created_at", "2019-05-29 22:50:09.104471"], ["updated_at", "2019-05-29 22:50:09.104471"]] 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\":\"c3e39ca4-09ca-4212-9816-49fcef777bd6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:50:09.106Z\",\"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-05-29 22:50:09.108913"], ["created_at", "2019-05-29 22:50:09.108952"], ["updated_at", "2019-05-29 22:50:09.108952"]]  (0.1ms) 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-05-29 22:50:09.126166"], ["created_at", "2019-05-29 22:50:09.126222"], ["updated_at", "2019-05-29 22:50:09.126222"]] 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\":\"822e5b67-1a26-498c-87e6-8422a0c51bc2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:50:09.128Z\",\"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-05-29 22:50:09.131027"], ["created_at", "2019-05-29 22:50:09.131066"], ["updated_at", "2019-05-29 22:50:09.131066"]]  (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.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-05-29 22:50:09.149490"], ["created_at", "2019-05-29 22:50:09.149554"], ["updated_at", "2019-05-29 22:50:09.149554"]] 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\":\"d1f02ef7-c009-4834-9d8e-e8ead128946f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:50:09.152Z\",\"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-05-29 22:50:09.154705"], ["created_at", "2019-05-29 22:50:09.154745"], ["updated_at", "2019-05-29 22:50:09.154745"]]  (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", 10]]  (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.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.1ms) ROLLBACK  (0.2ms) 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-05-29 22:50:09.240881', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.240170' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.240186') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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.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-05-29T22:50:09.245Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:50:09.247997"], ["created_at", "2019-05-29 22:50:09.248045"], ["updated_at", "2019-05-29 22:50:09.248045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:50:09.250269', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.249950' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.249960') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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-05-29 22:50:09.253750', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.253493' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.253504') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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.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-05-29T22:50:09.260Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:50:09.263145"], ["created_at", "2019-05-29 22:50:09.263224"], ["updated_at", "2019-05-29 22:50:09.263224"]]  (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-05-29 22:50:09.266802', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.266359' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.266373') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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-05-29 22:50:09.270303', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.269983' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.269996') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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]]  (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-05-29T22:50:09.274Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:50:09.277288"], ["created_at", "2019-05-29 22:50:09.277328"], ["updated_at", "2019-05-29 22:50:09.277328"]]  (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-05-29 22:50:09.280001', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.279666' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.279677') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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-05-29 22:50:09.283522', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.283251' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.283264') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:50:09.289109', locked_by = 'host:Corey-Alexander-MBP15 pid:12373' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:50:09.288744' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:50:09.288759') OR locked_by = 'host:Corey-Alexander-MBP15 pid:12373') 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.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.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.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.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (44.0ms) 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.5ms) 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.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.3ms) 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.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.2ms) COMMIT  (0.3ms) BEGIN  (0.5ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) 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.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.099640', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.097251' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.097669') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') 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.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-05-29T22:52:15.108Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:52:15.128075"], ["created_at", "2019-05-29 22:52:15.128392"], ["updated_at", "2019-05-29 22:52:15.128392"]]  (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.8ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.133195', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.132226' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.132477') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING * 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=1) RUNNING  (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 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=1) COMPLETED after 0.0021 Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.145166', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.144152' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.144417') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) 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-05-29T22:52:15.149Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:52:15.154387"], ["created_at", "2019-05-29 22:52:15.154706"], ["updated_at", "2019-05-29 22:52:15.154706"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.159115', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.157516' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.157905') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING * 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=2) RUNNING  (0.3ms) 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 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=2) COMPLETED after 0.0026 Delayed::Backend::ActiveRecord::Job Load (1.2ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.167959', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.166287' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.166612') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') 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]]  (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-05-29T22:52:15.174Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 22:52:15.178623"], ["created_at", "2019-05-29 22:52:15.178881"], ["updated_at", "2019-05-29 22:52:15.178881"]]  (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-05-29 22:52:15.182652', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.181688' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.181918') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING * 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=3) RUNNING  (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 2019-05-29T18:52:15-0400: [Worker(host:Corey-Alexander-MBP15 pid:15331)] Job Journaled::Delivery (id=3) COMPLETED after 0.0016 Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 22:52:15.187858', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.186945' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.187135') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') 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-05-29 22:52:15.196912', locked_by = 'host:Corey-Alexander-MBP15 pid:15331' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 22:52:15.196044' AND (locked_at IS NULL OR locked_at < '2019-05-29 18:52:15.196244') OR locked_by = 'host:Corey-Alexander-MBP15 pid:15331') 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.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  (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.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 # Destroy (0.4ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.5ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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-05-29 22:52:15.468175"], ["created_at", "2019-05-29 22:52:15.468635"], ["updated_at", "2019-05-29 22:52:15.468635"]] 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\":\"ce8755e9-05bd-464c-be9e-fe1b03b22a85\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:52:15.474Z\",\"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-05-29 22:52:15.480412"], ["created_at", "2019-05-29 22:52:15.481054"], ["updated_at", "2019-05-29 22:52:15.481054"]]  (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.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-05-29 22:52:15.512801"], ["created_at", "2019-05-29 22:52:15.513126"], ["updated_at", "2019-05-29 22:52:15.513126"]] 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\":\"aec00e33-629f-47cd-8b59-9ee02f4c3560\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:52:15.516Z\",\"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-05-29 22:52:15.519859"], ["created_at", "2019-05-29 22:52:15.520153"], ["updated_at", "2019-05-29 22:52:15.520153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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-05-29 22:52:15.541705"], ["created_at", "2019-05-29 22:52:15.542320"], ["updated_at", "2019-05-29 22:52:15.542320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.6ms) 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-05-29 22:52:15.576519"], ["created_at", "2019-05-29 22:52:15.576868"], ["updated_at", "2019-05-29 22:52:15.576868"]] 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\":\"8cda160c-05e0-4cb2-9a8b-2b0f31f9ab0e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:52:15.581Z\",\"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-05-29 22:52:15.586182"], ["created_at", "2019-05-29 22:52:15.586445"], ["updated_at", "2019-05-29 22:52:15.586445"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 9]]  (0.3ms) 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-05-29 22:52:15.628455"], ["created_at", "2019-05-29 22:52:15.628750"], ["updated_at", "2019-05-29 22:52:15.628750"]] 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\":\"1be22f08-6bde-40c2-9183-ca0ecc4c3adf\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:52:15.632Z\",\"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-05-29 22:52:15.638015"], ["created_at", "2019-05-29 22:52:15.638273"], ["updated_at", "2019-05-29 22:52:15.638273"]]  (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", 11]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) 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-05-29 22:52:15.678056"], ["created_at", "2019-05-29 22:52:15.678387"], ["updated_at", "2019-05-29 22:52:15.678387"]] 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\":\"1f23d911-a0cd-4552-a1e5-33bb300d94be\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T22:52:15.683Z\",\"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-05-29 22:52:15.688874"], ["created_at", "2019-05-29 22:52:15.689252"], ["updated_at", "2019-05-29 22:52:15.689252"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (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.4ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (43.2ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (4.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")  (2.1ms) DROP TABLE IF EXISTS "soldiers" CASCADE  (2.5ms) CREATE TABLE "soldiers" ("id" bigserial primary key, "name" character varying, "rank" character varying, "serial_number" character varying, "last_sign_in_at" timestamp)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (44.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.6ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.1ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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 (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.1ms) 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-05-29 23:04:48.643792"], ["created_at", "2019-05-29 23:04:48.643848"], ["updated_at", "2019-05-29 23:04:48.643848"]] 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\":\"62adf267-cd09-48fa-a795-75fedfeed46e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T23:04:48.720Z\",\"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-05-29 23:04:48.747998"], ["created_at", "2019-05-29 23:04:48.748034"], ["updated_at", "2019-05-29 23:04:48.748034"]]  (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", 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-05-29 23:04:48.793196"], ["created_at", "2019-05-29 23:04:48.793247"], ["updated_at", "2019-05-29 23:04:48.793247"]] 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\":\"93397a04-3981-4871-815d-406010f0da41\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T23:04:48.795Z\",\"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-05-29 23:04:48.797809"], ["created_at", "2019-05-29 23:04:48.797838"], ["updated_at", "2019-05-29 23:04:48.797838"]]  (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-05-29 23:04:48.812829"], ["created_at", "2019-05-29 23:04:48.812885"], ["updated_at", "2019-05-29 23:04:48.812885"]] Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"acbcd530-2da5-456c-94de-9fce065c5b74\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T23:04:48.815Z\",\"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-05-29 23:04:48.816742"], ["created_at", "2019-05-29 23:04:48.816767"], ["updated_at", "2019-05-29 23:04:48.816767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 5]]  (0.1ms) 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-05-29 23:04:48.830058"], ["created_at", "2019-05-29 23:04:48.830094"], ["updated_at", "2019-05-29 23:04:48.830094"]]  (0.1ms) 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-05-29 23:04:48.846463"], ["created_at", "2019-05-29 23:04:48.846501"], ["updated_at", "2019-05-29 23:04:48.846501"]] 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\":\"a19d1b1d-ece7-4065-9e52-506eaaa77bd3\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T23:04:48.848Z\",\"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-05-29 23:04:48.850235"], ["created_at", "2019-05-29 23:04:48.850257"], ["updated_at", "2019-05-29 23:04:48.850257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-05-29 23:04:48.862333"], ["created_at", "2019-05-29 23:04:48.862373"], ["updated_at", "2019-05-29 23:04:48.862373"]] 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\":\"93c30246-d9b2-46d2-bc96-1f77ee5247e2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-29T23:04:48.864Z\",\"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-05-29 23:04:48.865771"], ["created_at", "2019-05-29 23:04:48.865796"], ["updated_at", "2019-05-29 23:04:48.865796"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 10]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) 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.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.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.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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-05-29 23:04:49.017358', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.016906' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.016914') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') 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" ("priority", "handler", "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-05-29T23:04:49.020Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 23:04:49.022468"], ["created_at", "2019-05-29 23:04:49.022501"], ["updated_at", "2019-05-29 23:04:49.022501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 23:04:49.024311', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.024057' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.024063') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') 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.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 23:04:49.027303', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.027080' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.027086') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') 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.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-05-29T23:04:49.033Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 23:04:49.035928"], ["created_at", "2019-05-29 23:04:49.035956"], ["updated_at", "2019-05-29 23:04:49.035956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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-05-29 23:04:49.038100', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.037862' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.037869') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 23:04:49.040724', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.040516' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.040523') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Create (0.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-05-29T23:04:49.043Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-29 23:04:49.045260"], ["created_at", "2019-05-29 23:04:49.045282"], ["updated_at", "2019-05-29 23:04:49.045282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 23:04:49.047068', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.046870' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.046876') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-29 23:04:49.049272', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.049067' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.049073') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.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-05-29 23:04:49.053514', locked_by = 'host:Corey-Alexander-MBP15 pid:21104' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-29 23:04:49.053245' AND (locked_at IS NULL OR locked_at < '2019-05-29 19:04:49.053257') OR locked_by = 'host:Corey-Alexander-MBP15 pid:21104') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.3ms) 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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (24.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (47.7ms) 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.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::InternalMetadata Load (1.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.2ms) COMMIT  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (1.3ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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.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.2ms) 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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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.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.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-05-30 14:45:25.962284"], ["created_at", "2019-05-30 14:45:25.962331"], ["updated_at", "2019-05-30 14:45:25.962331"]] 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\":\"232bab1c-c8c6-49fa-8062-ed8920161008\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T14:45:25.966Z\",\"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-05-30 14:45:25.971209"], ["created_at", "2019-05-30 14:45:25.971252"], ["updated_at", "2019-05-30 14:45:25.971252"]]  (0.3ms) RELEASE SAVEPOINT active_record_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-05-30 14:45:26.003494"], ["created_at", "2019-05-30 14:45:26.003535"], ["updated_at", "2019-05-30 14:45:26.003535"]] 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\":\"b9da2358-4f15-48ff-9276-64600b90153a\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T14:45:26.006Z\",\"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-05-30 14:45:26.008066"], ["created_at", "2019-05-30 14:45:26.008098"], ["updated_at", "2019-05-30 14:45:26.008098"]]  (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", 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-05-30 14:45:26.024431"], ["created_at", "2019-05-30 14:45:26.024469"], ["updated_at", "2019-05-30 14:45:26.024469"]] 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\":\"c153f15c-34ff-4690-9ee0-4eab66ec075f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T14:45:26.026Z\",\"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-05-30 14:45:26.027905"], ["created_at", "2019-05-30 14:45:26.027927"], ["updated_at", "2019-05-30 14:45:26.027927"]]  (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  (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-05-30 14:45:26.042757"], ["created_at", "2019-05-30 14:45:26.042795"], ["updated_at", "2019-05-30 14:45:26.042795"]]  (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.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-05-30 14:45:26.058857"], ["created_at", "2019-05-30 14:45:26.058893"], ["updated_at", "2019-05-30 14:45:26.058893"]] Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"17d2fd46-e21a-4158-929e-3ab751b7a284\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T14:45:26.060Z\",\"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-05-30 14:45:26.062310"], ["created_at", "2019-05-30 14:45:26.062333"], ["updated_at", "2019-05-30 14:45:26.062333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) 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-05-30 14:45:26.077210"], ["created_at", "2019-05-30 14:45:26.077244"], ["updated_at", "2019-05-30 14:45:26.077244"]] 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\":\"eb593d5e-e6f4-4a41-9783-3b084b691243\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T14:45:26.079Z\",\"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-05-30 14:45:26.080676"], ["created_at", "2019-05-30 14:45:26.080699"], ["updated_at", "2019-05-30 14:45:26.080699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN # Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL  (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.3ms) 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 # Destroy (0.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.4ms) DELETE FROM "delayed_jobs"  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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.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%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]  (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-05-30T14:45:26.157Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 14:45:26.160013"], ["created_at", "2019-05-30 14:45:26.160050"], ["updated_at", "2019-05-30 14:45:26.160050"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (35.1ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.162691', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.162229' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.162236') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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-05-30 14:45:26.200668', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.200357' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.200370') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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-05-30T14:45:26.203Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 14:45:26.205299"], ["created_at", "2019-05-30 14:45:26.205322"], ["updated_at", "2019-05-30 14:45:26.205322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.206756', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.206562' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.206567') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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-05-30 14:45:26.209370', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.209176' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.209183') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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) 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-05-30T14:45:26.212Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 14:45:26.214172"], ["created_at", "2019-05-30 14:45:26.214193"], ["updated_at", "2019-05-30 14:45:26.214193"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.216107', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.215907' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.215914') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.218830', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.218638' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.218645') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.238263', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.238026' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.238043') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 14:45:26.242420', locked_by = 'host:Corey-Alexander-MBP15 pid:67948' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 14:45:26.242204' AND (locked_at IS NULL OR locked_at < '2019-05-30 10:45:26.242214') OR locked_by = 'host:Corey-Alexander-MBP15 pid:67948') 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.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.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.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  (1.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (25.7ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE  (7.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.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 (40.3ms) 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.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  (1.1ms) BEGIN  (0.3ms) 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.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  (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.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.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) 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.1ms) ROLLBACK  (0.1ms) BEGIN # Destroy (0.7ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.3ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.2ms) DELETE FROM "delayed_jobs"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Update All (0.3ms) 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.1ms) 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-05-30 17:39:49.650915"], ["created_at", "2019-05-30 17:39:49.650968"], ["updated_at", "2019-05-30 17:39:49.650968"]] 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\":\"9b3ff02b-6997-4746-a259-ae1cd912bed2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T17:39:49.655Z\",\"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-05-30 17:39:49.658970"], ["created_at", "2019-05-30 17:39:49.659001"], ["updated_at", "2019-05-30 17:39:49.659001"]]  (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-05-30 17:39:49.690246"], ["created_at", "2019-05-30 17:39:49.690282"], ["updated_at", "2019-05-30 17:39:49.690282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]  (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-05-30 17:39:49.705513"], ["created_at", "2019-05-30 17:39:49.705556"], ["updated_at", "2019-05-30 17:39:49.705556"]] 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\":\"4a472432-9f84-4ecd-8672-283e7289cd8e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T17:39:49.708Z\",\"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-05-30 17:39:49.710185"], ["created_at", "2019-05-30 17:39:49.710214"], ["updated_at", "2019-05-30 17:39:49.710214"]]  (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-05-30 17:39:49.725910"], ["created_at", "2019-05-30 17:39:49.725954"], ["updated_at", "2019-05-30 17:39:49.725954"]] Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"7ae515c5-f609-4328-b726-7feccc7a55f6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T17:39:49.728Z\",\"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-05-30 17:39:49.729668"], ["created_at", "2019-05-30 17:39:49.729692"], ["updated_at", "2019-05-30 17:39:49.729692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["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-05-30 17:39:49.744174"], ["created_at", "2019-05-30 17:39:49.744211"], ["updated_at", "2019-05-30 17:39:49.744211"]] 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\":\"e8058bfd-4fe5-433f-b1c2-e38d2f5cc879\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T17:39:49.746Z\",\"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-05-30 17:39:49.747572"], ["created_at", "2019-05-30 17:39:49.747594"], ["updated_at", "2019-05-30 17:39:49.747594"]]  (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.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-05-30 17:39:49.762696"], ["created_at", "2019-05-30 17:39:49.762734"], ["updated_at", "2019-05-30 17:39:49.762734"]] 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\":\"084a168b-4a04-4f23-ba46-51b986ba01b4\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T17:39:49.764Z\",\"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-05-30 17:39:49.766575"], ["created_at", "2019-05-30 17:39:49.766609"], ["updated_at", "2019-05-30 17:39:49.766609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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.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.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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) 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-05-30 17:39:49.820741', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.820280' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.820289') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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.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-05-30T17:39:49.823Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 17:39:49.825754"], ["created_at", "2019-05-30 17:39:49.825785"], ["updated_at", "2019-05-30 17:39:49.825785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 17:39:49.827506', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.827235' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.827241') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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-05-30 17:39:49.830555', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.830364' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.830370') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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.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-05-30T17:39:49.836Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 17:39:49.837686"], ["created_at", "2019-05-30 17:39:49.837709"], ["updated_at", "2019-05-30 17:39:49.837709"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 17:39:49.839904', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.839661' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.839669') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 17:39:49.842823', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.842480' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.842493') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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) 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-05-30T17:39:49.846Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 17:39:49.848222"], ["created_at", "2019-05-30 17:39:49.848251"], ["updated_at", "2019-05-30 17:39:49.848251"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 17:39:49.850733', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.850478' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.850488') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.1ms) SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 17:39:49.853071', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.852882' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.852889') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *  (0.3ms) 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-05-30 17:39:49.872029', locked_by = 'host:Corey-Alexander-MBP15 pid:16478' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 17:39:49.871711' AND (locked_at IS NULL OR locked_at < '2019-05-30 13:39:49.871725') OR locked_by = 'host:Corey-Alexander-MBP15 pid:16478') 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.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.9ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.6ms) 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.1ms) 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.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT  (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.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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) 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-05-30 19:01:47.186508', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.185883' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.185912') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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-05-30 19:01:47.194864', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.194530' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.194546') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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", 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-05-30T19:01:47.202Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 19:01:47.213682"], ["created_at", "2019-05-30 19:01:47.213757"], ["updated_at", "2019-05-30 19:01:47.213757"]]  (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", 20]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 19:01:47.217241', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.216941' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.216953') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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.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.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 19:01:47.220432', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.220189' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.220199') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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.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-05-30T19:01:47.223Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 19:01:47.225641"], ["created_at", "2019-05-30 19:01:47.225677"], ["updated_at", "2019-05-30 19:01:47.225677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 19:01:47.227628', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.227298' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.227308') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 19:01:47.230567', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.230280' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.230293') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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]]  (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-05-30T19:01:47.234Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-05-30 19:01:47.236637"], ["created_at", "2019-05-30 19:01:47.236672"], ["updated_at", "2019-05-30 19:01:47.236672"]]  (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", 0]] Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "delayed_jobs" SET locked_at = '2019-05-30 19:01:47.239385', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.239036' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.239052') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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-05-30 19:01:47.242588', locked_by = 'host:Corey-Alexander-MBP15 pid:36425' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-05-30 19:01:47.242326' AND (locked_at IS NULL OR locked_at < '2019-05-30 15:01:47.242336') OR locked_by = 'host:Corey-Alexander-MBP15 pid:36425') 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.1ms) 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-05-30 19:01:47.267279"], ["created_at", "2019-05-30 19:01:47.267331"], ["updated_at", "2019-05-30 19:01:47.267331"]] 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\":\"e85be1f0-f9ea-4b6a-bc1d-03d7e0e62ff5\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T19:01:47.327Z\",\"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-05-30 19:01:47.330298"], ["created_at", "2019-05-30 19:01:47.330344"], ["updated_at", "2019-05-30 19:01:47.330344"]]  (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-05-30 19:01:47.344375"], ["created_at", "2019-05-30 19:01:47.344435"], ["updated_at", "2019-05-30 19:01:47.344435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 6]]  (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-05-30 19:01:47.366549"], ["created_at", "2019-05-30 19:01:47.366601"], ["updated_at", "2019-05-30 19:01:47.366601"]] 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\":\"64cbbc36-e06a-49f0-b2c9-6993960eed0f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T19:01:47.368Z\",\"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-05-30 19:01:47.370994"], ["created_at", "2019-05-30 19:01:47.371023"], ["updated_at", "2019-05-30 19:01:47.371023"]]  (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.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-05-30 19:01:47.402039"], ["created_at", "2019-05-30 19:01:47.402085"], ["updated_at", "2019-05-30 19:01:47.402085"]] 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\":\"bd6c9e6b-1169-4be2-ab70-dbe08dc504ee\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T19:01:47.405Z\",\"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-05-30 19:01:47.412910"], ["created_at", "2019-05-30 19:01:47.412961"], ["updated_at", "2019-05-30 19:01:47.412961"]]  (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.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-05-30 19:01:47.446083"], ["created_at", "2019-05-30 19:01:47.446134"], ["updated_at", "2019-05-30 19:01:47.446134"]] 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\":\"df2c5d50-97f4-42ea-933d-9ffee1f36dac\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T19:01:47.448Z\",\"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-05-30 19:01:47.449987"], ["created_at", "2019-05-30 19:01:47.450014"], ["updated_at", "2019-05-30 19:01:47.450014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 # Update (0.4ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]  (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-05-30 19:01:47.467058"], ["created_at", "2019-05-30 19:01:47.467146"], ["updated_at", "2019-05-30 19:01:47.467146"]] 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\":\"19cecb0e-9c9b-45a8-9c41-5c85311b811c\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-05-30T19:01:47.469Z\",\"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-05-30 19:01:47.471522"], ["created_at", "2019-05-30 19:01:47.471550"], ["updated_at", "2019-05-30 19:01:47.471550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN # Destroy (0.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (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.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  (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.1ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) 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.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.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.1ms) 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.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.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