(7.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.2ms) select sqlite_version(*)  (5.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (4.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (4.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (8.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (11.3ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (12.3ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (9.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (10.0ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (10.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'   (11.3ms) 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'   (10.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'   (11.3ms) 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'   (10.2ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (8.5ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC]]  (5.5ms) commit transaction  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] Job TestJob (id=1) RUNNING SQL (0.2ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:44:07.600687', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] Job TestJob (id=1) COMPLETED after 0.0023 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] 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 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] Job Thing#something (id=1) COMPLETED after 0.0031  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) 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.1ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:44:07.628350', "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.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) rollback transaction  (0.0ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] Job Thing#explode (id=1) RUNNING 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:44:13 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] Job Thing#explode (id=2) RUNNING 2017-05-07T19:44:07-0700: [Worker(host:DevVM pid:13597)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:44:13 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:44:07.655888' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:44:07.656384' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:44:07.656778' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) 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.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- JobTest: test_job_reserve_completed -----------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:44:07.677402' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:44:07.677973' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:44:07.677997') OR locked_by = 'host:DevVM pid:13597') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 02:44:07.679725' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:44:07.679764') OR locked_by = 'host:DevVM pid:13597') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:44:07.680080', "locked_by" = 'host:DevVM pid:13597' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:44:07.679725' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:44:07.679764') OR locked_by = 'host:DevVM pid:13597') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.3ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.3ms)  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:44:07.765789' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.5ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 02:44:07.771043', "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 6ms (Views: 1.3ms | ActiveRecord: 0.7ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:44:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:44:07 UTC], ["updated_at", 2017-05-08 02:44:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (0.0ms) rollback transaction  (6.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.2ms) select sqlite_version(*)  (6.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (11.0ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (9.4ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (10.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (11.1ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (12.0ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (11.2ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (11.1ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (7.4ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (8.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'   (10.1ms) 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'   (7.2ms) 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'   (5.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'   (6.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (5.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC]]  (5.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ WorkerTest: test_run_job ------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] 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" = '2017-05-08 02:47:07.148093', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] 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 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] Job Thing#something (id=1) COMPLETED after 0.0013  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:07.172809', "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.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:07.180082' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:47:07.180697' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:07.180729') OR locked_by = 'host:DevVM pid:13710') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 02:47:07.183118' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:07.183170') OR locked_by = 'host:DevVM pid:13710') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:47:07.183404', "locked_by" = 'host:DevVM pid:13710' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:47:07.183118' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:07.183170') OR locked_by = 'host:DevVM pid:13710') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] Job Thing#explode (id=1) RUNNING 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:47:13 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] Job Thing#explode (id=2) RUNNING 2017-05-07T19:47:07-0700: [Worker(host:DevVM pid:13710)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:47:13 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:47:07.220201' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:07.220689' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:47:07.221081' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:47:07.260411' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.2ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 02:47:07.267230', "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 4ms (Views: 1.4ms | ActiveRecord: 0.4ms) Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.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.1ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.2ms) 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.2ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.1ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.1ms) 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.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#show as HTML Parameters: {"id"=>"1"} Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.3ms) 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.0ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:07 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:07 UTC], ["updated_at", 2017-05-08 02:47:07 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.2ms) rollback transaction  (11.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(*)  (6.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (5.1ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (5.8ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.7ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (4.2ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (4.8ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (4.9ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (5.2ms) 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'   (15.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'   (13.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'   (12.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'   (13.4ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (11.5ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (11.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC]]  (8.8ms) commit transaction  (0.1ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.2ms) 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.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] 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" = '2017-05-08 02:47:31.642068', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] Job TestJob (id=1) COMPLETED after 0.0015 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] 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 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] Job Thing#something (id=1) COMPLETED after 0.0014  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:31.665493' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:47:31.666089' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:31.666133') OR locked_by = 'host:DevVM pid:13746') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 02:47:31.668389' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:31.668443') OR locked_by = 'host:DevVM pid:13746') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:47:31.668657', "locked_by" = 'host:DevVM pid:13746' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:47:31.668389' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:47:31.668443') OR locked_by = 'host:DevVM pid:13746') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:47:31.676484' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:31.677373' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:47:31.677996' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.2ms) rollback transaction  (0.0ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:47:31.687794', "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.2ms) 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.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (0.0ms) 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 (1.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] Job Thing#explode (id=1) RUNNING 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:47:37 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] Job Thing#explode (id=2) RUNNING 2017-05-07T19:47:31-0700: [Worker(host:DevVM pid:13746)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:47:37 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:47:31.791927' WHERE "delayed_jobs"."id" = ? [["id", 1]] Processing by DelayedJobProgress::JobsController#reload as HTML Parameters: {"id"=>"1"} Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 02:47:31.797673', "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 3ms (Views: 0.7ms | ActiveRecord: 0.4ms) Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 ? [["id", 1], ["LIMIT", 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.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} Delayed::Backend::ActiveRecord::Job Load (0.3ms) 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.7ms | ActiveRecord: 0.3ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.4ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:47:31 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:47:31 UTC], ["updated_at", 2017-05-08 02:47:31 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (12.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(*)  (6.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (4.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (5.3ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (5.6ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.5ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (6.0ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (4.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (5.0ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (5.0ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (5.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'   (6.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'   (7.3ms) 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'   (9.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'   (5.8ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (6.4ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC]]  (11.0ms) commit transaction  (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_index_record_filtering -------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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: 1.0ms | ActiveRecord: 0.1ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.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.0ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:48:48.251109' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 02:48:48.253385', "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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (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.1ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------- JobTest: test_job_destroy -------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:48:48.288855', "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.1ms) rollback transaction  (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.7ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.2ms) 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 ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#explode (id=1) RUNNING 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:48:54 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#explode (id=2) RUNNING 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#explode (id=2) 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", "custom error"], ["last_error", "hell\n/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 02:48:54 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:48:48.319500' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:48:48.320144' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:48:48.320184') OR locked_by = 'host:DevVM pid:13809') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 02:48:48.323913' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:48:48.323983') OR locked_by = 'host:DevVM pid:13809') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:48:48.324246', "locked_by" = 'host:DevVM pid:13809' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 02:48:48.323913' AND (locked_at IS NULL OR locked_at < '2017-05-07 22:48:48.323983') OR locked_by = 'host:DevVM pid:13809') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 02:48:48.331364' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 02:48:48.331763' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 02:48:48.332189' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ WorkerTest: test_run_job_and_destroy ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#something (id=1) RUNNING SQL (0.2ms) 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 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] Job Thing#something (id=1) COMPLETED after 0.0029  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 02:48:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 02:48:48 UTC], ["updated_at", 2017-05-08 02:48:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] 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" = '2017-05-08 02:48:48.352439', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T19:48:48-0700: [Worker(host:DevVM pid:13809)] 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (7.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(*)  (5.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (4.3ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (4.9ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (5.7ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.3ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (4.8ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (6.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (5.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (13.5ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (19.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'   (9.2ms) 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'   (10.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'   (10.2ms) 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'   (6.1ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (6.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC]]  (4.9ms) commit transaction  (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 ------------------------------------ WorkerTest: test_run_job_and_destroy ------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:12:48-0700: [Worker(host:DevVM pid:14384)] 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 2017-05-07T20:12:48-0700: [Worker(host:DevVM pid:14384)] Job Thing#something (id=1) COMPLETED after 0.0033  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:12:48-0700: [Worker(host:DevVM pid:14384)] 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" = '2017-05-08 03:12:48.855352', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:12:48-0700: [Worker(host:DevVM pid:14384)] Job TestJob (id=1) COMPLETED after 0.0021 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_destroy ----------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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_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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:12:48.946969' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:12:48.948522', "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.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"invalid"} 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", "invalid"], ["record_id", 1]] Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.4ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.7ms | ActiveRecord: 0.5ms)  (0.2ms) 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.1ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:48 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:48 UTC], ["updated_at", 2017-05-08 03:12:48 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:12:48.994688', "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.1ms) rollback transaction  (0.0ms) 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.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:12:49-0700: [Worker(host:DevVM pid:14384)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:12:49-0700: [Worker(host:DevVM pid:14384)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:12:55 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:12:49-0700: [Worker(host:DevVM pid:14384)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:12:49-0700: [Worker(host:DevVM pid:14384)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:12:55 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------- JobTest: test_job_default -------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.2ms) 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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) 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.0ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:12:49.045824' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:12:49.046455' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:12:49.046478') OR locked_by = 'host:DevVM pid:14384') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 03:12:49.048243' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:12:49.048283') OR locked_by = 'host:DevVM pid:14384') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:12:49.048495', "locked_by" = 'host:DevVM pid:14384' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:12:49.048243' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:12:49.048283') OR locked_by = 'host:DevVM pid:14384') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:12:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:12:49 UTC], ["updated_at", 2017-05-08 03:12:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:12:49.060955' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:12:49.061438' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:12:49.061794' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (5.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(*)  (5.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (5.3ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (5.0ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (4.3ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (5.1ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (4.6ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (4.9ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (4.2ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (5.6ms) 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'   (18.2ms) 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.3ms)  SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index'   (14.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'   (13.4ms) 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'   (12.6ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (12.4ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (12.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC]]  (9.2ms) commit 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.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.1ms) 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 ? [["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] 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 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] Job Thing#something (id=1) COMPLETED after 0.0018  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] 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" = '2017-05-08 03:13:58.881856', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] Job TestJob (id=1) COMPLETED after 0.0021 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:13:58.906977', "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.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] Job Thing#explode (id=1) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "delayed_jobs" SET "error_message" = ?, "last_error" = ?, "attempts" = ?, "run_at" = ?, "updated_at" = ? WHERE "delayed_jobs"."id" = ? [["error_message", "hell"], ["last_error", "hell\n/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:14:04 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:13:58-0700: [Worker(host:DevVM pid:14432)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:14:04 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:13:58.931345' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:13:58.931784' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:13:58.932116' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) 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.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:13:58.947196' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:13:58.947783' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:13:58.947808') OR locked_by = 'host:DevVM pid:14432') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 03:13:58.949775' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:13:58.949813') OR locked_by = 'host:DevVM pid:14432') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:13:58.950020', "locked_by" = 'host:DevVM pid:14432' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:13:58.949775' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:13:58.949813') OR locked_by = 'host:DevVM pid:14432') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:58 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:58 UTC], ["updated_at", 2017-05-08 03:13:58 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:13:58.998582' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:13:59.002968', "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.3ms) Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:59 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:59 UTC], ["updated_at", 2017-05-08 03:13:59 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index --------------------------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:59 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:59 UTC], ["updated_at", 2017-05-08 03:13:59 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:59 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:59 UTC], ["updated_at", 2017-05-08 03:13:59 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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.1ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.3ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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 2ms (Views: 0.9ms | ActiveRecord: 0.5ms)  (0.3ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:13:59 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:13:59 UTC], ["updated_at", 2017-05-08 03:13:59 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.1ms) rollback transaction  (16.4ms) 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(*)  (15.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (7.7ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (4.8ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (5.4ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (5.3ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (4.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (4.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (5.1ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (6.4ms) 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'   (5.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'   (5.4ms) 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'   (14.4ms) 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'   (13.3ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (17.4ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (13.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC]]  (9.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:15:38 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:15:38 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (0.6ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:15:32.270543' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:32.271073' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:15:32.271503' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:32.280511' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:15:32.280999' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:32.281029') OR locked_by = 'host:DevVM pid:14508') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 03:15:32.282846' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:32.282868') OR locked_by = 'host:DevVM pid:14508') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.2ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:15:32.283075', "locked_by" = 'host:DevVM pid:14508' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:15:32.282846' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:32.282868') OR locked_by = 'host:DevVM pid:14508') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.1ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:32.303040', "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.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (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.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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] 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" = '2017-05-08 03:15:32.320947', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] 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.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:15:32-0700: [Worker(host:DevVM pid:14508)] Job Thing#something (id=1) COMPLETED after 0.0014  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) 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.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:15:32.403814' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:15:32.405566', "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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (0.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:32 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:32 UTC], ["updated_at", 2017-05-08 03:15:32 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} Delayed::Backend::ActiveRecord::Job Load (0.4ms) 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.4ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.4ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.8ms | ActiveRecord: 0.6ms)  (0.3ms) rollback transaction  (8.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(*)  (7.6ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (6.5ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (10.1ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (12.3ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (15.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (9.1ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (12.7ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (9.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (7.8ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (7.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'   (10.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'   (6.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'   (6.4ms) 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'   (6.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (6.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (8.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC]]  (7.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (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.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:15:49.876880' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:15:49.880984', "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.3ms) Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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 Completed 204 No Content in 1ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index --------------------------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.1ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show -------------------------------------------------  (0.2ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ WorkerTest: test_run_job ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job TestJob (id=1) RUNNING SQL (0.2ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.3ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:49.930341', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job TestJob (id=1) COMPLETED after 0.0028 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job Thing#something (id=1) RUNNING SQL (0.2ms) 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 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job Thing#something (id=1) COMPLETED after 0.0031  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:15:49.959228' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:49.959819' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:15:49.960233' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- JobTest: test_job_destroy -------------------------  (0.3ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:49.971866', "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.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) rollback transaction  (0.0ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:15:55 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:15:49-0700: [Worker(host:DevVM pid:14550)] Job Thing#explode (id=2) FAILED (0 prior attempts) with RuntimeError: hell  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:15:55 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:15:49 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:15:49 UTC], ["updated_at", 2017-05-08 03:15:49 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:15:50.000134' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:15:50.000634' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:50.000674') OR locked_by = 'host:DevVM pid:14550') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:15:50.002763' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:50.002892') OR locked_by = 'host:DevVM pid:14550') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:15:50.003376', "locked_by" = 'host:DevVM pid:14550' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:15:50.002763' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:15:50.002892') OR locked_by = 'host:DevVM pid:14550') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (10.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(*)  (12.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (10.6ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (10.1ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (8.9ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.4ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (5.5ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (4.5ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (4.4ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (4.3ms) 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'   (5.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'   (6.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'   (5.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'   (10.7ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (14.3ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (12.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC]]  (10.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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 3ms (Views: 1.1ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.1ms) 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.0ms) RELEASE SAVEPOINT active_record_1 Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 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.1ms) rollback transaction  (0.3ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:16:05.969713' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:16:05.971302', "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 ? [["id", 1], ["LIMIT", 1]]  (1.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_show_failure ---------------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:16:05 UTC], ["created_at", 2017-05-08 03:16:05 UTC], ["updated_at", 2017-05-08 03:16:05 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:05-0700: [Worker(host:DevVM pid:14593)] 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 2017-05-07T20:16:05-0700: [Worker(host:DevVM pid:14593)] Job Thing#something (id=1) COMPLETED after 0.0018  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.1ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] 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" = '2017-05-08 03:16:06.009300', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] 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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (0.0ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:06.019613', "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.1ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.2ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:06.033582' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:16:06.034051' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:06.034072') OR locked_by = 'host:DevVM pid:14593') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 03:16:06.035642' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:06.035665') OR locked_by = 'host:DevVM pid:14593') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:16:06.035833', "locked_by" = 'host:DevVM pid:14593' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:16:06.035642' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:06.035665') OR locked_by = 'host:DevVM pid:14593') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ JobTest: test_job_status ------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:16:06.042896' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:06.043311' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.0ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:16:06.043672' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "things" ("name") VALUES (?) [["name", "test"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:16:12 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:16:06-0700: [Worker(host:DevVM pid:14593)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:16:12 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:16:06 UTC], ["created_at", 2017-05-08 03:16:06 UTC], ["updated_at", 2017-05-08 03:16:06 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) rollback transaction  (11.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.2ms) select sqlite_version(*)  (13.5ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")  (7.4ms) ALTER TABLE "delayed_jobs" ADD "identifier" varchar  (8.7ms) ALTER TABLE "delayed_jobs" ADD "record_type" varchar  (5.3ms) ALTER TABLE "delayed_jobs" ADD "record_id" integer  (4.9ms) ALTER TABLE "delayed_jobs" ADD "handler_class" varchar  (4.5ms) ALTER TABLE "delayed_jobs" ADD "progress_current" integer DEFAULT 0 NOT NULL  (6.2ms) ALTER TABLE "delayed_jobs" ADD "progress_max" integer DEFAULT 100 NOT NULL  (4.6ms) ALTER TABLE "delayed_jobs" ADD "message" varchar  (4.9ms) ALTER TABLE "delayed_jobs" ADD "error_message" varchar  (4.4ms) 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'   (5.1ms) 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'   (5.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'   (8.1ms) 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'   (14.4ms) CREATE INDEX "index_delayed_jobs_on_completed_at" ON "delayed_jobs" ("completed_at")  (13.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (11.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC]]  (9.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------- ScaffoldGeneratorTest: test_generator -------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ WorkerTest: test_run_job ------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] Job TestJob (id=1) RUNNING SQL (0.1ms) UPDATE "delayed_jobs" SET "message" = 'complete' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.2ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:46.130490', "progress_current" = 1000, "locked_at" = NULL, "locked_by" = NULL WHERE "delayed_jobs"."id" = ? [["id", 1]] 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] Job TestJob (id=1) COMPLETED after 0.0017 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) 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.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (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 ? [["LIMIT", 1]]  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] 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 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] Job Thing#something (id=1) COMPLETED after 0.0014  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)  (0.3ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.6ms)  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index --------------------------------------------------  (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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (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 ? [["id", 0], ["LIMIT", 1]] Filter chain halted as :load_job rendered or redirected Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_index_record_filtering -------------------------------------------------------------------  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"Thing"} 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.5ms | ActiveRecord: 0.2ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"1", "record_type"=>"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", "invalid"], ["record_id", 1]] Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.3ms) Processing by DelayedJobProgress::JobsController#index as HTML Parameters: {"record_id"=>"invalid", "record_type"=>"Thing"} 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.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- DelayedJobProgress::JobsControllerTest: test_reset --------------------------------------------------  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:16:46.238444' 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 ? [["id", 1], ["LIMIT", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "run_at" = '2017-05-08 03:16:46.239936', "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 ? [["id", 1], ["LIMIT", 1]]  (0.2ms) 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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "delayed_jobs" SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:46.253400', "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.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- JobTest: test_job_error -----------------------  (0.0ms) 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.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] Job Thing#explode (id=1) RUNNING 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:90:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:16:52 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :explode\nargs: []\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] Job Thing#explode (id=2) RUNNING 2017-05-07T20:16:46-0700: [Worker(host:DevVM pid:14641)] 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/home/oleg/Code/delayed_job_progress/test/test_helper.rb:29:in `explode'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'\n/home/oleg/Code/delayed_job_progress/test/extensions/job_test.rb:99:in `test_job_error'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:105:in `block (3 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:202:in `capture_exceptions'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:102:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:253:in `time_it'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:101:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:273:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest/test.rb:100:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:822:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:323:in `run_one_method'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:310:in `block (2 levels) in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `each'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:309:in `block in run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:349:in `on_signal'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:336:in `with_info_handler'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:308:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/line_filtering.rb:11:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `block in __run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `map'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:158:in `__run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:135:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/test_unit/minitest_plugin.rb:72:in `run'\n/home/oleg/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.10.1/lib/minitest.rb:62:in `block in autorun'"], ["attempts", 1], ["run_at", 2017-05-08 03:16:52 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:46.275351' WHERE "delayed_jobs"."id" = ? [["id", 1]] Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:16:46.275817' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:46.275837') OR locked_by = 'host:DevVM pid:14641') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 <= '2017-05-08 03:16:46.278040' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:46.278075') OR locked_by = 'host:DevVM pid:14641') AND failed_at IS NULL AND completed_at IS NULL ) ORDER BY priority ASC, run_at ASC LIMIT ? [["LIMIT", 5]] SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:16:46.278375', "locked_by" = 'host:DevVM pid:14641' WHERE "delayed_jobs"."id" IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2017-05-08 03:16:46.278040' AND (locked_at IS NULL OR locked_at < '2017-05-07 23:16:46.278075') OR locked_by = 'host:DevVM pid:14641') 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 ? [["id", 1], ["LIMIT", 1]] Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" WHERE "delayed_jobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (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 ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "queue", "created_at", "updated_at", "identifier", "record_type", "record_id", "handler_class", "progress_current", "progress_max", "message") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/struct:TestJob\nthing_id: 1\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["queue", "reports"], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["identifier", "unique_identifier"], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "TestJob"], ["progress_current", 500], ["progress_max", 1000], ["message", "initialized"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "delayed_jobs" SET "locked_at" = '2017-05-08 03:16:46.286931' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "completed_at" = '2017-05-08 03:16:46.287537' WHERE "delayed_jobs"."id" = ? [["id", 1]] SQL (0.1ms) UPDATE "delayed_jobs" SET "failed_at" = '2017-05-08 03:16:46.287901' WHERE "delayed_jobs"."id" = ? [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) 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" ("handler", "run_at", "created_at", "updated_at", "record_type", "record_id", "handler_class") VALUES (?, ?, ?, ?, ?, ?, ?) [["handler", "--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/object:Thing\n raw_attributes:\n id: 1\n name: test\n attributes: !ruby/object:ActiveRecord::AttributeSet\n attributes:\n id: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: id\n value_before_type_cast: 1\n type: !ruby/object:ActiveModel::Type::Integer\n precision: \n scale: \n limit: \n range: !ruby/range\n begin: -2147483648\n end: 2147483648\n excl: true\n original_attribute: \n value: 1\n name: !ruby/object:ActiveRecord::Attribute::FromDatabase\n name: name\n value_before_type_cast: test\n type: !ruby/object:ActiveModel::Type::String\n precision: \n scale: \n limit: \n original_attribute: \n new_record: false\n active_record_yaml_version: 1\nmethod_name: :something\nargs: []\n"], ["run_at", 2017-05-08 03:16:46 UTC], ["created_at", 2017-05-08 03:16:46 UTC], ["updated_at", 2017-05-08 03:16:46 UTC], ["record_type", "Thing"], ["record_id", 1], ["handler_class", "Delayed::PerformableMethod"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.0ms) SELECT "delayed_jobs".* FROM "delayed_jobs" ORDER BY "delayed_jobs"."id" DESC LIMIT ? [["LIMIT", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- DelayedJobProgressTest: test_module -----------------------------------  (0.0ms) rollback transaction