test/dummy/log/test.log in delayed_job_progress-0.0.1 vs test/dummy/log/test.log in delayed_job_progress-0.0.2

- old
+ new

@@ -14343,5 +14343,18033 @@ SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-08 19:11:41.751170"], ["created_at", "2015-09-08 19:11:41.751371"], ["updated_at", "2015-09-08 19:11:41.751371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]]  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.890238"], ["created_at", "2015-09-15 14:05:49.891076"], ["updated_at", "2015-09-15 14:05:49.891076"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-09-15T10:05:49-0400: [Worker(host:SeaLion.local pid:996)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-09-15 14:05:49.893139', "progress_current" = 1000 WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-09-15T10:05:49-0400: [Worker(host:SeaLion.local pid:996)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-09-15 14:05:49.898423"], ["created_at", "2015-09-15 14:05:49.898631"], ["updated_at", "2015-09-15 14:05:49.898631"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-09-15T10:05:49-0400: [Worker(host:SeaLion.local pid:996)] Job Thing#something (id=1) RUNNING + SQL (0.0ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-09-15T10:05:49-0400: [Worker(host:SeaLion.local pid:996)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.907711"], ["created_at", "2015-09-15 14:05:49.907924"], ["updated_at", "2015-09-15 14:05:49.907924"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-09-15 14:05:49.908991' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.910639"], ["created_at", "2015-09-15 14:05:49.910811"], ["updated_at", "2015-09-15 14:05:49.910811"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-09-15 14:05:49.914837"], ["created_at", "2015-09-15 14:05:49.915071"], ["updated_at", "2015-09-15 14:05:49.915071"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.925501"], ["created_at", "2015-09-15 14:05:49.925725"], ["updated_at", "2015-09-15 14:05:49.925725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.930869"], ["created_at", "2015-09-15 14:05:49.931114"], ["updated_at", "2015-09-15 14:05:49.931114"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.937682"], ["created_at", "2015-09-15 14:05:49.937907"], ["updated_at", "2015-09-15 14:05:49.937907"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-09-15 14:05:49.939735', "progress_current" = 1000 WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.945622"], ["created_at", "2015-09-15 14:05:49.945845"], ["updated_at", "2015-09-15 14:05:49.945845"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-09-15 14:05:49.947138' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.949568"], ["created_at", "2015-09-15 14:05:49.949748"], ["updated_at", "2015-09-15 14:05:49.949748"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:49.998342"], ["created_at", "2015-09-15 14:05:49.998534"], ["updated_at", "2015-09-15 14:05:49.998534"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:50.009757"], ["created_at", "2015-09-15 14:05:50.009957"], ["updated_at", "2015-09-15 14:05:50.009957"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:50.016639"], ["created_at", "2015-09-15 14:05:50.016873"], ["updated_at", "2015-09-15 14:05:50.016873"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (4.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:50.032513"], ["created_at", "2015-09-15 14:05:50.032732"], ["updated_at", "2015-09-15 14:05:50.032732"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-09-15 14:05:50.034053' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-09-15 14:05:50.035357', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:50.041072"], ["created_at", "2015-09-15 14:05:50.041282"], ["updated_at", "2015-09-15 14:05:50.041282"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-09-15 14:05:50.048244"], ["created_at", "2015-09-15 14:05:50.048440"], ["updated_at", "2015-09-15 14:05:50.048440"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (1.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.0ms) select sqlite_version(*) +  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.5ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:17.968873"], ["created_at", "2015-12-01 16:04:17.969168"], ["updated_at", "2015-12-01 16:04:17.969168"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.4ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.4ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:17.983046"], ["created_at", "2015-12-01 16:04:17.983391"], ["updated_at", "2015-12-01 16:04:17.983391"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:17.993462"], ["created_at", "2015-12-01 16:04:17.993708"], ["updated_at", "2015-12-01 16:04:17.993708"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.001605"], ["created_at", "2015-12-01 16:04:18.001800"], ["updated_at", "2015-12-01 16:04:18.001800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.010810"], ["created_at", "2015-12-01 16:04:18.010994"], ["updated_at", "2015-12-01 16:04:18.010994"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.020180"], ["created_at", "2015-12-01 16:04:18.020437"], ["updated_at", "2015-12-01 16:04:18.020437"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-01 16:04:18.022127' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-01 16:04:18.023920', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.030810"], ["created_at", "2015-12-01 16:04:18.031056"], ["updated_at", "2015-12-01 16:04:18.031056"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-01 16:04:18.032697' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.035489"], ["created_at", "2015-12-01 16:04:18.035783"], ["updated_at", "2015-12-01 16:04:18.035783"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.041221"], ["created_at", "2015-12-01 16:04:18.041429"], ["updated_at", "2015-12-01 16:04:18.041429"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------- +JobTest: test_job_does_not_reserve_completed +-------------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.047659"], ["created_at", "2015-12-01 16:04:18.047916"], ["updated_at", "2015-12-01 16:04:18.047916"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-01 16:04:18.052913"], ["created_at", "2015-12-01 16:04:18.053141"], ["updated_at", "2015-12-01 16:04:18.053141"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.061644"], ["created_at", "2015-12-01 16:04:18.061849"], ["updated_at", "2015-12-01 16:04:18.061849"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:04:18.063039' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.065113"], ["created_at", "2015-12-01 16:04:18.065308"], ["updated_at", "2015-12-01 16:04:18.065308"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.069836"], ["created_at", "2015-12-01 16:04:18.070030"], ["updated_at", "2015-12-01 16:04:18.070030"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:04:18.071516', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-01 16:04:18.076595"], ["created_at", "2015-12-01 16:04:18.076779"], ["updated_at", "2015-12-01 16:04:18.076779"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-01T11:04:18-0500: [Worker(host:SeaLion.local pid:60153)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:04:18-0500: [Worker(host:SeaLion.local pid:60153)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:04:18.084993"], ["created_at", "2015-12-01 16:04:18.085222"], ["updated_at", "2015-12-01 16:04:18.085222"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:04:18-0500: [Worker(host:SeaLion.local pid:60153)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:04:18.086851', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-01T11:04:18-0500: [Worker(host:SeaLion.local pid:60153)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.2ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:06:15.771666"], ["created_at", "2015-12-01 16:06:15.771969"], ["updated_at", "2015-12-01 16:06:15.771969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:06:15-0500: [Worker(host:SeaLion.local pid:60334)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:06:15.774064', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-01T11:06:15-0500: [Worker(host:SeaLion.local pid:60334)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:06:36.819127"], ["created_at", "2015-12-01 16:06:36.819385"], ["updated_at", "2015-12-01 16:06:36.819385"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:06:36-0500: [Worker(host:SeaLion.local pid:60431)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:06:36.821275', "progress_current" = 1000 WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-01T11:06:36-0500: [Worker(host:SeaLion.local pid:60431)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.2ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:11:06.058261"], ["created_at", "2015-12-01 16:11:06.058539"], ["updated_at", "2015-12-01 16:11:06.058539"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:11:06.059804' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:11:06.059812') OR locked_by = 'host:SeaLion.local pid:60780') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-01 16:11:06.060122', "locked_by" = 'host:SeaLion.local pid:60780' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:11:06.059804' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:11:06.059812') OR locked_by = 'host:SeaLion.local pid:60780') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:11:27.420656"], ["created_at", "2015-12-01 16:11:27.421014"], ["updated_at", "2015-12-01 16:11:27.421014"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:12:12.161215"], ["created_at", "2015-12-01 16:12:12.161534"], ["updated_at", "2015-12-01 16:12:12.161534"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:12:12.162835' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:12:12.163325' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:12:12.163333') OR locked_by = 'host:SeaLion.local pid:60979') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 +  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:12:59.203283"], ["created_at", "2015-12-01 16:12:59.203632"], ["updated_at", "2015-12-01 16:12:59.203632"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:12:59.205200' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:12:59.205768' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:12:59.205776') OR locked_by = 'host:SeaLion.local pid:61106') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:29.980787"], ["created_at", "2015-12-01 16:13:29.981073"], ["updated_at", "2015-12-01 16:13:29.981073"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:13:29.982428' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:29.982951' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:29.982959') OR locked_by = 'host:SeaLion.local pid:61218') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:29.984411' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:29.984419') OR locked_by = 'host:SeaLion.local pid:61218') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-01 16:13:29.984585', "locked_by" = 'host:SeaLion.local pid:61218' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:29.984411' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:29.984419') OR locked_by = 'host:SeaLion.local pid:61218') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.464552"], ["created_at", "2015-12-01 16:13:41.464887"], ["updated_at", "2015-12-01 16:13:41.464887"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.475200"], ["created_at", "2015-12-01 16:13:41.475420"], ["updated_at", "2015-12-01 16:13:41.475420"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.483385"], ["created_at", "2015-12-01 16:13:41.483546"], ["updated_at", "2015-12-01 16:13:41.483546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.492412"], ["created_at", "2015-12-01 16:13:41.492585"], ["updated_at", "2015-12-01 16:13:41.492585"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.500784"], ["created_at", "2015-12-01 16:13:41.501075"], ["updated_at", "2015-12-01 16:13:41.501075"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-01 16:13:41.502525' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-01 16:13:41.504295', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.510248"], ["created_at", "2015-12-01 16:13:41.510437"], ["updated_at", "2015-12-01 16:13:41.510437"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.524735"], ["created_at", "2015-12-01 16:13:41.524955"], ["updated_at", "2015-12-01 16:13:41.524955"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:13:41-0500: [Worker(host:SeaLion.local pid:61345)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:13:41.527070', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-01T11:13:41-0500: [Worker(host:SeaLion.local pid:61345)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-01 16:13:41.532390"], ["created_at", "2015-12-01 16:13:41.532638"], ["updated_at", "2015-12-01 16:13:41.532638"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-01T11:13:41-0500: [Worker(host:SeaLion.local pid:61345)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-01T11:13:41-0500: [Worker(host:SeaLion.local pid:61345)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.542973"], ["created_at", "2015-12-01 16:13:41.543169"], ["updated_at", "2015-12-01 16:13:41.543169"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.550741"], ["created_at", "2015-12-01 16:13:41.550988"], ["updated_at", "2015-12-01 16:13:41.550988"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-01 16:13:41.552536' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.555197"], ["created_at", "2015-12-01 16:13:41.555460"], ["updated_at", "2015-12-01 16:13:41.555460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.561078"], ["created_at", "2015-12-01 16:13:41.561311"], ["updated_at", "2015-12-01 16:13:41.561311"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:13:41.562435' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.564657"], ["created_at", "2015-12-01 16:13:41.564837"], ["updated_at", "2015-12-01 16:13:41.564837"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.570415"], ["created_at", "2015-12-01 16:13:41.570663"], ["updated_at", "2015-12-01 16:13:41.570663"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.575684"], ["created_at", "2015-12-01 16:13:41.575865"], ["updated_at", "2015-12-01 16:13:41.575865"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:13:41.576989' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:41.577469' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:41.577476') OR locked_by = 'host:SeaLion.local pid:61345') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:41.578922' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:41.578930') OR locked_by = 'host:SeaLion.local pid:61345') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-01 16:13:41.579069', "locked_by" = 'host:SeaLion.local pid:61345' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-01 16:13:41.578922' AND (locked_at IS NULL OR locked_at < '2015-12-01 12:13:41.578930') OR locked_by = 'host:SeaLion.local pid:61345') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-01 16:13:41.584717"], ["created_at", "2015-12-01 16:13:41.584967"], ["updated_at", "2015-12-01 16:13:41.584967"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-01 16:13:41.594980"], ["created_at", "2015-12-01 16:13:41.595228"], ["updated_at", "2015-12-01 16:13:41.595228"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-01 16:13:41.596987', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.0ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:05.975903"], ["created_at", "2015-12-10 18:02:05.976332"], ["updated_at", "2015-12-10 18:02:05.976332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:05.991042"], ["created_at", "2015-12-10 18:02:05.991298"], ["updated_at", "2015-12-10 18:02:05.991298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:05.999408"], ["created_at", "2015-12-10 18:02:05.999616"], ["updated_at", "2015-12-10 18:02:05.999616"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:02:06.000608' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:02:06.002018', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.007779"], ["created_at", "2015-12-10 18:02:06.007980"], ["updated_at", "2015-12-10 18:02:06.007980"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.014702"], ["created_at", "2015-12-10 18:02:06.014875"], ["updated_at", "2015-12-10 18:02:06.014875"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.023732"], ["created_at", "2015-12-10 18:02:06.023962"], ["updated_at", "2015-12-10 18:02:06.023962"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.3ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.036123"], ["created_at", "2015-12-10 18:02:06.036366"], ["updated_at", "2015-12-10 18:02:06.036366"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:02:06-0500: [Worker(host:SeaLion.local pid:35592)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:02:06.038699', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:02:06-0500: [Worker(host:SeaLion.local pid:35592)] Job TestJob (id=1) COMPLETED after 0.0013 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.2ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:02:06.044246"], ["created_at", "2015-12-10 18:02:06.044480"], ["updated_at", "2015-12-10 18:02:06.044480"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:02:06-0500: [Worker(host:SeaLion.local pid:35592)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:02:06-0500: [Worker(host:SeaLion.local pid:35592)] Job Thing#something (id=1) COMPLETED after 0.0011 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.058719"], ["created_at", "2015-12-10 18:02:06.058996"], ["updated_at", "2015-12-10 18:02:06.058996"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:02:06.060417' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:02:06.060990' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:02:06.061000') OR locked_by = 'host:SeaLion.local pid:35592') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:02:06.062769' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:02:06.062789') OR locked_by = 'host:SeaLion.local pid:35592') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:02:06.062971', "locked_by" = 'host:SeaLion.local pid:35592' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:02:06.062769' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:02:06.062789') OR locked_by = 'host:SeaLion.local pid:35592') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.069977"], ["created_at", "2015-12-10 18:02:06.070252"], ["updated_at", "2015-12-10 18:02:06.070252"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:02:06.071920' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.074787"], ["created_at", "2015-12-10 18:02:06.075042"], ["updated_at", "2015-12-10 18:02:06.075042"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.081481"], ["created_at", "2015-12-10 18:02:06.081707"], ["updated_at", "2015-12-10 18:02:06.081707"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.088733"], ["created_at", "2015-12-10 18:02:06.088992"], ["updated_at", "2015-12-10 18:02:06.088992"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:02:06.093903"], ["created_at", "2015-12-10 18:02:06.094148"], ["updated_at", "2015-12-10 18:02:06.094148"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.103248"], ["created_at", "2015-12-10 18:02:06.103439"], ["updated_at", "2015-12-10 18:02:06.103439"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:02:06.104648' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.107017"], ["created_at", "2015-12-10 18:02:06.107227"], ["updated_at", "2015-12-10 18:02:06.107227"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:02:06.112608"], ["created_at", "2015-12-10 18:02:06.112828"], ["updated_at", "2015-12-10 18:02:06.112828"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:02:06.114452', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.1ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.355717"], ["created_at", "2015-12-10 18:03:32.356083"], ["updated_at", "2015-12-10 18:03:32.356083"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.5ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.369301"], ["created_at", "2015-12-10 18:03:32.369573"], ["updated_at", "2015-12-10 18:03:32.369573"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.377591"], ["created_at", "2015-12-10 18:03:32.377842"], ["updated_at", "2015-12-10 18:03:32.377842"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:03:32.379370' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:03:32.381433', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.388364"], ["created_at", "2015-12-10 18:03:32.388640"], ["updated_at", "2015-12-10 18:03:32.388640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.398019"], ["created_at", "2015-12-10 18:03:32.398223"], ["updated_at", "2015-12-10 18:03:32.398223"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.406386"], ["created_at", "2015-12-10 18:03:32.406644"], ["updated_at", "2015-12-10 18:03:32.406644"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.416470"], ["created_at", "2015-12-10 18:03:32.416695"], ["updated_at", "2015-12-10 18:03:32.416695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:03:32-0500: [Worker(host:SeaLion.local pid:36040)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:32.418880', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:03:32-0500: [Worker(host:SeaLion.local pid:36040)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:03:32.424133"], ["created_at", "2015-12-10 18:03:32.424382"], ["updated_at", "2015-12-10 18:03:32.424382"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:03:32-0500: [Worker(host:SeaLion.local pid:36040)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:03:32-0500: [Worker(host:SeaLion.local pid:36040)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.438645"], ["created_at", "2015-12-10 18:03:32.438902"], ["updated_at", "2015-12-10 18:03:32.438902"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.447177"], ["created_at", "2015-12-10 18:03:32.447456"], ["updated_at", "2015-12-10 18:03:32.447456"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:03:32.449054' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.452347"], ["created_at", "2015-12-10 18:03:32.452742"], ["updated_at", "2015-12-10 18:03:32.452742"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.458045"], ["created_at", "2015-12-10 18:03:32.458253"], ["updated_at", "2015-12-10 18:03:32.458253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:32.459383' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:32.459898' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:32.459906') OR locked_by = 'host:SeaLion.local pid:36040') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:32.461387' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:32.461394') OR locked_by = 'host:SeaLion.local pid:36040') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:03:32.461547', "locked_by" = 'host:SeaLion.local pid:36040' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:32.461387' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:32.461394') OR locked_by = 'host:SeaLion.local pid:36040') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.467467"], ["created_at", "2015-12-10 18:03:32.467703"], ["updated_at", "2015-12-10 18:03:32.467703"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:32.469158' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.471554"], ["created_at", "2015-12-10 18:03:32.471725"], ["updated_at", "2015-12-10 18:03:32.471725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:03:32.475969"], ["created_at", "2015-12-10 18:03:32.476281"], ["updated_at", "2015-12-10 18:03:32.476281"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.486749"], ["created_at", "2015-12-10 18:03:32.486998"], ["updated_at", "2015-12-10 18:03:32.486998"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:32.492803"], ["created_at", "2015-12-10 18:03:32.493039"], ["updated_at", "2015-12-10 18:03:32.493039"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:32.494454', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.2ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.289023"], ["created_at", "2015-12-10 18:03:41.289328"], ["updated_at", "2015-12-10 18:03:41.289328"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:03:41-0500: [Worker(host:SeaLion.local pid:36125)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:41.291391', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:03:41-0500: [Worker(host:SeaLion.local pid:36125)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:03:41.296920"], ["created_at", "2015-12-10 18:03:41.297167"], ["updated_at", "2015-12-10 18:03:41.297167"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:03:41-0500: [Worker(host:SeaLion.local pid:36125)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:03:41-0500: [Worker(host:SeaLion.local pid:36125)] Job Thing#something (id=1) COMPLETED after 0.0014 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.307035"], ["created_at", "2015-12-10 18:03:41.307251"], ["updated_at", "2015-12-10 18:03:41.307251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.313025"], ["created_at", "2015-12-10 18:03:41.313258"], ["updated_at", "2015-12-10 18:03:41.313258"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.319115"], ["created_at", "2015-12-10 18:03:41.319319"], ["updated_at", "2015-12-10 18:03:41.319319"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:41.320798', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:03:41.325615"], ["created_at", "2015-12-10 18:03:41.325823"], ["updated_at", "2015-12-10 18:03:41.325823"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.333004"], ["created_at", "2015-12-10 18:03:41.333207"], ["updated_at", "2015-12-10 18:03:41.333207"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:41.334275' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:41.334746' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:41.334754') OR locked_by = 'host:SeaLion.local pid:36125') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:41.336130' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:41.336138') OR locked_by = 'host:SeaLion.local pid:36125') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:03:41.336288', "locked_by" = 'host:SeaLion.local pid:36125' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:03:41.336130' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:03:41.336138') OR locked_by = 'host:SeaLion.local pid:36125') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.342606"], ["created_at", "2015-12-10 18:03:41.342869"], ["updated_at", "2015-12-10 18:03:41.342869"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:03:41.344157' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.346089"], ["created_at", "2015-12-10 18:03:41.346266"], ["updated_at", "2015-12-10 18:03:41.346266"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.351243"], ["created_at", "2015-12-10 18:03:41.351477"], ["updated_at", "2015-12-10 18:03:41.351477"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:03:41.352933' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.355241"], ["created_at", "2015-12-10 18:03:41.355446"], ["updated_at", "2015-12-10 18:03:41.355446"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.388419"], ["created_at", "2015-12-10 18:03:41.388656"], ["updated_at", "2015-12-10 18:03:41.388656"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.399172"], ["created_at", "2015-12-10 18:03:41.399390"], ["updated_at", "2015-12-10 18:03:41.399390"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.407241"], ["created_at", "2015-12-10 18:03:41.407449"], ["updated_at", "2015-12-10 18:03:41.407449"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.416927"], ["created_at", "2015-12-10 18:03:41.417115"], ["updated_at", "2015-12-10 18:03:41.417115"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.423761"], ["created_at", "2015-12-10 18:03:41.423991"], ["updated_at", "2015-12-10 18:03:41.423991"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:03:41.425148' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:03:41.426546', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:03:41.433225"], ["created_at", "2015-12-10 18:03:41.433478"], ["updated_at", "2015-12-10 18:03:41.433478"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.0ms) select sqlite_version(*) +  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.520502"], ["created_at", "2015-12-10 18:04:37.520815"], ["updated_at", "2015-12-10 18:04:37.520815"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.534250"], ["created_at", "2015-12-10 18:04:37.534518"], ["updated_at", "2015-12-10 18:04:37.534518"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.543288"], ["created_at", "2015-12-10 18:04:37.543518"], ["updated_at", "2015-12-10 18:04:37.543518"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.553341"], ["created_at", "2015-12-10 18:04:37.553536"], ["updated_at", "2015-12-10 18:04:37.553536"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.563132"], ["created_at", "2015-12-10 18:04:37.563349"], ["updated_at", "2015-12-10 18:04:37.563349"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.571956"], ["created_at", "2015-12-10 18:04:37.572201"], ["updated_at", "2015-12-10 18:04:37.572201"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:04:37.573613' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:04:37.575191', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.581597"], ["created_at", "2015-12-10 18:04:37.581779"], ["updated_at", "2015-12-10 18:04:37.581779"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:04:37-0500: [Worker(host:SeaLion.local pid:36333)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:04:37.583521', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:04:37-0500: [Worker(host:SeaLion.local pid:36333)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:04:37.588599"], ["created_at", "2015-12-10 18:04:37.588824"], ["updated_at", "2015-12-10 18:04:37.588824"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:04:37-0500: [Worker(host:SeaLion.local pid:36333)] Job Thing#something (id=1) RUNNING + SQL (0.0ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:04:37-0500: [Worker(host:SeaLion.local pid:36333)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.598054"], ["created_at", "2015-12-10 18:04:37.598236"], ["updated_at", "2015-12-10 18:04:37.598236"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.605332"], ["created_at", "2015-12-10 18:04:37.605566"], ["updated_at", "2015-12-10 18:04:37.605566"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:04:37.607237' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.610143"], ["created_at", "2015-12-10 18:04:37.610422"], ["updated_at", "2015-12-10 18:04:37.610422"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.616827"], ["created_at", "2015-12-10 18:04:37.617103"], ["updated_at", "2015-12-10 18:04:37.617103"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:04:37.618958', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:04:37.625215"], ["created_at", "2015-12-10 18:04:37.625454"], ["updated_at", "2015-12-10 18:04:37.625454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.634747"], ["created_at", "2015-12-10 18:04:37.635013"], ["updated_at", "2015-12-10 18:04:37.635013"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:04:37.636510' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.639527"], ["created_at", "2015-12-10 18:04:37.639803"], ["updated_at", "2015-12-10 18:04:37.639803"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.645924"], ["created_at", "2015-12-10 18:04:37.646167"], ["updated_at", "2015-12-10 18:04:37.646167"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:04:37.647565' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:04:37.648111' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:04:37.648121') OR locked_by = 'host:SeaLion.local pid:36333') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:04:37.649763' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:04:37.649774') OR locked_by = 'host:SeaLion.local pid:36333') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:04:37.649978', "locked_by" = 'host:SeaLion.local pid:36333' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:04:37.649763' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:04:37.649774') OR locked_by = 'host:SeaLion.local pid:36333') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:04:37.655851"], ["created_at", "2015-12-10 18:04:37.656077"], ["updated_at", "2015-12-10 18:04:37.656077"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.369068"], ["created_at", "2015-12-10 18:05:12.369346"], ["updated_at", "2015-12-10 18:05:12.369346"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (1.2ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.382452"], ["created_at", "2015-12-10 18:05:12.382630"], ["updated_at", "2015-12-10 18:05:12.382630"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.390497"], ["created_at", "2015-12-10 18:05:12.390701"], ["updated_at", "2015-12-10 18:05:12.390701"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.397711"], ["created_at", "2015-12-10 18:05:12.397922"], ["updated_at", "2015-12-10 18:05:12.397922"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.406315"], ["created_at", "2015-12-10 18:05:12.406511"], ["updated_at", "2015-12-10 18:05:12.406511"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:05:12.407727' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:05:12.409020', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.416212"], ["created_at", "2015-12-10 18:05:12.416477"], ["updated_at", "2015-12-10 18:05:12.416477"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.426142"], ["created_at", "2015-12-10 18:05:12.426356"], ["updated_at", "2015-12-10 18:05:12.426356"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:12.427978', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.434520"], ["created_at", "2015-12-10 18:05:12.434787"], ["updated_at", "2015-12-10 18:05:12.434787"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.443099"], ["created_at", "2015-12-10 18:05:12.443442"], ["updated_at", "2015-12-10 18:05:12.443442"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:12.445051' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.447686"], ["created_at", "2015-12-10 18:05:12.447925"], ["updated_at", "2015-12-10 18:05:12.447925"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.453370"], ["created_at", "2015-12-10 18:05:12.453601"], ["updated_at", "2015-12-10 18:05:12.453601"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:05:12.455175' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.457914"], ["created_at", "2015-12-10 18:05:12.458161"], ["updated_at", "2015-12-10 18:05:12.458161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:05:12.464918"], ["created_at", "2015-12-10 18:05:12.465177"], ["updated_at", "2015-12-10 18:05:12.465177"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.475302"], ["created_at", "2015-12-10 18:05:12.475499"], ["updated_at", "2015-12-10 18:05:12.475499"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.480515"], ["created_at", "2015-12-10 18:05:12.480860"], ["updated_at", "2015-12-10 18:05:12.480860"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:12.482722' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:12.483506' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:12.483518') OR locked_by = 'host:SeaLion.local pid:36463') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:12.485582' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:12.485595') OR locked_by = 'host:SeaLion.local pid:36463') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:05:12.485815', "locked_by" = 'host:SeaLion.local pid:36463' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:12.485582' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:12.485595') OR locked_by = 'host:SeaLion.local pid:36463') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:12.493001"], ["created_at", "2015-12-10 18:05:12.493216"], ["updated_at", "2015-12-10 18:05:12.493216"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:05:12-0500: [Worker(host:SeaLion.local pid:36463)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:12.495071', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:05:12-0500: [Worker(host:SeaLion.local pid:36463)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:05:12.499421"], ["created_at", "2015-12-10 18:05:12.499608"], ["updated_at", "2015-12-10 18:05:12.499608"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:05:12-0500: [Worker(host:SeaLion.local pid:36463)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:05:12-0500: [Worker(host:SeaLion.local pid:36463)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.224519"], ["created_at", "2015-12-10 18:05:18.224817"], ["updated_at", "2015-12-10 18:05:18.224817"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:05:18-0500: [Worker(host:SeaLion.local pid:36531)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:18.226855', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:05:18-0500: [Worker(host:SeaLion.local pid:36531)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:05:18.231979"], ["created_at", "2015-12-10 18:05:18.232248"], ["updated_at", "2015-12-10 18:05:18.232248"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:05:18-0500: [Worker(host:SeaLion.local pid:36531)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:05:18-0500: [Worker(host:SeaLion.local pid:36531)] Job Thing#something (id=1) COMPLETED after 0.0015 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.241932"], ["created_at", "2015-12-10 18:05:18.242102"], ["updated_at", "2015-12-10 18:05:18.242102"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:18.243238' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:18.243645' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:18.243652') OR locked_by = 'host:SeaLion.local pid:36531') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:18.245001' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:18.245008') OR locked_by = 'host:SeaLion.local pid:36531') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:05:18.245159', "locked_by" = 'host:SeaLion.local pid:36531' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:05:18.245001' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:05:18.245008') OR locked_by = 'host:SeaLion.local pid:36531') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.250334"], ["created_at", "2015-12-10 18:05:18.250573"], ["updated_at", "2015-12-10 18:05:18.250573"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:05:18.251764' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.253565"], ["created_at", "2015-12-10 18:05:18.253768"], ["updated_at", "2015-12-10 18:05:18.253768"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.259568"], ["created_at", "2015-12-10 18:05:18.259844"], ["updated_at", "2015-12-10 18:05:18.259844"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.268194"], ["created_at", "2015-12-10 18:05:18.268435"], ["updated_at", "2015-12-10 18:05:18.268435"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:18.269807' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.271915"], ["created_at", "2015-12-10 18:05:18.272137"], ["updated_at", "2015-12-10 18:05:18.272137"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.277873"], ["created_at", "2015-12-10 18:05:18.278083"], ["updated_at", "2015-12-10 18:05:18.278083"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:05:18.282741"], ["created_at", "2015-12-10 18:05:18.282946"], ["updated_at", "2015-12-10 18:05:18.282946"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.291971"], ["created_at", "2015-12-10 18:05:18.292208"], ["updated_at", "2015-12-10 18:05:18.292208"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:05:18.293832', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.329422"], ["created_at", "2015-12-10 18:05:18.329754"], ["updated_at", "2015-12-10 18:05:18.329754"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.343185"], ["created_at", "2015-12-10 18:05:18.343434"], ["updated_at", "2015-12-10 18:05:18.343434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.351566"], ["created_at", "2015-12-10 18:05:18.351785"], ["updated_at", "2015-12-10 18:05:18.351785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.359326"], ["created_at", "2015-12-10 18:05:18.359514"], ["updated_at", "2015-12-10 18:05:18.359514"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.367043"], ["created_at", "2015-12-10 18:05:18.367290"], ["updated_at", "2015-12-10 18:05:18.367290"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:05:18.375700"], ["created_at", "2015-12-10 18:05:18.375965"], ["updated_at", "2015-12-10 18:05:18.375965"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:05:18.377910' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:05:18.379877', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.2ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.0ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.269878"], ["created_at", "2015-12-10 18:10:34.270185"], ["updated_at", "2015-12-10 18:10:34.270185"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (1.2ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.282983"], ["created_at", "2015-12-10 18:10:34.283153"], ["updated_at", "2015-12-10 18:10:34.283153"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.291268"], ["created_at", "2015-12-10 18:10:34.291464"], ["updated_at", "2015-12-10 18:10:34.291464"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.298291"], ["created_at", "2015-12-10 18:10:34.298467"], ["updated_at", "2015-12-10 18:10:34.298467"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.306422"], ["created_at", "2015-12-10 18:10:34.306709"], ["updated_at", "2015-12-10 18:10:34.306709"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:10:34.308224' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:10:34.310030', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.316856"], ["created_at", "2015-12-10 18:10:34.317151"], ["updated_at", "2015-12-10 18:10:34.317151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:10:34.328971"], ["created_at", "2015-12-10 18:10:34.329166"], ["updated_at", "2015-12-10 18:10:34.329166"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.337952"], ["created_at", "2015-12-10 18:10:34.338172"], ["updated_at", "2015-12-10 18:10:34.338172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:10:34.339675' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.341969"], ["created_at", "2015-12-10 18:10:34.342177"], ["updated_at", "2015-12-10 18:10:34.342177"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.347311"], ["created_at", "2015-12-10 18:10:34.347506"], ["updated_at", "2015-12-10 18:10:34.347506"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.354559"], ["created_at", "2015-12-10 18:10:34.354835"], ["updated_at", "2015-12-10 18:10:34.354835"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:10:34.356136' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.358542"], ["created_at", "2015-12-10 18:10:34.358762"], ["updated_at", "2015-12-10 18:10:34.358762"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.363978"], ["created_at", "2015-12-10 18:10:34.364239"], ["updated_at", "2015-12-10 18:10:34.364239"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.370102"], ["created_at", "2015-12-10 18:10:34.370328"], ["updated_at", "2015-12-10 18:10:34.370328"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:10:34.371966', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.379242"], ["created_at", "2015-12-10 18:10:34.379508"], ["updated_at", "2015-12-10 18:10:34.379508"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:10:34.381168' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:10:34.381771' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:10:34.381781') OR locked_by = 'host:SeaLion.local pid:36845') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:10:34.383582' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:10:34.383620') OR locked_by = 'host:SeaLion.local pid:36845') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.9ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:10:34.383774', "locked_by" = 'host:SeaLion.local pid:36845' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:10:34.383582' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:10:34.383620') OR locked_by = 'host:SeaLion.local pid:36845') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["run_at", "2015-12-10 18:10:34.392295"], ["created_at", "2015-12-10 18:10:34.392584"], ["updated_at", "2015-12-10 18:10:34.392584"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:10:34-0500: [Worker(host:SeaLion.local pid:36845)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:10:34.394983', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:10:34-0500: [Worker(host:SeaLion.local pid:36845)] Job TestJob (id=1) COMPLETED after 0.0012 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["run_at", "2015-12-10 18:10:34.400513"], ["created_at", "2015-12-10 18:10:34.400758"], ["updated_at", "2015-12-10 18:10:34.400758"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:10:34-0500: [Worker(host:SeaLion.local pid:36845)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:10:34-0500: [Worker(host:SeaLion.local pid:36845)] Job Thing#something (id=1) COMPLETED after 0.0016 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "What"], ["run_at", "2015-12-10 18:11:42.221890"], ["created_at", "2015-12-10 18:11:42.222232"], ["updated_at", "2015-12-10 18:11:42.222232"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "What"], ["run_at", "2015-12-10 18:11:55.871528"], ["created_at", "2015-12-10 18:11:55.871866"], ["updated_at", "2015-12-10 18:11:55.871866"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "Delayed::Backend::ActiveRecord::Job"], ["run_at", "2015-12-10 18:12:10.410530"], ["created_at", "2015-12-10 18:12:10.410823"], ["updated_at", "2015-12-10 18:12:10.410823"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "#<Delayed::Backend::ActiveRecord::Job:0x007ff84f576aa8>"], ["run_at", "2015-12-10 18:12:28.871951"], ["created_at", "2015-12-10 18:12:28.872251"], ["updated_at", "2015-12-10 18:12:28.872251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", "2015-12-10 18:13:02.091937"], ["created_at", "2015-12-10 18:13:02.092291"], ["updated_at", "2015-12-10 18:13:02.092291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "String"], ["run_at", "2015-12-10 18:13:20.218156"], ["created_at", "2015-12-10 18:13:20.218541"], ["updated_at", "2015-12-10 18:13:20.218541"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.2ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", "2015-12-10 18:13:31.001530"], ["created_at", "2015-12-10 18:13:31.001898"], ["updated_at", "2015-12-10 18:13:31.001898"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:08.891909"], ["created_at", "2015-12-10 18:15:08.892231"], ["updated_at", "2015-12-10 18:15:08.892231"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.0ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.5ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.633568"], ["created_at", "2015-12-10 18:15:31.633888"], ["updated_at", "2015-12-10 18:15:31.633888"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:15:31-0500: [Worker(host:SeaLion.local pid:37786)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:15:31.635863', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2015-12-10T13:15:31-0500: [Worker(host:SeaLion.local pid:37786)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2015-12-10 18:15:31.640929"], ["created_at", "2015-12-10 18:15:31.641154"], ["updated_at", "2015-12-10 18:15:31.641154"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2015-12-10T13:15:31-0500: [Worker(host:SeaLion.local pid:37786)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2015-12-10T13:15:31-0500: [Worker(host:SeaLion.local pid:37786)] Job Thing#something (id=1) COMPLETED after 0.0015 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.651017"], ["created_at", "2015-12-10 18:15:31.651249"], ["updated_at", "2015-12-10 18:15:31.651249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:15:31.652743', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.657888"], ["created_at", "2015-12-10 18:15:31.658088"], ["updated_at", "2015-12-10 18:15:31.658088"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:15:31.659237' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:15:31.659709' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:15:31.659718') OR locked_by = 'host:SeaLion.local pid:37786') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:15:31.661251' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:15:31.661259') OR locked_by = 'host:SeaLion.local pid:37786') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2015-12-10 18:15:31.661407', "locked_by" = 'host:SeaLion.local pid:37786' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2015-12-10 18:15:31.661251' AND (locked_at IS NULL OR locked_at < '2015-12-10 14:15:31.661259') OR locked_by = 'host:SeaLion.local pid:37786') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.666315"], ["created_at", "2015-12-10 18:15:31.666483"], ["updated_at", "2015-12-10 18:15:31.666483"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2015-12-10 18:15:31.667557' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.669295"], ["created_at", "2015-12-10 18:15:31.669450"], ["updated_at", "2015-12-10 18:15:31.669450"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.674496"], ["created_at", "2015-12-10 18:15:31.674674"], ["updated_at", "2015-12-10 18:15:31.674674"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2015-12-10 18:15:31.680265"], ["created_at", "2015-12-10 18:15:31.680480"], ["updated_at", "2015-12-10 18:15:31.680480"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.689714"], ["created_at", "2015-12-10 18:15:31.689951"], ["updated_at", "2015-12-10 18:15:31.689951"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:15:31.691407' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.694000"], ["created_at", "2015-12-10 18:15:31.694194"], ["updated_at", "2015-12-10 18:15:31.694194"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.699255"], ["created_at", "2015-12-10 18:15:31.699472"], ["updated_at", "2015-12-10 18:15:31.699472"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.734907"], ["created_at", "2015-12-10 18:15:31.735148"], ["updated_at", "2015-12-10 18:15:31.735148"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.746820"], ["created_at", "2015-12-10 18:15:31.747064"], ["updated_at", "2015-12-10 18:15:31.747064"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.754533"], ["created_at", "2015-12-10 18:15:31.754728"], ["updated_at", "2015-12-10 18:15:31.754728"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.765194"], ["created_at", "2015-12-10 18:15:31.765479"], ["updated_at", "2015-12-10 18:15:31.765479"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.774104"], ["created_at", "2015-12-10 18:15:31.774301"], ["updated_at", "2015-12-10 18:15:31.774301"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2015-12-10 18:15:31.775477' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2015-12-10 18:15:31.776893', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2015-12-10 18:15:31.783467"], ["created_at", "2015-12-10 18:15:31.783778"], ["updated_at", "2015-12-10 18:15:31.783778"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.0ms) select sqlite_version(*) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.2ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.501528"], ["created_at", "2016-02-08 19:48:05.502290"], ["updated_at", "2016-02-08 19:48:05.502290"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:05.504129' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.506956"], ["created_at", "2016-02-08 19:48:05.507213"], ["updated_at", "2016-02-08 19:48:05.507213"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.3ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.514367"], ["created_at", "2016-02-08 19:48:05.514598"], ["updated_at", "2016-02-08 19:48:05.514598"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.520028"], ["created_at", "2016-02-08 19:48:05.520291"], ["updated_at", "2016-02-08 19:48:05.520291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:05.521982', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.527569"], ["created_at", "2016-02-08 19:48:05.527795"], ["updated_at", "2016-02-08 19:48:05.527795"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.533746"], ["created_at", "2016-02-08 19:48:05.533942"], ["updated_at", "2016-02-08 19:48:05.533942"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:05.535030' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.537310"], ["created_at", "2016-02-08 19:48:05.537491"], ["updated_at", "2016-02-08 19:48:05.537491"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:05.542215"], ["created_at", "2016-02-08 19:48:05.542434"], ["updated_at", "2016-02-08 19:48:05.542434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.552134"], ["created_at", "2016-02-08 19:48:05.552362"], ["updated_at", "2016-02-08 19:48:05.552362"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:05.553591' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:05.554073' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:05.554081') OR locked_by = 'host:SeaLion.local pid:79194') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:05.555642' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:05.555650') OR locked_by = 'host:SeaLion.local pid:79194') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 19:48:05.555831', "locked_by" = 'host:SeaLion.local pid:79194' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:05.555642' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:05.555650') OR locked_by = 'host:SeaLion.local pid:79194') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.562923"], ["created_at", "2016-02-08 19:48:05.563188"], ["updated_at", "2016-02-08 19:48:05.563188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:05-0500: [Worker(host:SeaLion.local pid:79194)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:05.565525', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T14:48:05-0500: [Worker(host:SeaLion.local pid:79194)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:05.570431"], ["created_at", "2016-02-08 19:48:05.570739"], ["updated_at", "2016-02-08 19:48:05.570739"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T14:48:05-0500: [Worker(host:SeaLion.local pid:79194)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:05-0500: [Worker(host:SeaLion.local pid:79194)] Job Thing#something (id=1) COMPLETED after 0.0015 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.627579"], ["created_at", "2016-02-08 19:48:05.627783"], ["updated_at", "2016-02-08 19:48:05.627783"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.639528"], ["created_at", "2016-02-08 19:48:05.639710"], ["updated_at", "2016-02-08 19:48:05.639710"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.647086"], ["created_at", "2016-02-08 19:48:05.647284"], ["updated_at", "2016-02-08 19:48:05.647284"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.654838"], ["created_at", "2016-02-08 19:48:05.655086"], ["updated_at", "2016-02-08 19:48:05.655086"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (4.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.666561"], ["created_at", "2016-02-08 19:48:05.666784"], ["updated_at", "2016-02-08 19:48:05.666784"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:05.677067"], ["created_at", "2016-02-08 19:48:05.677324"], ["updated_at", "2016-02-08 19:48:05.677324"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:05.678806' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 19:48:05.680370', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.482956"], ["created_at", "2016-02-08 19:48:17.483262"], ["updated_at", "2016-02-08 19:48:17.483262"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:17-0500: [Worker(host:SeaLion.local pid:79279)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:17.485244', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T14:48:17-0500: [Worker(host:SeaLion.local pid:79279)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:17.491596"], ["created_at", "2016-02-08 19:48:17.491810"], ["updated_at", "2016-02-08 19:48:17.491810"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T14:48:17-0500: [Worker(host:SeaLion.local pid:79279)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:17-0500: [Worker(host:SeaLion.local pid:79279)] Job Thing#something (id=1) COMPLETED after 0.0018 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.502245"], ["created_at", "2016-02-08 19:48:17.502471"], ["updated_at", "2016-02-08 19:48:17.502471"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.506957"], ["created_at", "2016-02-08 19:48:17.507124"], ["updated_at", "2016-02-08 19:48:17.507124"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.513426"], ["created_at", "2016-02-08 19:48:17.513780"], ["updated_at", "2016-02-08 19:48:17.513780"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:17.515049' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.517364"], ["created_at", "2016-02-08 19:48:17.517606"], ["updated_at", "2016-02-08 19:48:17.517606"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.523050"], ["created_at", "2016-02-08 19:48:17.523266"], ["updated_at", "2016-02-08 19:48:17.523266"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:17.524462' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:17.524907' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:17.524915') OR locked_by = 'host:SeaLion.local pid:79279') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:17.526369' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:17.526376') OR locked_by = 'host:SeaLion.local pid:79279') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 19:48:17.526511', "locked_by" = 'host:SeaLion.local pid:79279' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:17.526369' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:17.526376') OR locked_by = 'host:SeaLion.local pid:79279') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.532026"], ["created_at", "2016-02-08 19:48:17.532274"], ["updated_at", "2016-02-08 19:48:17.532274"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:17.533912', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:17.541233"], ["created_at", "2016-02-08 19:48:17.541506"], ["updated_at", "2016-02-08 19:48:17.541506"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.551911"], ["created_at", "2016-02-08 19:48:17.552138"], ["updated_at", "2016-02-08 19:48:17.552138"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:17.553437' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.555881"], ["created_at", "2016-02-08 19:48:17.556081"], ["updated_at", "2016-02-08 19:48:17.556081"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.589420"], ["created_at", "2016-02-08 19:48:17.589667"], ["updated_at", "2016-02-08 19:48:17.589667"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.600937"], ["created_at", "2016-02-08 19:48:17.601211"], ["updated_at", "2016-02-08 19:48:17.601211"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.610495"], ["created_at", "2016-02-08 19:48:17.610767"], ["updated_at", "2016-02-08 19:48:17.610767"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:17.612319' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 19:48:17.614408', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms) + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.622736"], ["created_at", "2016-02-08 19:48:17.623018"], ["updated_at", "2016-02-08 19:48:17.623018"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.638844"], ["created_at", "2016-02-08 19:48:17.639101"], ["updated_at", "2016-02-08 19:48:17.639101"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:17.645826"], ["created_at", "2016-02-08 19:48:17.645998"], ["updated_at", "2016-02-08 19:48:17.645998"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime) +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.1ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.197098"], ["created_at", "2016-02-08 19:48:49.197373"], ["updated_at", "2016-02-08 19:48:49.197373"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.208758"], ["created_at", "2016-02-08 19:48:49.209028"], ["updated_at", "2016-02-08 19:48:49.209028"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.220600"], ["created_at", "2016-02-08 19:48:49.220817"], ["updated_at", "2016-02-08 19:48:49.220817"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.228230"], ["created_at", "2016-02-08 19:48:49.228397"], ["updated_at", "2016-02-08 19:48:49.228397"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.235121"], ["created_at", "2016-02-08 19:48:49.235302"], ["updated_at", "2016-02-08 19:48:49.235302"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.243024"], ["created_at", "2016-02-08 19:48:49.243249"], ["updated_at", "2016-02-08 19:48:49.243249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:49.244478' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 19:48:49.245950', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:49.252177"], ["created_at", "2016-02-08 19:48:49.252378"], ["updated_at", "2016-02-08 19:48:49.252378"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.261020"], ["created_at", "2016-02-08 19:48:49.261250"], ["updated_at", "2016-02-08 19:48:49.261250"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.268782"], ["created_at", "2016-02-08 19:48:49.268990"], ["updated_at", "2016-02-08 19:48:49.268990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.275377"], ["created_at", "2016-02-08 19:48:49.275620"], ["updated_at", "2016-02-08 19:48:49.275620"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:49.277317', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.284788"], ["created_at", "2016-02-08 19:48:49.285177"], ["updated_at", "2016-02-08 19:48:49.285177"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:48:49.287165' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.289925"], ["created_at", "2016-02-08 19:48:49.290188"], ["updated_at", "2016-02-08 19:48:49.290188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.295753"], ["created_at", "2016-02-08 19:48:49.295983"], ["updated_at", "2016-02-08 19:48:49.295983"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:49.297212' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.299105"], ["created_at", "2016-02-08 19:48:49.299278"], ["updated_at", "2016-02-08 19:48:49.299278"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.305412"], ["created_at", "2016-02-08 19:48:49.305653"], ["updated_at", "2016-02-08 19:48:49.305653"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:49.306964' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:49.307479' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:49.307491') OR locked_by = 'host:SeaLion.local pid:79507') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:49.313047' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:49.313060') OR locked_by = 'host:SeaLion.local pid:79507') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 19:48:49.313240', "locked_by" = 'host:SeaLion.local pid:79507' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:48:49.313047' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:48:49.313060') OR locked_by = 'host:SeaLion.local pid:79507') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:48:49.320472"], ["created_at", "2016-02-08 19:48:49.320754"], ["updated_at", "2016-02-08 19:48:49.320754"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:49-0500: [Worker(host:SeaLion.local pid:79507)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:48:49.323066', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T14:48:49-0500: [Worker(host:SeaLion.local pid:79507)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:48:49.328119"], ["created_at", "2016-02-08 19:48:49.328348"], ["updated_at", "2016-02-08 19:48:49.328348"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T14:48:49-0500: [Worker(host:SeaLion.local pid:79507)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:48:49-0500: [Worker(host:SeaLion.local pid:79507)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.089496"], ["created_at", "2016-02-08 19:49:48.089843"], ["updated_at", "2016-02-08 19:49:48.089843"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.100301"], ["created_at", "2016-02-08 19:49:48.100508"], ["updated_at", "2016-02-08 19:49:48.100508"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.108923"], ["created_at", "2016-02-08 19:49:48.109164"], ["updated_at", "2016-02-08 19:49:48.109164"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:49:48.110263' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 19:49:48.111776', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.118576"], ["created_at", "2016-02-08 19:49:48.118826"], ["updated_at", "2016-02-08 19:49:48.118826"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.129778"], ["created_at", "2016-02-08 19:49:48.129959"], ["updated_at", "2016-02-08 19:49:48.129959"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.138974"], ["created_at", "2016-02-08 19:49:48.139184"], ["updated_at", "2016-02-08 19:49:48.139184"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:49:48.150058"], ["created_at", "2016-02-08 19:49:48.150346"], ["updated_at", "2016-02-08 19:49:48.150346"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T14:49:48-0500: [Worker(host:SeaLion.local pid:79722)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:49:48-0500: [Worker(host:SeaLion.local pid:79722)] Job Thing#something (id=1) COMPLETED after 0.0014 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.160747"], ["created_at", "2016-02-08 19:49:48.160998"], ["updated_at", "2016-02-08 19:49:48.160998"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:49:48-0500: [Worker(host:SeaLion.local pid:79722)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:48.163852', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T14:49:48-0500: [Worker(host:SeaLion.local pid:79722)] Job TestJob (id=1) COMPLETED after 0.0013 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.171121"], ["created_at", "2016-02-08 19:49:48.171389"], ["updated_at", "2016-02-08 19:49:48.171389"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:48.173023' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.175585"], ["created_at", "2016-02-08 19:49:48.175804"], ["updated_at", "2016-02-08 19:49:48.175804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.182425"], ["created_at", "2016-02-08 19:49:48.182663"], ["updated_at", "2016-02-08 19:49:48.182663"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:49:48.184539' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.187977"], ["created_at", "2016-02-08 19:49:48.188237"], ["updated_at", "2016-02-08 19:49:48.188237"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.195286"], ["created_at", "2016-02-08 19:49:48.195609"], ["updated_at", "2016-02-08 19:49:48.195609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:48.197392' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:48.197985' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:48.198010') OR locked_by = 'host:SeaLion.local pid:79722') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:48.199927' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:48.199937') OR locked_by = 'host:SeaLion.local pid:79722') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 19:49:48.200170', "locked_by" = 'host:SeaLion.local pid:79722' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:48.199927' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:48.199937') OR locked_by = 'host:SeaLion.local pid:79722') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.212449"], ["created_at", "2016-02-08 19:49:48.212749"], ["updated_at", "2016-02-08 19:49:48.212749"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.221977"], ["created_at", "2016-02-08 19:49:48.222227"], ["updated_at", "2016-02-08 19:49:48.222227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:48.224338', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:49:48.230103"], ["created_at", "2016-02-08 19:49:48.230325"], ["updated_at", "2016-02-08 19:49:48.230325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:48.239877"], ["created_at", "2016-02-08 19:49:48.240162"], ["updated_at", "2016-02-08 19:49:48.240162"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (2.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.2ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.230623"], ["created_at", "2016-02-08 19:49:53.230885"], ["updated_at", "2016-02-08 19:49:53.230885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.239644"], ["created_at", "2016-02-08 19:49:53.239927"], ["updated_at", "2016-02-08 19:49:53.239927"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.246493"], ["created_at", "2016-02-08 19:49:53.246707"], ["updated_at", "2016-02-08 19:49:53.246707"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:53.248331', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.254892"], ["created_at", "2016-02-08 19:49:53.255054"], ["updated_at", "2016-02-08 19:49:53.255054"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:53.256169' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:53.256592' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:53.256599') OR locked_by = 'host:SeaLion.local pid:79792') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:53.258937' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:53.258946') OR locked_by = 'host:SeaLion.local pid:79792') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 19:49:53.259103', "locked_by" = 'host:SeaLion.local pid:79792' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 19:49:53.258937' AND (locked_at IS NULL OR locked_at < '2016-02-08 15:49:53.258946') OR locked_by = 'host:SeaLion.local pid:79792') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:49:53.265873"], ["created_at", "2016-02-08 19:49:53.266180"], ["updated_at", "2016-02-08 19:49:53.266180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.275411"], ["created_at", "2016-02-08 19:49:53.275595"], ["updated_at", "2016-02-08 19:49:53.275595"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:49:53.276749' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.278378"], ["created_at", "2016-02-08 19:49:53.278582"], ["updated_at", "2016-02-08 19:49:53.278582"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.283581"], ["created_at", "2016-02-08 19:49:53.283741"], ["updated_at", "2016-02-08 19:49:53.283741"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:53.284931' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.287233"], ["created_at", "2016-02-08 19:49:53.287454"], ["updated_at", "2016-02-08 19:49:53.287454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.329496"], ["created_at", "2016-02-08 19:49:53.329692"], ["updated_at", "2016-02-08 19:49:53.329692"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.341431"], ["created_at", "2016-02-08 19:49:53.341688"], ["updated_at", "2016-02-08 19:49:53.341688"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 19:49:53.343387' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 19:49:53.345226', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.352236"], ["created_at", "2016-02-08 19:49:53.352522"], ["updated_at", "2016-02-08 19:49:53.352522"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.361713"], ["created_at", "2016-02-08 19:49:53.361960"], ["updated_at", "2016-02-08 19:49:53.361960"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.372787"], ["created_at", "2016-02-08 19:49:53.372996"], ["updated_at", "2016-02-08 19:49:53.372996"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 7ms (ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.387994"], ["created_at", "2016-02-08 19:49:53.388188"], ["updated_at", "2016-02-08 19:49:53.388188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 19:49:53.395795"], ["created_at", "2016-02-08 19:49:53.395990"], ["updated_at", "2016-02-08 19:49:53.395990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:49:53-0500: [Worker(host:SeaLion.local pid:79792)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 19:49:53.397732', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T14:49:53-0500: [Worker(host:SeaLion.local pid:79792)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 19:49:53.402398"], ["created_at", "2016-02-08 19:49:53.402616"], ["updated_at", "2016-02-08 19:49:53.402616"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T14:49:53-0500: [Worker(host:SeaLion.local pid:79792)] Job Thing#something (id=1) RUNNING + SQL (0.0ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T14:49:53-0500: [Worker(host:SeaLion.local pid:79792)] Job Thing#something (id=1) COMPLETED after 0.0011 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 20:00:02.079061"], ["created_at", "2016-02-08 20:00:02.079417"], ["updated_at", "2016-02-08 20:00:02.079417"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T15:00:02-0500: [Worker(host:SeaLion.local pid:80710)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T15:00:02-0500: [Worker(host:SeaLion.local pid:80710)] Job Thing#something (id=1) COMPLETED after 0.0019 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.094014"], ["created_at", "2016-02-08 20:00:02.094215"], ["updated_at", "2016-02-08 20:00:02.094215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T15:00:02-0500: [Worker(host:SeaLion.local pid:80710)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:00:02.096187', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T15:00:02-0500: [Worker(host:SeaLion.local pid:80710)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.101462"], ["created_at", "2016-02-08 20:00:02.101762"], ["updated_at", "2016-02-08 20:00:02.101762"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:00:02.102928' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.104648"], ["created_at", "2016-02-08 20:00:02.104811"], ["updated_at", "2016-02-08 20:00:02.104811"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.109332"], ["created_at", "2016-02-08 20:00:02.109520"], ["updated_at", "2016-02-08 20:00:02.109520"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 20:00:02.110790' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.113535"], ["created_at", "2016-02-08 20:00:02.113893"], ["updated_at", "2016-02-08 20:00:02.113893"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.119089"], ["created_at", "2016-02-08 20:00:02.119276"], ["updated_at", "2016-02-08 20:00:02.119276"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 20:00:02.124846"], ["created_at", "2016-02-08 20:00:02.125020"], ["updated_at", "2016-02-08 20:00:02.125020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.133772"], ["created_at", "2016-02-08 20:00:02.133964"], ["updated_at", "2016-02-08 20:00:02.133964"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:00:02.135518', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.141189"], ["created_at", "2016-02-08 20:00:02.141389"], ["updated_at", "2016-02-08 20:00:02.141389"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:00:02.142594' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:00:02.143051' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:00:02.143058') OR locked_by = 'host:SeaLion.local pid:80710') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:00:02.144452' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:00:02.144459') OR locked_by = 'host:SeaLion.local pid:80710') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 20:00:02.144627', "locked_by" = 'host:SeaLion.local pid:80710' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:00:02.144452' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:00:02.144459') OR locked_by = 'host:SeaLion.local pid:80710') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.150199"], ["created_at", "2016-02-08 20:00:02.150438"], ["updated_at", "2016-02-08 20:00:02.150438"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.181523"], ["created_at", "2016-02-08 20:00:02.181765"], ["updated_at", "2016-02-08 20:00:02.181765"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.191926"], ["created_at", "2016-02-08 20:00:02.192139"], ["updated_at", "2016-02-08 20:00:02.192139"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 20:00:02.193388' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 20:00:02.195017', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.203042"], ["created_at", "2016-02-08 20:00:02.203313"], ["updated_at", "2016-02-08 20:00:02.203313"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.217451"], ["created_at", "2016-02-08 20:00:02.217710"], ["updated_at", "2016-02-08 20:00:02.217710"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.225086"], ["created_at", "2016-02-08 20:00:02.225270"], ["updated_at", "2016-02-08 20:00:02.225270"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:00:02.233764"], ["created_at", "2016-02-08 20:00:02.234068"], ["updated_at", "2016-02-08 20:00:02.234068"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (1.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.021371"], ["created_at", "2016-02-08 20:02:21.021645"], ["updated_at", "2016-02-08 20:02:21.021645"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T15:02:21-0500: [Worker(host:SeaLion.local pid:81029)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:02:21.023898', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-08T15:02:21-0500: [Worker(host:SeaLion.local pid:81029)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 20:02:21.029958"], ["created_at", "2016-02-08 20:02:21.030154"], ["updated_at", "2016-02-08 20:02:21.030154"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-08T15:02:21-0500: [Worker(host:SeaLion.local pid:81029)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-08T15:02:21-0500: [Worker(host:SeaLion.local pid:81029)] Job Thing#something (id=1) COMPLETED after 0.0014 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.067296"], ["created_at", "2016-02-08 20:02:21.067513"], ["updated_at", "2016-02-08 20:02:21.067513"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 20:02:21.068653' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-08 20:02:21.072944', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.079923"], ["created_at", "2016-02-08 20:02:21.080310"], ["updated_at", "2016-02-08 20:02:21.080310"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.089977"], ["created_at", "2016-02-08 20:02:21.090237"], ["updated_at", "2016-02-08 20:02:21.090237"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.101957"], ["created_at", "2016-02-08 20:02:21.102172"], ["updated_at", "2016-02-08 20:02:21.102172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.110506"], ["created_at", "2016-02-08 20:02:21.110689"], ["updated_at", "2016-02-08 20:02:21.110689"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.118285"], ["created_at", "2016-02-08 20:02:21.118478"], ["updated_at", "2016-02-08 20:02:21.118478"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-08 20:02:21.125093"], ["created_at", "2016-02-08 20:02:21.125298"], ["updated_at", "2016-02-08 20:02:21.125298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.135885"], ["created_at", "2016-02-08 20:02:21.136148"], ["updated_at", "2016-02-08 20:02:21.136148"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-08 20:02:21.137792' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.141162"], ["created_at", "2016-02-08 20:02:21.141434"], ["updated_at", "2016-02-08 20:02:21.141434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.148563"], ["created_at", "2016-02-08 20:02:21.148816"], ["updated_at", "2016-02-08 20:02:21.148816"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.157471"], ["created_at", "2016-02-08 20:02:21.157714"], ["updated_at", "2016-02-08 20:02:21.157714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:02:21.159539', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.171683"], ["created_at", "2016-02-08 20:02:21.171923"], ["updated_at", "2016-02-08 20:02:21.171923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:02:21.173350' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.175784"], ["created_at", "2016-02-08 20:02:21.175965"], ["updated_at", "2016-02-08 20:02:21.175965"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.181757"], ["created_at", "2016-02-08 20:02:21.181999"], ["updated_at", "2016-02-08 20:02:21.181999"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-08 20:02:21.188021"], ["created_at", "2016-02-08 20:02:21.188226"], ["updated_at", "2016-02-08 20:02:21.188226"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-08 20:02:21.189458' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:02:21.189953' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:02:21.189962') OR locked_by = 'host:SeaLion.local pid:81029') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:02:21.191459' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:02:21.191466') OR locked_by = 'host:SeaLion.local pid:81029') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-08 20:02:21.191622', "locked_by" = 'host:SeaLion.local pid:81029' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-08 20:02:21.191459' AND (locked_at IS NULL OR locked_at < '2016-02-08 16:02:21.191466') OR locked_by = 'host:SeaLion.local pid:81029') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.123569"], ["created_at", "2016-02-09 19:21:30.124577"], ["updated_at", "2016-02-09 19:21:30.124577"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:21:30.126295' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:21:30.126896' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:21:30.126905') OR locked_by = 'host:SeaLion.local pid:20846') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:21:30.130416' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:21:30.130430') OR locked_by = 'host:SeaLion.local pid:20846') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 19:21:30.130617', "locked_by" = 'host:SeaLion.local pid:20846' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:21:30.130416' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:21:30.130430') OR locked_by = 'host:SeaLion.local pid:20846') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.137123"], ["created_at", "2016-02-09 19:21:30.137382"], ["updated_at", "2016-02-09 19:21:30.137382"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.147886"], ["created_at", "2016-02-09 19:21:30.148143"], ["updated_at", "2016-02-09 19:21:30.148143"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:21:30.149958' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.152978"], ["created_at", "2016-02-09 19:21:30.153246"], ["updated_at", "2016-02-09 19:21:30.153246"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 19:21:30.158832"], ["created_at", "2016-02-09 19:21:30.159037"], ["updated_at", "2016-02-09 19:21:30.159037"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.169300"], ["created_at", "2016-02-09 19:21:30.169549"], ["updated_at", "2016-02-09 19:21:30.169549"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:21:30.171308' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.173931"], ["created_at", "2016-02-09 19:21:30.174131"], ["updated_at", "2016-02-09 19:21:30.174131"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.179391"], ["created_at", "2016-02-09 19:21:30.179578"], ["updated_at", "2016-02-09 19:21:30.179578"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:21:30.185304"], ["created_at", "2016-02-09 19:21:30.185590"], ["updated_at", "2016-02-09 19:21:30.185590"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:21:30.187986', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (1.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.2ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.0ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:22:14.468495"], ["created_at", "2016-02-09 19:22:14.468891"], ["updated_at", "2016-02-09 19:22:14.468891"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:23:06.526250"], ["created_at", "2016-02-09 19:23:06.526533"], ["updated_at", "2016-02-09 19:23:06.526533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 19:23:06.527938' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.9ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.2ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.2ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:23:52.317606"], ["created_at", "2016-02-09 19:23:52.317902"], ["updated_at", "2016-02-09 19:23:52.317902"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 19:23:52.319349' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:23:52.319904' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:23:52.320360' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.9ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:25:13.722216"], ["created_at", "2016-02-09 19:25:13.722530"], ["updated_at", "2016-02-09 19:25:13.722530"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:25:51.714693"], ["created_at", "2016-02-09 19:25:51.715027"], ["updated_at", "2016-02-09 19:25:51.715027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:26:21.801848"], ["created_at", "2016-02-09 19:26:21.802165"], ["updated_at", "2016-02-09 19:26:21.802165"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (1.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.473588"], ["created_at", "2016-02-09 19:27:19.473912"], ["updated_at", "2016-02-09 19:27:19.473912"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.487023"], ["created_at", "2016-02-09 19:27:19.487270"], ["updated_at", "2016-02-09 19:27:19.487270"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.497594"], ["created_at", "2016-02-09 19:27:19.497800"], ["updated_at", "2016-02-09 19:27:19.497800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.506945"], ["created_at", "2016-02-09 19:27:19.507185"], ["updated_at", "2016-02-09 19:27:19.507185"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.519215"], ["created_at", "2016-02-09 19:27:19.519431"], ["updated_at", "2016-02-09 19:27:19.519431"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:27:19.520874' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 19:27:19.522407', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:19.529058"], ["created_at", "2016-02-09 19:27:19.529279"], ["updated_at", "2016-02-09 19:27:19.529279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.9ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.2ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:27:29.764135"], ["created_at", "2016-02-09 19:27:29.764489"], ["updated_at", "2016-02-09 19:27:29.764489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (2.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (1.3ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (1.2ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_state" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.792770"], ["created_at", "2016-02-09 19:28:50.793122"], ["updated_at", "2016-02-09 19:28:50.793122"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T14:28:50-0500: [Worker(host:SeaLion.local pid:22980)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "progress_state" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:28:50.795425', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-09T14:28:50-0500: [Worker(host:SeaLion.local pid:22980)] Job TestJob (id=1) COMPLETED after 0.0012 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 19:28:50.801566"], ["created_at", "2016-02-09 19:28:50.801764"], ["updated_at", "2016-02-09 19:28:50.801764"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T14:28:50-0500: [Worker(host:SeaLion.local pid:22980)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T14:28:50-0500: [Worker(host:SeaLion.local pid:22980)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.816044"], ["created_at", "2016-02-09 19:28:50.816275"], ["updated_at", "2016-02-09 19:28:50.816275"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:28:50.819374' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.821641"], ["created_at", "2016-02-09 19:28:50.821822"], ["updated_at", "2016-02-09 19:28:50.821822"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.827435"], ["created_at", "2016-02-09 19:28:50.827615"], ["updated_at", "2016-02-09 19:28:50.827615"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:28:50.828793' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:28:50.829244' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:28:50.829252') OR locked_by = 'host:SeaLion.local pid:22980') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:28:50.831437' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:28:50.831453') OR locked_by = 'host:SeaLion.local pid:22980') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 19:28:50.831808', "locked_by" = 'host:SeaLion.local pid:22980' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 19:28:50.831437' AND (locked_at IS NULL OR locked_at < '2016-02-09 15:28:50.831453') OR locked_by = 'host:SeaLion.local pid:22980') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.840712"], ["created_at", "2016-02-09 19:28:50.840971"], ["updated_at", "2016-02-09 19:28:50.840971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:28:50.843066', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 19:28:50.849525"], ["created_at", "2016-02-09 19:28:50.849812"], ["updated_at", "2016-02-09 19:28:50.849812"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.859309"], ["created_at", "2016-02-09 19:28:50.859597"], ["updated_at", "2016-02-09 19:28:50.859597"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.865147"], ["created_at", "2016-02-09 19:28:50.865352"], ["updated_at", "2016-02-09 19:28:50.865352"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 19:28:50.866570' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:28:50.866983' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:28:50.867329' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.871833"], ["created_at", "2016-02-09 19:28:50.872124"], ["updated_at", "2016-02-09 19:28:50.872124"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.879974"], ["created_at", "2016-02-09 19:28:50.880163"], ["updated_at", "2016-02-09 19:28:50.880163"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 19:28:50.881405' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.883293"], ["created_at", "2016-02-09 19:28:50.883472"], ["updated_at", "2016-02-09 19:28:50.883472"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.915999"], ["created_at", "2016-02-09 19:28:50.916210"], ["updated_at", "2016-02-09 19:28:50.916210"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.929758"], ["created_at", "2016-02-09 19:28:50.929997"], ["updated_at", "2016-02-09 19:28:50.929997"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.942728"], ["created_at", "2016-02-09 19:28:50.942942"], ["updated_at", "2016-02-09 19:28:50.942942"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.949614"], ["created_at", "2016-02-09 19:28:50.949791"], ["updated_at", "2016-02-09 19:28:50.949791"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.957627"], ["created_at", "2016-02-09 19:28:50.957885"], ["updated_at", "2016-02-09 19:28:50.957885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 19:28:50.959493' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 19:28:50.961194', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "progress_state", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["progress_state", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 19:28:50.967260"], ["created_at", "2016-02-09 19:28:50.967451"], ["updated_at", "2016-02-09 19:28:50.967451"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.2ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:17:58.028590"], ["created_at", "2016-02-09 20:17:58.029595"], ["updated_at", "2016-02-09 20:17:58.029595"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T15:17:58-0500: [Worker(host:SeaLion.local pid:28413)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:17:58-0500: [Worker(host:SeaLion.local pid:28413)] Job Thing#something (id=1) COMPLETED after 0.0014 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:17:58.041097"], ["created_at", "2016-02-09 20:17:58.041314"], ["updated_at", "2016-02-09 20:17:58.041314"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.107238"], ["created_at", "2016-02-09 20:19:07.107695"], ["updated_at", "2016-02-09 20:19:07.107695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.119232"], ["created_at", "2016-02-09 20:19:07.119490"], ["updated_at", "2016-02-09 20:19:07.119490"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.127493"], ["created_at", "2016-02-09 20:19:07.127683"], ["updated_at", "2016-02-09 20:19:07.127683"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:07.128875' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 20:19:07.130400', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.136428"], ["created_at", "2016-02-09 20:19:07.136670"], ["updated_at", "2016-02-09 20:19:07.136670"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.145275"], ["created_at", "2016-02-09 20:19:07.145473"], ["updated_at", "2016-02-09 20:19:07.145473"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.152899"], ["created_at", "2016-02-09 20:19:07.153130"], ["updated_at", "2016-02-09 20:19:07.153130"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.164771"], ["created_at", "2016-02-09 20:19:07.165001"], ["updated_at", "2016-02-09 20:19:07.165001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.172961"], ["created_at", "2016-02-09 20:19:07.173222"], ["updated_at", "2016-02-09 20:19:07.173222"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:07.174784' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.177428"], ["created_at", "2016-02-09 20:19:07.177621"], ["updated_at", "2016-02-09 20:19:07.177621"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.182855"], ["created_at", "2016-02-09 20:19:07.183062"], ["updated_at", "2016-02-09 20:19:07.183062"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:07.184338' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:07.184820' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:07.184828') OR locked_by = 'host:SeaLion.local pid:28616') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:07.186307' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:07.186315') OR locked_by = 'host:SeaLion.local pid:28616') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:07.186475', "locked_by" = 'host:SeaLion.local pid:28616' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:07.186307' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:07.186315') OR locked_by = 'host:SeaLion.local pid:28616') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:07.191727"], ["created_at", "2016-02-09 20:19:07.191927"], ["updated_at", "2016-02-09 20:19:07.191927"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.200718"], ["created_at", "2016-02-09 20:19:07.200917"], ["updated_at", "2016-02-09 20:19:07.200917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:07.202118' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:07.202517' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:07.202838' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.206395"], ["created_at", "2016-02-09 20:19:07.206565"], ["updated_at", "2016-02-09 20:19:07.206565"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:07.207649' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.209643"], ["created_at", "2016-02-09 20:19:07.209812"], ["updated_at", "2016-02-09 20:19:07.209812"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.214165"], ["created_at", "2016-02-09 20:19:07.214359"], ["updated_at", "2016-02-09 20:19:07.214359"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:07.220573', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.226433"], ["created_at", "2016-02-09 20:19:07.226631"], ["updated_at", "2016-02-09 20:19:07.226631"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:07.235739"], ["created_at", "2016-02-09 20:19:07.235963"], ["updated_at", "2016-02-09 20:19:07.235963"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:07-0500: [Worker(host:SeaLion.local pid:28616)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:07.237867', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-09T15:19:07-0500: [Worker(host:SeaLion.local pid:28616)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.7ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:07.241928"], ["created_at", "2016-02-09 20:19:07.242121"], ["updated_at", "2016-02-09 20:19:07.242121"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T15:19:07-0500: [Worker(host:SeaLion.local pid:28616)] Job Thing#something (id=1) RUNNING + SQL (0.0ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:07-0500: [Worker(host:SeaLion.local pid:28616)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (1.6ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (8.2ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.411997"], ["created_at", "2016-02-09 20:19:23.412323"], ["updated_at", "2016-02-09 20:19:23.412323"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.422813"], ["created_at", "2016-02-09 20:19:23.422995"], ["updated_at", "2016-02-09 20:19:23.422995"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.430737"], ["created_at", "2016-02-09 20:19:23.430913"], ["updated_at", "2016-02-09 20:19:23.430913"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.440182"], ["created_at", "2016-02-09 20:19:23.440419"], ["updated_at", "2016-02-09 20:19:23.440419"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:23.441611' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 20:19:23.443421', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.451580"], ["created_at", "2016-02-09 20:19:23.451980"], ["updated_at", "2016-02-09 20:19:23.451980"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.460491"], ["created_at", "2016-02-09 20:19:23.460711"], ["updated_at", "2016-02-09 20:19:23.460711"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.473150"], ["created_at", "2016-02-09 20:19:23.473375"], ["updated_at", "2016-02-09 20:19:23.473375"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:23.474760' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:23.475297' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:23.475307') OR locked_by = 'host:SeaLion.local pid:28739') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:23.476827' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:23.476835') OR locked_by = 'host:SeaLion.local pid:28739') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:23.477015', "locked_by" = 'host:SeaLion.local pid:28739' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:23.476827' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:23.476835') OR locked_by = 'host:SeaLion.local pid:28739') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.483035"], ["created_at", "2016-02-09 20:19:23.483231"], ["updated_at", "2016-02-09 20:19:23.483231"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.488714"], ["created_at", "2016-02-09 20:19:23.488906"], ["updated_at", "2016-02-09 20:19:23.488906"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:23.490269' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.492623"], ["created_at", "2016-02-09 20:19:23.492805"], ["updated_at", "2016-02-09 20:19:23.492805"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.497925"], ["created_at", "2016-02-09 20:19:23.498153"], ["updated_at", "2016-02-09 20:19:23.498153"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:23.499448' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:23.499931' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:23.500390' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.505845"], ["created_at", "2016-02-09 20:19:23.506102"], ["updated_at", "2016-02-09 20:19:23.506102"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:23.507441' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.509655"], ["created_at", "2016-02-09 20:19:23.509826"], ["updated_at", "2016-02-09 20:19:23.509826"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:23.514322"], ["created_at", "2016-02-09 20:19:23.514547"], ["updated_at", "2016-02-09 20:19:23.514547"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.529454"], ["created_at", "2016-02-09 20:19:23.529686"], ["updated_at", "2016-02-09 20:19:23.529686"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:23.531418', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.537481"], ["created_at", "2016-02-09 20:19:23.537691"], ["updated_at", "2016-02-09 20:19:23.537691"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:23.549369"], ["created_at", "2016-02-09 20:19:23.549612"], ["updated_at", "2016-02-09 20:19:23.549612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:23-0500: [Worker(host:SeaLion.local pid:28739)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:23.551378', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-09T15:19:23-0500: [Worker(host:SeaLion.local pid:28739)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:23.555588"], ["created_at", "2016-02-09 20:19:23.555774"], ["updated_at", "2016-02-09 20:19:23.555774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T15:19:23-0500: [Worker(host:SeaLion.local pid:28739)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:23-0500: [Worker(host:SeaLion.local pid:28739)] Job Thing#something (id=1) COMPLETED after 0.0011 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (2.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.692748"], ["created_at", "2016-02-09 20:19:28.693038"], ["updated_at", "2016-02-09 20:19:28.693038"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.704778"], ["created_at", "2016-02-09 20:19:28.705042"], ["updated_at", "2016-02-09 20:19:28.705042"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.714215"], ["created_at", "2016-02-09 20:19:28.714421"], ["updated_at", "2016-02-09 20:19:28.714421"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.720417"], ["created_at", "2016-02-09 20:19:28.720578"], ["updated_at", "2016-02-09 20:19:28.720578"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.729295"], ["created_at", "2016-02-09 20:19:28.729489"], ["updated_at", "2016-02-09 20:19:28.729489"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.736703"], ["created_at", "2016-02-09 20:19:28.736919"], ["updated_at", "2016-02-09 20:19:28.736919"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:28.738180' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 20:19:28.739734', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.746449"], ["created_at", "2016-02-09 20:19:28.746652"], ["updated_at", "2016-02-09 20:19:28.746652"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:28.753325"], ["created_at", "2016-02-09 20:19:28.753546"], ["updated_at", "2016-02-09 20:19:28.753546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.762716"], ["created_at", "2016-02-09 20:19:28.762993"], ["updated_at", "2016-02-09 20:19:28.762993"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:28.764992', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.771693"], ["created_at", "2016-02-09 20:19:28.771908"], ["updated_at", "2016-02-09 20:19:28.771908"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:28.773236' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:28.773648' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:28.773988' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.778374"], ["created_at", "2016-02-09 20:19:28.778676"], ["updated_at", "2016-02-09 20:19:28.778676"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:28.780100' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:28.780582' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:28.780599') OR locked_by = 'host:SeaLion.local pid:28808') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:28.782178' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:28.782185') OR locked_by = 'host:SeaLion.local pid:28808') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:19:28.782350', "locked_by" = 'host:SeaLion.local pid:28808' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:19:28.782178' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:19:28.782185') OR locked_by = 'host:SeaLion.local pid:28808') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.787802"], ["created_at", "2016-02-09 20:19:28.788001"], ["updated_at", "2016-02-09 20:19:28.788001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:19:28.789280' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.791741"], ["created_at", "2016-02-09 20:19:28.791941"], ["updated_at", "2016-02-09 20:19:28.791941"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.803247"], ["created_at", "2016-02-09 20:19:28.803481"], ["updated_at", "2016-02-09 20:19:28.803481"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.809722"], ["created_at", "2016-02-09 20:19:28.809936"], ["updated_at", "2016-02-09 20:19:28.809936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:28.811330' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.813546"], ["created_at", "2016-02-09 20:19:28.813750"], ["updated_at", "2016-02-09 20:19:28.813750"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:19:28.818783"], ["created_at", "2016-02-09 20:19:28.818971"], ["updated_at", "2016-02-09 20:19:28.818971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:28-0500: [Worker(host:SeaLion.local pid:28808)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:19:28.820805', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-09T15:19:28-0500: [Worker(host:SeaLion.local pid:28808)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:19:28.825179"], ["created_at", "2016-02-09 20:19:28.825428"], ["updated_at", "2016-02-09 20:19:28.825428"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T15:19:28-0500: [Worker(host:SeaLion.local pid:28808)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:19:28-0500: [Worker(host:SeaLion.local pid:28808)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (1.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:12.955891"], ["created_at", "2016-02-09 20:20:12.956214"], ["updated_at", "2016-02-09 20:20:12.956214"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:20:12-0500: [Worker(host:SeaLion.local pid:29074)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:20:12.958173', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-09T15:20:12-0500: [Worker(host:SeaLion.local pid:29074)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:20:12.964984"], ["created_at", "2016-02-09 20:20:12.965279"], ["updated_at", "2016-02-09 20:20:12.965279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-09T15:20:12-0500: [Worker(host:SeaLion.local pid:29074)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-09T15:20:12-0500: [Worker(host:SeaLion.local pid:29074)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.004451"], ["created_at", "2016-02-09 20:20:13.004635"], ["updated_at", "2016-02-09 20:20:13.004635"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.016276"], ["created_at", "2016-02-09 20:20:13.016529"], ["updated_at", "2016-02-09 20:20:13.016529"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.025098"], ["created_at", "2016-02-09 20:20:13.025327"], ["updated_at", "2016-02-09 20:20:13.025327"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.036463"], ["created_at", "2016-02-09 20:20:13.036737"], ["updated_at", "2016-02-09 20:20:13.036737"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.046426"], ["created_at", "2016-02-09 20:20:13.046704"], ["updated_at", "2016-02-09 20:20:13.046704"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.055775"], ["created_at", "2016-02-09 20:20:13.055971"], ["updated_at", "2016-02-09 20:20:13.055971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:20:13.057214' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-09 20:20:13.058543', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------- +JobTest: test_status +-------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.064951"], ["created_at", "2016-02-09 20:20:13.065151"], ["updated_at", "2016-02-09 20:20:13.065151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:20:13.066350' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:20:13.066734' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:20:13.067051' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.071509"], ["created_at", "2016-02-09 20:20:13.071752"], ["updated_at", "2016-02-09 20:20:13.071752"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.077067"], ["created_at", "2016-02-09 20:20:13.077270"], ["updated_at", "2016-02-09 20:20:13.077270"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:20:13.078555' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.081813"], ["created_at", "2016-02-09 20:20:13.082080"], ["updated_at", "2016-02-09 20:20:13.082080"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.087703"], ["created_at", "2016-02-09 20:20:13.087919"], ["updated_at", "2016-02-09 20:20:13.087919"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.095094"], ["created_at", "2016-02-09 20:20:13.095330"], ["updated_at", "2016-02-09 20:20:13.095330"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:20:13.097398', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.109332"], ["created_at", "2016-02-09 20:20:13.109569"], ["updated_at", "2016-02-09 20:20:13.109569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-09 20:20:13.111010' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.113435"], ["created_at", "2016-02-09 20:20:13.113620"], ["updated_at", "2016-02-09 20:20:13.113620"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-09 20:20:13.119708"], ["created_at", "2016-02-09 20:20:13.119966"], ["updated_at", "2016-02-09 20:20:13.119966"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-09 20:20:13.129479"], ["created_at", "2016-02-09 20:20:13.129671"], ["updated_at", "2016-02-09 20:20:13.129671"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-09 20:20:13.130721' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:20:13.131151' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:20:13.131158') OR locked_by = 'host:SeaLion.local pid:29074') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:20:13.132471' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:20:13.132479') OR locked_by = 'host:SeaLion.local pid:29074') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-09 20:20:13.132656', "locked_by" = 'host:SeaLion.local pid:29074' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-09 20:20:13.132471' AND (locked_at IS NULL OR locked_at < '2016-02-09 16:20:13.132479') OR locked_by = 'host:SeaLion.local pid:29074') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:34:34.243673"], ["created_at", "2016-02-10 16:34:34.244583"], ["updated_at", "2016-02-10 16:34:34.244583"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (1.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (9.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:35:20.271069"], ["created_at", "2016-02-10 16:35:20.271584"], ["updated_at", "2016-02-10 16:35:20.271584"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.4ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.2ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:36:33.308107"], ["created_at", "2016-02-10 16:36:33.308433"], ["updated_at", "2016-02-10 16:36:33.308433"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (1.5ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.1ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:36:45.382426"], ["created_at", "2016-02-10 16:36:45.382727"], ["updated_at", "2016-02-10 16:36:45.382727"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:37:00.791154"], ["created_at", "2016-02-10 16:37:00.791516"], ["updated_at", "2016-02-10 16:37:00.791516"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.2ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.1ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:39:37.221751"], ["created_at", "2016-02-10 16:39:37.222040"], ["updated_at", "2016-02-10 16:39:37.222040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:39:37-0500: [Worker(host:SeaLion.local pid:47979)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:39:37-0500: [Worker(host:SeaLion.local pid:47979)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:39:43.229750"], ["updated_at", "2016-02-10 16:39:37.230539"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:40:25.950347"], ["created_at", "2016-02-10 16:40:25.950668"], ["updated_at", "2016-02-10 16:40:25.950668"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:40:25-0500: [Worker(host:SeaLion.local pid:48091)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:40:25-0500: [Worker(host:SeaLion.local pid:48091)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:40:31.958330"], ["updated_at", "2016-02-10 16:40:25.959102"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.2ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:41:02.408238"], ["created_at", "2016-02-10 16:41:02.408539"], ["updated_at", "2016-02-10 16:41:02.408539"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:41:02-0500: [Worker(host:SeaLion.local pid:48207)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:41:02-0500: [Worker(host:SeaLion.local pid:48207)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:41:08.418025"], ["updated_at", "2016-02-10 16:41:02.418831"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:41:39.440390"], ["created_at", "2016-02-10 16:41:39.440819"], ["updated_at", "2016-02-10 16:41:39.440819"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:41:39-0500: [Worker(host:SeaLion.local pid:48312)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:41:39-0500: [Worker(host:SeaLion.local pid:48312)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:41:45.450240"], ["updated_at", "2016-02-10 16:41:39.451194"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.3ms) rollback transaction +  (1.7ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:43:31.702426"], ["created_at", "2016-02-10 16:43:31.702807"], ["updated_at", "2016-02-10 16:43:31.702807"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:43:31-0500: [Worker(host:SeaLion.local pid:48468)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:43:31-0500: [Worker(host:SeaLion.local pid:48468)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:43:37.711419"], ["updated_at", "2016-02-10 16:43:31.712280"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:43:53.042937"], ["created_at", "2016-02-10 16:43:53.043367"], ["updated_at", "2016-02-10 16:43:53.043367"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:43:53-0500: [Worker(host:SeaLion.local pid:48570)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:43:53-0500: [Worker(host:SeaLion.local pid:48570)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:43:59.053033"], ["updated_at", "2016-02-10 16:43:53.053940"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (1.5ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:45:51.951951"], ["created_at", "2016-02-10 16:45:51.952292"], ["updated_at", "2016-02-10 16:45:51.952292"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:45:51-0500: [Worker(host:SeaLion.local pid:48743)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:45:51-0500: [Worker(host:SeaLion.local pid:48743)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:45:57.960426"], ["updated_at", "2016-02-10 16:45:51.961261"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (2.1ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.2ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.1ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:46:03.314829"], ["created_at", "2016-02-10 16:46:03.315140"], ["updated_at", "2016-02-10 16:46:03.315140"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:46:03-0500: [Worker(host:SeaLion.local pid:48827)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:46:03-0500: [Worker(host:SeaLion.local pid:48827)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:46:09.323017"], ["updated_at", "2016-02-10 16:46:03.323820"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.0ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:47:22.291254"], ["created_at", "2016-02-10 16:47:22.291677"], ["updated_at", "2016-02-10 16:47:22.291677"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:47:22-0500: [Worker(host:SeaLion.local pid:48978)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:47:22-0500: [Worker(host:SeaLion.local pid:48978)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:47:28.300225"], ["updated_at", "2016-02-10 16:47:22.301111"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (1.7ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:50:55.678993"], ["created_at", "2016-02-10 16:50:55.679312"], ["updated_at", "2016-02-10 16:50:55.679312"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:50:55-0500: [Worker(host:SeaLion.local pid:49220)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:50:55-0500: [Worker(host:SeaLion.local pid:49220)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:51:01.687895"], ["updated_at", "2016-02-10 16:50:55.688792"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (2.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:54:20.273568"], ["created_at", "2016-02-10 16:54:20.273845"], ["updated_at", "2016-02-10 16:54:20.273845"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:54:20-0500: [Worker(host:SeaLion.local pid:49461)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:54:20-0500: [Worker(host:SeaLion.local pid:49461)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:54:26.281499"], ["updated_at", "2016-02-10 16:54:20.282333"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.2ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.1ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:54:30.237274"], ["created_at", "2016-02-10 16:54:30.237634"], ["updated_at", "2016-02-10 16:54:30.237634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:54:30-0500: [Worker(host:SeaLion.local pid:49543)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:54:30-0500: [Worker(host:SeaLion.local pid:49543)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:54:36.245721"], ["updated_at", "2016-02-10 16:54:30.246544"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (1.6ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:56:25.259840"], ["created_at", "2016-02-10 16:56:25.260171"], ["updated_at", "2016-02-10 16:56:25.260171"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:56:25-0500: [Worker(host:SeaLion.local pid:49701)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:56:25-0500: [Worker(host:SeaLion.local pid:49701)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:56:31.268165"], ["updated_at", "2016-02-10 16:56:25.268998"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:58:38.191891"], ["created_at", "2016-02-10 16:58:38.192322"], ["updated_at", "2016-02-10 16:58:38.192322"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:58:38-0500: [Worker(host:SeaLion.local pid:50025)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:58:38-0500: [Worker(host:SeaLion.local pid:50025)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:58:44.201364"], ["updated_at", "2016-02-10 16:58:38.202283"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (1.0ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 16:59:45.242074"], ["created_at", "2016-02-10 16:59:45.242444"], ["updated_at", "2016-02-10 16:59:45.242444"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T11:59:45-0500: [Worker(host:SeaLion.local pid:50144)] Job Thing#explode (id=1) RUNNING +2016-02-10T11:59:45-0500: [Worker(host:SeaLion.local pid:50144)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:781:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:308:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:295:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:334:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:321:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:294:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:155:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.0/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 16:59:51.250639"], ["updated_at", "2016-02-10 16:59:45.251589"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.9ms) rollback transaction +  (1.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.2ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:02:31.238368"], ["created_at", "2016-02-10 17:02:31.238714"], ["updated_at", "2016-02-10 17:02:31.238714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:02:31-0500: [Worker(host:SeaLion.local pid:70996)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:02:31-0500: [Worker(host:SeaLion.local pid:70996)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:02:37.251658"], ["updated_at", "2016-02-10 17:02:31.252838"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (2.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:02:59.200706"], ["created_at", "2016-02-10 17:02:59.201037"], ["updated_at", "2016-02-10 17:02:59.201037"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job Thing#something (id=1) COMPLETED after 0.0013 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.216666"], ["created_at", "2016-02-10 17:02:59.216884"], ["updated_at", "2016-02-10 17:02:59.216884"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:02:59.218679', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.273009"], ["created_at", "2016-02-10 17:02:59.273232"], ["updated_at", "2016-02-10 17:02:59.273232"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.285066"], ["created_at", "2016-02-10 17:02:59.285272"], ["updated_at", "2016-02-10 17:02:59.285272"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:02:59.286440' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-10 17:02:59.289123', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.295823"], ["created_at", "2016-02-10 17:02:59.296070"], ["updated_at", "2016-02-10 17:02:59.296070"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.305029"], ["created_at", "2016-02-10 17:02:59.305216"], ["updated_at", "2016-02-10 17:02:59.305216"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.316364"], ["created_at", "2016-02-10 17:02:59.316593"], ["updated_at", "2016-02-10 17:02:59.316593"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.326058"], ["created_at", "2016-02-10 17:02:59.326339"], ["updated_at", "2016-02-10 17:02:59.326339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.344201"], ["created_at", "2016-02-10 17:02:59.344448"], ["updated_at", "2016-02-10 17:02:59.344448"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:02:59.346024' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:02:59.346505' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:02:59.346898' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:02:59.351857"], ["created_at", "2016-02-10 17:02:59.352168"], ["updated_at", "2016-02-10 17:02:59.352168"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:02:59-0500: [Worker(host:SeaLion.local pid:71078)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:03:05.356858"], ["updated_at", "2016-02-10 17:02:59.357682"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.364775"], ["created_at", "2016-02-10 17:02:59.364981"], ["updated_at", "2016-02-10 17:02:59.364981"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:02:59.366314' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:02:59.366804' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:02:59.366816') OR locked_by = 'host:SeaLion.local pid:71078') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:02:59.368453' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:02:59.368460') OR locked_by = 'host:SeaLion.local pid:71078') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:02:59.368654', "locked_by" = 'host:SeaLion.local pid:71078' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:02:59.368453' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:02:59.368460') OR locked_by = 'host:SeaLion.local pid:71078') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.381140"], ["created_at", "2016-02-10 17:02:59.381369"], ["updated_at", "2016-02-10 17:02:59.381369"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:02:59.388459"], ["created_at", "2016-02-10 17:02:59.388687"], ["updated_at", "2016-02-10 17:02:59.388687"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.400324"], ["created_at", "2016-02-10 17:02:59.400599"], ["updated_at", "2016-02-10 17:02:59.400599"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:02:59.401836' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.404095"], ["created_at", "2016-02-10 17:02:59.404278"], ["updated_at", "2016-02-10 17:02:59.404278"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.409051"], ["created_at", "2016-02-10 17:02:59.409257"], ["updated_at", "2016-02-10 17:02:59.409257"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:02:59.410572' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.413147"], ["created_at", "2016-02-10 17:02:59.413327"], ["updated_at", "2016-02-10 17:02:59.413327"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.418953"], ["created_at", "2016-02-10 17:02:59.419171"], ["updated_at", "2016-02-10 17:02:59.419171"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:02:59.420739', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:02:59.426886"], ["created_at", "2016-02-10 17:02:59.427179"], ["updated_at", "2016-02-10 17:02:59.427179"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:03:37.061612"], ["created_at", "2016-02-10 17:03:37.062213"], ["updated_at", "2016-02-10 17:03:37.062213"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:03:37-0500: [Worker(host:SeaLion.local pid:71209)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:03:37-0500: [Worker(host:SeaLion.local pid:71209)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:118:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:03:43.072769"], ["updated_at", "2016-02-10 17:03:37.073682"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:36.652807"], ["created_at", "2016-02-10 17:04:36.653094"], ["updated_at", "2016-02-10 17:04:36.653094"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:04:36-0500: [Worker(host:SeaLion.local pid:71372)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:04:36-0500: [Worker(host:SeaLion.local pid:71372)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:117:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:04:42.661129"], ["updated_at", "2016-02-10 17:04:36.661968"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:36.666232"], ["created_at", "2016-02-10 17:04:36.666436"], ["updated_at", "2016-02-10 17:04:36.666436"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:04:36-0500: [Worker(host:SeaLion.local pid:71372)] Job Thing#explode (id=2) RUNNING +2016-02-10T12:04:36-0500: [Worker(host:SeaLion.local pid:71372)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:126:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:04:42.669069"], ["updated_at", "2016-02-10 17:04:36.669702"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.801540"], ["created_at", "2016-02-10 17:04:43.801853"], ["updated_at", "2016-02-10 17:04:43.801853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (1.3ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.816345"], ["created_at", "2016-02-10 17:04:43.816739"], ["updated_at", "2016-02-10 17:04:43.816739"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.826777"], ["created_at", "2016-02-10 17:04:43.826974"], ["updated_at", "2016-02-10 17:04:43.826974"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.836130"], ["created_at", "2016-02-10 17:04:43.836384"], ["updated_at", "2016-02-10 17:04:43.836384"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.848489"], ["created_at", "2016-02-10 17:04:43.848738"], ["updated_at", "2016-02-10 17:04:43.848738"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:04:43.850175' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-10 17:04:43.853303', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.859506"], ["created_at", "2016-02-10 17:04:43.859698"], ["updated_at", "2016-02-10 17:04:43.859698"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.875331"], ["created_at", "2016-02-10 17:04:43.875550"], ["updated_at", "2016-02-10 17:04:43.875550"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:04:43.877318', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.883843"], ["created_at", "2016-02-10 17:04:43.884054"], ["updated_at", "2016-02-10 17:04:43.884054"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:04:43.885325' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.888279"], ["created_at", "2016-02-10 17:04:43.888592"], ["updated_at", "2016-02-10 17:04:43.888592"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:43.895000"], ["created_at", "2016-02-10 17:04:43.895261"], ["updated_at", "2016-02-10 17:04:43.895261"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.904907"], ["created_at", "2016-02-10 17:04:43.905147"], ["updated_at", "2016-02-10 17:04:43.905147"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:04:43.906628' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.908807"], ["created_at", "2016-02-10 17:04:43.909039"], ["updated_at", "2016-02-10 17:04:43.909039"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:43.913661"], ["created_at", "2016-02-10 17:04:43.913859"], ["updated_at", "2016-02-10 17:04:43.913859"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:117:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:04:49.916825"], ["updated_at", "2016-02-10 17:04:43.917367"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:43.920511"], ["created_at", "2016-02-10 17:04:43.920705"], ["updated_at", "2016-02-10 17:04:43.920705"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#explode (id=2) RUNNING +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:126:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:04:49.923288"], ["updated_at", "2016-02-10 17:04:43.923833"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.930407"], ["created_at", "2016-02-10 17:04:43.930678"], ["updated_at", "2016-02-10 17:04:43.930678"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:04:43.932222' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:04:43.932809' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:04:43.933278' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.938231"], ["created_at", "2016-02-10 17:04:43.938458"], ["updated_at", "2016-02-10 17:04:43.938458"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.945621"], ["created_at", "2016-02-10 17:04:43.945821"], ["updated_at", "2016-02-10 17:04:43.945821"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.951710"], ["created_at", "2016-02-10 17:04:43.951930"], ["updated_at", "2016-02-10 17:04:43.951930"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:04:43.953057' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:04:43.953510' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:04:43.953518') OR locked_by = 'host:SeaLion.local pid:71436') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:04:43.954894' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:04:43.954902') OR locked_by = 'host:SeaLion.local pid:71436') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:04:43.955137', "locked_by" = 'host:SeaLion.local pid:71436' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:04:43.954894' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:04:43.954902') OR locked_by = 'host:SeaLion.local pid:71436') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:04:43.961726"], ["created_at", "2016-02-10 17:04:43.961991"], ["updated_at", "2016-02-10 17:04:43.961991"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:04:43.964364', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:04:43.969867"], ["created_at", "2016-02-10 17:04:43.970132"], ["updated_at", "2016-02-10 17:04:43.970132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:04:43-0500: [Worker(host:SeaLion.local pid:71436)] Job Thing#something (id=1) COMPLETED after 0.0011 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (2.0ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.9ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.911691"], ["created_at", "2016-02-10 17:05:01.911969"], ["updated_at", "2016-02-10 17:05:01.911969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:05:01.913270' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-10 17:05:01.917035', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.925969"], ["created_at", "2016-02-10 17:05:01.926254"], ["updated_at", "2016-02-10 17:05:01.926254"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.936418"], ["created_at", "2016-02-10 17:05:01.936636"], ["updated_at", "2016-02-10 17:05:01.936636"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.949675"], ["created_at", "2016-02-10 17:05:01.949938"], ["updated_at", "2016-02-10 17:05:01.949938"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.961339"], ["created_at", "2016-02-10 17:05:01.961609"], ["updated_at", "2016-02-10 17:05:01.961609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.971323"], ["created_at", "2016-02-10 17:05:01.971556"], ["updated_at", "2016-02-10 17:05:01.971556"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.983215"], ["created_at", "2016-02-10 17:05:01.983422"], ["updated_at", "2016-02-10 17:05:01.983422"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:05:01.984849', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:05:01.990389"], ["created_at", "2016-02-10 17:05:01.990609"], ["updated_at", "2016-02-10 17:05:01.990609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:01.999474"], ["created_at", "2016-02-10 17:05:01.999731"], ["updated_at", "2016-02-10 17:05:01.999731"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.007190"], ["created_at", "2016-02-10 17:05:02.007443"], ["updated_at", "2016-02-10 17:05:02.007443"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.014303"], ["created_at", "2016-02-10 17:05:02.014519"], ["updated_at", "2016-02-10 17:05:02.014519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:05:02.015838' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:05:02.016345' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:05:02.016352') OR locked_by = 'host:SeaLion.local pid:71600') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:05:02.017800' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:05:02.017808') OR locked_by = 'host:SeaLion.local pid:71600') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:05:02.017937', "locked_by" = 'host:SeaLion.local pid:71600' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-10 17:05:02.017800' AND (locked_at IS NULL OR locked_at < '2016-02-10 13:05:02.017808') OR locked_by = 'host:SeaLion.local pid:71600') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_failed +------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.023316"], ["created_at", "2016-02-10 17:05:02.023548"], ["updated_at", "2016-02-10 17:05:02.023548"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:05:02.024597' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.026771"], ["created_at", "2016-02-10 17:05:02.026980"], ["updated_at", "2016-02-10 17:05:02.026980"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:05:02.032111"], ["created_at", "2016-02-10 17:05:02.032435"], ["updated_at", "2016-02-10 17:05:02.032435"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#explode (id=1) RUNNING +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:117:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:05:08.036001"], ["updated_at", "2016-02-10 17:05:02.036669"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:05:02.039949"], ["created_at", "2016-02-10 17:05:02.040127"], ["updated_at", "2016-02-10 17:05:02.040127"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#explode (id=2) RUNNING +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:126:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-10 17:05:08.042667"], ["updated_at", "2016-02-10 17:05:02.043153"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------------------- +JobTest: test_job_enqueue_with_existing_identifier_and_completed +---------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.048874"], ["created_at", "2016-02-10 17:05:02.049070"], ["updated_at", "2016-02-10 17:05:02.049070"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:05:02.050188' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.052096"], ["created_at", "2016-02-10 17:05:02.052254"], ["updated_at", "2016-02-10 17:05:02.052254"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.057929"], ["created_at", "2016-02-10 17:05:02.058186"], ["updated_at", "2016-02-10 17:05:02.058186"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-10 17:05:02.059780' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:05:02.060286' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-10 17:05:02.060708' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE "delayed_jobs"."identifier" = ? AND "delayed_jobs"."completed_at" IS NULL AND "delayed_jobs"."failed_at" IS NULL [["identifier", "unique_identifier"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-10 17:05:02.066456"], ["created_at", "2016-02-10 17:05:02.066667"], ["updated_at", "2016-02-10 17:05:02.066667"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-10 17:05:02.068499', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-10 17:05:02.072663"], ["created_at", "2016-02-10 17:05:02.072868"], ["updated_at", "2016-02-10 17:05:02.072868"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-10T12:05:02-0500: [Worker(host:SeaLion.local pid:71600)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (1.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.8ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:46:03.126636"], ["created_at", "2016-02-12 20:46:03.127434"], ["updated_at", "2016-02-12 20:46:03.127434"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#something (id=1) COMPLETED after 0.0017 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.147538"], ["created_at", "2016-02-12 20:46:03.147775"], ["updated_at", "2016-02-12 20:46:03.147775"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:46:03.149927', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job TestJob (id=1) COMPLETED after 0.0010 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.155516"], ["created_at", "2016-02-12 20:46:03.155711"], ["updated_at", "2016-02-12 20:46:03.155711"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:46:03.160410"], ["created_at", "2016-02-12 20:46:03.160683"], ["updated_at", "2016-02-12 20:46:03.160683"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.171419"], ["created_at", "2016-02-12 20:46:03.171671"], ["updated_at", "2016-02-12 20:46:03.171671"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:46:03.174455', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.181977"], ["created_at", "2016-02-12 20:46:03.182223"], ["updated_at", "2016-02-12 20:46:03.182223"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:46:03.183603' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:46:03.184156' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:46:03.184167') OR locked_by = 'host:SeaLion.local pid:56345') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:46:03.185947' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:46:03.185956') OR locked_by = 'host:SeaLion.local pid:56345') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:46:03.186135', "locked_by" = 'host:SeaLion.local pid:56345' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:46:03.185947' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:46:03.185956') OR locked_by = 'host:SeaLion.local pid:56345') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:46:03.191730"], ["created_at", "2016-02-12 20:46:03.191990"], ["updated_at", "2016-02-12 20:46:03.191990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#explode (id=1) RUNNING +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:46:09.195136"], ["updated_at", "2016-02-12 20:46:03.195776"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:46:03.199301"], ["created_at", "2016-02-12 20:46:03.199496"], ["updated_at", "2016-02-12 20:46:03.199496"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#explode (id=2) RUNNING +2016-02-12T15:46:03-0500: [Worker(host:SeaLion.local pid:56345)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:46:09.202339"], ["updated_at", "2016-02-12 20:46:03.202939"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.208250"], ["created_at", "2016-02-12 20:46:03.208483"], ["updated_at", "2016-02-12 20:46:03.208483"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:46:03.209923' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:46:03.210443' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:46:03.210860' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.260758"], ["created_at", "2016-02-12 20:46:03.260971"], ["updated_at", "2016-02-12 20:46:03.260971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.272434"], ["created_at", "2016-02-12 20:46:03.272624"], ["updated_at", "2016-02-12 20:46:03.272624"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.282353"], ["created_at", "2016-02-12 20:46:03.282617"], ["updated_at", "2016-02-12 20:46:03.282617"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.291936"], ["created_at", "2016-02-12 20:46:03.292161"], ["updated_at", "2016-02-12 20:46:03.292161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:46:03.293549' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-12 20:46:03.300304', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.306157"], ["created_at", "2016-02-12 20:46:03.306406"], ["updated_at", "2016-02-12 20:46:03.306406"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:46:03.316246"], ["created_at", "2016-02-12 20:46:03.316415"], ["updated_at", "2016-02-12 20:46:03.316415"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (1.9ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:05.116157"], ["created_at", "2016-02-12 20:47:05.116512"], ["updated_at", "2016-02-12 20:47:05.116512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.130736"], ["created_at", "2016-02-12 20:47:05.130966"], ["updated_at", "2016-02-12 20:47:05.130966"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.135592"], ["created_at", "2016-02-12 20:47:05.135788"], ["updated_at", "2016-02-12 20:47:05.135788"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:05.137382' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:05.138172' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:05.138182') OR locked_by = 'host:SeaLion.local pid:56472') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:05.139965' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:05.139984') OR locked_by = 'host:SeaLion.local pid:56472') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:05.140210', "locked_by" = 'host:SeaLion.local pid:56472' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:05.139965' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:05.139984') OR locked_by = 'host:SeaLion.local pid:56472') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.146781"], ["created_at", "2016-02-12 20:47:05.147009"], ["updated_at", "2016-02-12 20:47:05.147009"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:05.148487' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:05.148972' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:05.149313' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.154251"], ["created_at", "2016-02-12 20:47:05.154534"], ["updated_at", "2016-02-12 20:47:05.154534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:05.156932', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:05.162992"], ["created_at", "2016-02-12 20:47:05.163209"], ["updated_at", "2016-02-12 20:47:05.163209"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#explode (id=1) RUNNING +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:11.166523"], ["updated_at", "2016-02-12 20:47:05.167138"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:05.171632"], ["created_at", "2016-02-12 20:47:05.171879"], ["updated_at", "2016-02-12 20:47:05.171879"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#explode (id=2) RUNNING +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:11.175341"], ["updated_at", "2016-02-12 20:47:05.176158"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.212182"], ["created_at", "2016-02-12 20:47:05.212357"], ["updated_at", "2016-02-12 20:47:05.212357"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.222079"], ["created_at", "2016-02-12 20:47:05.222316"], ["updated_at", "2016-02-12 20:47:05.222316"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.231800"], ["created_at", "2016-02-12 20:47:05.232035"], ["updated_at", "2016-02-12 20:47:05.232035"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:05.233497' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-12 20:47:05.236975', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.243970"], ["created_at", "2016-02-12 20:47:05.244227"], ["updated_at", "2016-02-12 20:47:05.244227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.254477"], ["created_at", "2016-02-12 20:47:05.254677"], ["updated_at", "2016-02-12 20:47:05.254677"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.264922"], ["created_at", "2016-02-12 20:47:05.265160"], ["updated_at", "2016-02-12 20:47:05.265160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:05.283746"], ["created_at", "2016-02-12 20:47:05.283956"], ["updated_at", "2016-02-12 20:47:05.283956"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:05.286041', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:05.290593"], ["created_at", "2016-02-12 20:47:05.290774"], ["updated_at", "2016-02-12 20:47:05.290774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:05-0500: [Worker(host:SeaLion.local pid:56472)] Job Thing#something (id=1) COMPLETED after 0.0010 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (1.7ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.5ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.439320"], ["created_at", "2016-02-12 20:47:21.439671"], ["updated_at", "2016-02-12 20:47:21.439671"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.454939"], ["created_at", "2016-02-12 20:47:21.455245"], ["updated_at", "2016-02-12 20:47:21.455245"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.468384"], ["created_at", "2016-02-12 20:47:21.468669"], ["updated_at", "2016-02-12 20:47:21.468669"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.477987"], ["created_at", "2016-02-12 20:47:21.478208"], ["updated_at", "2016-02-12 20:47:21.478208"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.487253"], ["created_at", "2016-02-12 20:47:21.487467"], ["updated_at", "2016-02-12 20:47:21.487467"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.494702"], ["created_at", "2016-02-12 20:47:21.494883"], ["updated_at", "2016-02-12 20:47:21.494883"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:21.495990' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-12 20:47:21.498320', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:21.504503"], ["created_at", "2016-02-12 20:47:21.504707"], ["updated_at", "2016-02-12 20:47:21.504707"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.512741"], ["created_at", "2016-02-12 20:47:21.512955"], ["updated_at", "2016-02-12 20:47:21.512955"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:21.515017', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job TestJob (id=1) COMPLETED after 0.0011 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.520379"], ["created_at", "2016-02-12 20:47:21.520569"], ["updated_at", "2016-02-12 20:47:21.520569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:21.525214"], ["created_at", "2016-02-12 20:47:21.525406"], ["updated_at", "2016-02-12 20:47:21.525406"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.534417"], ["created_at", "2016-02-12 20:47:21.534668"], ["updated_at", "2016-02-12 20:47:21.534668"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:21.536317' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:21.536831' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:21.537213' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.542124"], ["created_at", "2016-02-12 20:47:21.542397"], ["updated_at", "2016-02-12 20:47:21.542397"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:21.544147', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:21.549585"], ["created_at", "2016-02-12 20:47:21.549791"], ["updated_at", "2016-02-12 20:47:21.549791"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:21.551052' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:21.551540' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:21.551548') OR locked_by = 'host:SeaLion.local pid:56675') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:21.553064' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:21.553072') OR locked_by = 'host:SeaLion.local pid:56675') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:21.553216', "locked_by" = 'host:SeaLion.local pid:56675' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:21.553064' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:21.553072') OR locked_by = 'host:SeaLion.local pid:56675') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:21.560018"], ["created_at", "2016-02-12 20:47:21.560342"], ["updated_at", "2016-02-12 20:47:21.560342"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#explode (id=1) RUNNING +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:27.564439"], ["updated_at", "2016-02-12 20:47:21.565200"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:21.568975"], ["created_at", "2016-02-12 20:47:21.569161"], ["updated_at", "2016-02-12 20:47:21.569161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#explode (id=2) RUNNING +2016-02-12T15:47:21-0500: [Worker(host:SeaLion.local pid:56675)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:27.571632"], ["updated_at", "2016-02-12 20:47:21.572222"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (1.7ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.8ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.7ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.096617"], ["created_at", "2016-02-12 20:47:34.096966"], ["updated_at", "2016-02-12 20:47:34.096966"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:34.099369', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job TestJob (id=1) COMPLETED after 0.0013 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:34.106276"], ["created_at", "2016-02-12 20:47:34.106500"], ["updated_at", "2016-02-12 20:47:34.106500"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.119768"], ["created_at", "2016-02-12 20:47:34.119973"], ["updated_at", "2016-02-12 20:47:34.119973"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:34.121711' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:34.122276' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:34.122702' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:34.126290"], ["created_at", "2016-02-12 20:47:34.126484"], ["updated_at", "2016-02-12 20:47:34.126484"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#explode (id=1) RUNNING +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:40.129498"], ["updated_at", "2016-02-12 20:47:34.130080"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:34.133223"], ["created_at", "2016-02-12 20:47:34.133394"], ["updated_at", "2016-02-12 20:47:34.133394"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#explode (id=2) RUNNING +2016-02-12T15:47:34-0500: [Worker(host:SeaLion.local pid:56749)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-12 20:47:40.136402"], ["updated_at", "2016-02-12 20:47:34.136969"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.142751"], ["created_at", "2016-02-12 20:47:34.142984"], ["updated_at", "2016-02-12 20:47:34.142984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:34.144754', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.150085"], ["created_at", "2016-02-12 20:47:34.150333"], ["updated_at", "2016-02-12 20:47:34.150333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.155630"], ["created_at", "2016-02-12 20:47:34.155866"], ["updated_at", "2016-02-12 20:47:34.155866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-12 20:47:34.157568' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:34.158176' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:34.158187') OR locked_by = 'host:SeaLion.local pid:56749') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:34.160057' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:34.160066') OR locked_by = 'host:SeaLion.local pid:56749') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-12 20:47:34.160289', "locked_by" = 'host:SeaLion.local pid:56749' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-12 20:47:34.160057' AND (locked_at IS NULL OR locked_at < '2016-02-12 16:47:34.160066') OR locked_by = 'host:SeaLion.local pid:56749') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-12 20:47:34.166778"], ["created_at", "2016-02-12 20:47:34.167039"], ["updated_at", "2016-02-12 20:47:34.167039"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.210862"], ["created_at", "2016-02-12 20:47:34.211056"], ["updated_at", "2016-02-12 20:47:34.211056"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.222138"], ["created_at", "2016-02-12 20:47:34.222425"], ["updated_at", "2016-02-12 20:47:34.222425"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.234008"], ["created_at", "2016-02-12 20:47:34.234258"], ["updated_at", "2016-02-12 20:47:34.234258"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.245575"], ["created_at", "2016-02-12 20:47:34.245880"], ["updated_at", "2016-02-12 20:47:34.245880"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-12 20:47:34.247579' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-12 20:47:34.251390', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.258622"], ["created_at", "2016-02-12 20:47:34.258874"], ["updated_at", "2016-02-12 20:47:34.258874"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-12 20:47:34.271308"], ["created_at", "2016-02-12 20:47:34.271522"], ["updated_at", "2016-02-12 20:47:34.271522"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.7ms) rollback transaction +  (1.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  +  (0.1ms) select sqlite_version(*) +  (1.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar +  (0.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar +  (1.0ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar +  (0.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL +  (0.7ms) ALTER TABLE "delayed_jobs" ADD "message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar +  (0.6ms) ALTER TABLE "delayed_jobs" ADD "completed_at" datetime +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_identifier" ON "delayed_jobs" ("identifier") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_record_type_and_record_id" ON "delayed_jobs" ("record_type", "record_id") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_handler_class" ON "delayed_jobs" ("handler_class") +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_handler_class' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_record_type_and_record_id' AND type='index' + +  (0.1ms) SELECT sql + FROM sqlite_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_delayed_jobs_on_identifier' AND type='index' + +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='delayed_jobs_priority' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='delayed_jobs_priority' AND type='index' + +  (0.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at") +  (0.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  +  (0.1ms) begin transaction +------------------------------------- +ScaffoldGeneratorTest: test_generator +------------------------------------- +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_destroy +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.373055"], ["created_at", "2016-02-26 17:33:20.373909"], ["updated_at", "2016-02-26 17:33:20.373909"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +Processing by DelayedJobProgress::JobsController#destroy as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 204 No Content in 2ms (ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show_failure +--------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.386749"], ["created_at", "2016-02-26 17:33:20.386928"], ["updated_at", "2016-02-26 17:33:20.386928"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 0]] +Filter chain halted as :load_job rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index_record_filtering +------------------------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.394940"], ["created_at", "2016-02-26 17:33:20.395126"], ["updated_at", "2016-02-26 17:33:20.395126"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 1]] +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"invalid", "record_id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "invalid"], ["record_id", 1]] +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms) +Processing by DelayedJobProgress::JobsController#index as HTML + Parameters: {"record_type"=>"Thing", "record_id"=>"invalid"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."record_type" = ? AND "delayed_jobs"."record_id" = ? [["record_type", "Thing"], ["record_id", 0]] +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_show +------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.410275"], ["created_at", "2016-02-26 17:33:20.410541"], ["updated_at", "2016-02-26 17:33:20.410541"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#show as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_index +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.419145"], ["created_at", "2016-02-26 17:33:20.419357"], ["updated_at", "2016-02-26 17:33:20.419357"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by DelayedJobProgress::JobsController#index as HTML + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------------- +DelayedJobProgress::JobsControllerTest: test_reset +-------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.428437"], ["created_at", "2016-02-26 17:33:20.428640"], ["updated_at", "2016-02-26 17:33:20.428640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-26 17:33:20.430073' WHERE "delayed_jobs"."id" = ? [["id", 1]] +Processing by DelayedJobProgress::JobsController#reload as HTML + Parameters: {"id"=>"1"} + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2016-02-26 17:33:20.433280', "failed_at" = NULL, "completed_at" = NULL, "locked_by" = NULL, "locked_at" = NULL, "last_error" = NULL, "attempts" = 0 WHERE "delayed_jobs"."id" = ? [["id", 1]] +Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms) + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------- +DelayedJobProgressTest: test_module +----------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------ +WorkerTest: test_run_job_and_destroy +------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-26 17:33:20.440443"], ["created_at", "2016-02-26 17:33:20.440660"], ["updated_at", "2016-02-26 17:33:20.440660"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#something (id=1) RUNNING + SQL (0.1ms) UPDATE "things" SET "name" = 'processed' WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#something (id=1) COMPLETED after 0.0012 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +WorkerTest: test_run_job +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.448740"], ["created_at", "2016-02-26 17:33:20.448927"], ["updated_at", "2016-02-26 17:33:20.448927"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job TestJob (id=1) RUNNING + SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-26 17:33:20.450611', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job TestJob (id=1) COMPLETED after 0.0009 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_custom +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.455473"], ["created_at", "2016-02-26 17:33:20.455650"], ["updated_at", "2016-02-26 17:33:20.455650"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +------------------------- +JobTest: test_job_default +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :something\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-26 17:33:20.461370"], ["created_at", "2016-02-26 17:33:20.461636"], ["updated_at", "2016-02-26 17:33:20.461636"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------- +JobTest: test_job_reserve_completed +----------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.472793"], ["created_at", "2016-02-26 17:33:20.473136"], ["updated_at", "2016-02-26 17:33:20.473136"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-26 17:33:20.475315' WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-26 17:33:20.476125' AND (locked_at IS NULL OR locked_at < '2016-02-26 13:33:20.476137') OR locked_by = 'host:SeaLion.local pid:97179') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2016-02-26 17:33:20.478188' AND (locked_at IS NULL OR locked_at < '2016-02-26 13:33:20.478251') OR locked_by = 'host:SeaLion.local pid:97179') +AND failed_at IS NULL +AND completed_at IS NULL +) ORDER BY priority ASC, run_at ASC LIMIT 5 + SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-26 17:33:20.478453', "locked_by" = 'host:SeaLion.local pid:97179' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2016-02-26 17:33:20.478188' AND (locked_at IS NULL OR locked_at < '2016-02-26 13:33:20.478251') OR locked_by = 'host:SeaLion.local pid:97179') +AND failed_at IS NULL +AND completed_at IS NULL +) AND "delayed_jobs"."id" = ? ORDER BY priority ASC, run_at ASC) [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] + Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +------------------------ +JobTest: test_job_status +------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.484841"], ["created_at", "2016-02-26 17:33:20.485080"], ["updated_at", "2016-02-26 17:33:20.485080"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2016-02-26 17:33:20.486527' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-26 17:33:20.486998' WHERE "delayed_jobs"."id" = ? [["id", 1]] + SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2016-02-26 17:33:20.487404' WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +------------------------- +JobTest: test_job_destroy +------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "record_id", "record_type", "identifier", "progress_max", "progress_current", "message", "queue", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["record_id", 1], ["record_type", "Thing"], ["identifier", "unique_identifier"], ["progress_max", 1000], ["progress_current", 500], ["message", "initialized"], ["queue", "reports"], ["handler_class", "TestJob"], ["run_at", "2016-02-26 17:33:20.491749"], ["created_at", "2016-02-26 17:33:20.491980"], ["updated_at", "2016-02-26 17:33:20.491980"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" + SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2016-02-26 17:33:20.493598', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +----------------------- +JobTest: test_job_error +----------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-26 17:33:20.498981"], ["created_at", "2016-02-26 17:33:20.499233"], ["updated_at", "2016-02-26 17:33:20.499233"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#explode (id=1) RUNNING +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-26 17:33:26.502580"], ["updated_at", "2016-02-26 17:33:20.503247"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "delayed_jobs" ("record_id", "record_type", "handler", "handler_class", "run_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Thing"], ["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n name: test\n id: 1\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes: !ruby/object:ActiveRecord::LazyAttributeHash\n types:\n id: &2 !ruby/object:ActiveRecord::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n name: &1 !ruby/object:ActiveRecord::Type::String\n precision: \n scale: \n limit: \n values:\n id: \n name: \n additional_types: {}\n materialized: true\n delegate_hash:\n name: !ruby/object:ActiveRecord::Attribute::FromUser\n name: name\n value_before_type_cast: test\n type: *1\n value: test\n id: !ruby/object:ActiveRecord::Attribute::FromUser\n name: id\n value_before_type_cast: 1\n type: *2\n value: 1\n new_record: false\n active_record_yaml_version: 0\nmethod_name: :explode\nargs: []\n"], ["handler_class", "Delayed::PerformableMethod"], ["run_at", "2016-02-26 17:33:20.506896"], ["created_at", "2016-02-26 17:33:20.507139"], ["updated_at", "2016-02-26 17:33:20.507139"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT 1 + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#explode (id=2) RUNNING +2016-02-26T12:33:20-0500: [Worker(host:SeaLion.local pid:97179)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "custom error"], ["last_error", "hell\n/Users/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/performable_method.rb:30:in `perform'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:100:in `block in invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:66:in `execute'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/backend/base.rb:97:in `invoke_job'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `call'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:224:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/delayed_job-4.1.1/lib/delayed/worker.rb:223:in `run'\n/Users/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'\n/Users/oleg/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'"], ["attempts", 1], ["run_at", "2016-02-26 17:33:26.509563"], ["updated_at", "2016-02-26 17:33:20.510072"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction