(0.1ms) DROP TABLE IF EXISTS "categories"  (0.1ms) SELECT sqlite_version(*)  (2.1ms) CREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "store_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) DROP TABLE IF EXISTS "category_items"  (2.0ms) CREATE TABLE "category_items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "category_id" integer, "product_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "products"  (1.9ms) CREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) DROP TABLE IF EXISTS "stores"  (2.3ms) CREATE TABLE "stores" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20160326174530)  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20160325214849), (20160325214744), (20160325220006);   (1.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.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-10-15 21:20:02.032321"], ["updated_at", "2018-10-15 21:20:02.032321"]]  (1.5ms) commit transaction 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  (0.0ms) commit transaction  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "products" Fixture Delete (0.2ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 21:22:16.284556', '2018-10-15 21:22:16.284556', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 21:22:16.286635', '2018-10-15 21:22:16.286635', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 21:22:16.288991', '2018-10-15 21:22:16.288991', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 21:22:16.291985', '2018-10-15 21:22:16.291985', 868874525)  (1.1ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 21:22:16.340084"], ["updated_at", "2018-10-15 21:22:16.340084"]] CategoryItem Create (0.2ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 21:22:16.341408"], ["updated_at", "2018-10-15 21:22:16.341408"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: d23eeddc-3a0c-44bc-94c5-52a1a7362512) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Product Load (0.9ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.6ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 21:22:16.350098"], ["updated_at", "2018-10-15 21:22:16.350098"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a1ccafe1-3519-4ed9-ba2b-a12307006c84) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [a1ccafe1-3519-4ed9-ba2b-a12307006c84] Performing Thermos::RefillJob (Job ID: a1ccafe1-3519-4ed9-ba2b-a12307006c84) from Async(default) with arguments: #>  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 CategoryItem Create (0.4ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 21:22:16.359137"], ["updated_at", "2018-10-15 21:22:16.359137"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c00d19a5-dc71-4b54-972f-1d739cea4a4f) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.9ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a1ccafe1-3519-4ed9-ba2b-a12307006c84] Performed Thermos::RefillJob (Job ID: a1ccafe1-3519-4ed9-ba2b-a12307006c84) from Async(default) in 8.08ms [ActiveJob] [Thermos::RefillJob] [c00d19a5-dc71-4b54-972f-1d739cea4a4f] Performing Thermos::RefillJob (Job ID: c00d19a5-dc71-4b54-972f-1d739cea4a4f) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [c00d19a5-dc71-4b54-972f-1d739cea4a4f] Performed Thermos::RefillJob (Job ID: c00d19a5-dc71-4b54-972f-1d739cea4a4f) from Async(default) in 0.06ms  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.369373"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a67dc9fa-2ca0-483b-b2f8-9f8421de8d3a) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [a67dc9fa-2ca0-483b-b2f8-9f8421de8d3a] Performing Thermos::RefillJob (Job ID: a67dc9fa-2ca0-483b-b2f8-9f8421de8d3a) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a67dc9fa-2ca0-483b-b2f8-9f8421de8d3a] Performed Thermos::RefillJob (Job ID: a67dc9fa-2ca0-483b-b2f8-9f8421de8d3a) from Async(default) in 0.07ms  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.5ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.383942"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 85bf925d-0012-47d9-8625-9708a4746b6f) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [85bf925d-0012-47d9-8625-9708a4746b6f] Performing Thermos::RefillJob (Job ID: 85bf925d-0012-47d9-8625-9708a4746b6f) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [85bf925d-0012-47d9-8625-9708a4746b6f] Performed Thermos::RefillJob (Job ID: 85bf925d-0012-47d9-8625-9708a4746b6f) from Async(default) in 0.05ms  (0.1ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.391735"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 3908b320-fdab-43d0-bfaf-1c7574d08eab) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [3908b320-fdab-43d0-bfaf-1c7574d08eab] Performing Thermos::RefillJob (Job ID: 3908b320-fdab-43d0-bfaf-1c7574d08eab) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [3908b320-fdab-43d0-bfaf-1c7574d08eab] Performed Thermos::RefillJob (Job ID: 3908b320-fdab-43d0-bfaf-1c7574d08eab) from Async(default) in 0.06ms  (0.1ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.407308"], ["id", 868874525]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5b89b363-60f0-463e-ba80-07b96952de39) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Store Load (0.3ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [5b89b363-60f0-463e-ba80-07b96952de39] Performing Thermos::RefillJob (Job ID: 5b89b363-60f0-463e-ba80-07b96952de39) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [5b89b363-60f0-463e-ba80-07b96952de39] Performed Thermos::RefillJob (Job ID: 5b89b363-60f0-463e-ba80-07b96952de39) from Async(default) in 0.24ms  (0.1ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.5ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.423576"], ["id", 678302810]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 9dbb9b5c-f374-492f-9b01-87a50fc1571c) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.9ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [9dbb9b5c-f374-492f-9b01-87a50fc1571c] Performing Thermos::RefillJob (Job ID: 9dbb9b5c-f374-492f-9b01-87a50fc1571c) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [9dbb9b5c-f374-492f-9b01-87a50fc1571c] Performed Thermos::RefillJob (Job ID: 9dbb9b5c-f374-492f-9b01-87a50fc1571c) from Async(default) in 0.12ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.6ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 21:22:16.433162"], ["updated_at", "2018-10-15 21:22:16.433162"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7ce17150-9e4a-4d17-af63-dabfd436d000) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7ce17150-9e4a-4d17-af63-dabfd436d000] Performing Thermos::RefillJob (Job ID: 7ce17150-9e4a-4d17-af63-dabfd436d000) from Async(default) with arguments: #>  (0.1ms) SAVEPOINT active_record_1 Product Update (0.1ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.443192"], ["id", 469160772]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ede4cdf4-41d7-456e-837c-ab7a443de684) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (2.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [ede4cdf4-41d7-456e-837c-ab7a443de684] Performing Thermos::RefillJob (Job ID: ede4cdf4-41d7-456e-837c-ab7a443de684) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [ede4cdf4-41d7-456e-837c-ab7a443de684] Performed Thermos::RefillJob (Job ID: ede4cdf4-41d7-456e-837c-ab7a443de684) from Async(default) in 0.06ms ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7ce17150-9e4a-4d17-af63-dabfd436d000]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Thermos::RefillJob] [7ce17150-9e4a-4d17-af63-dabfd436d000] Performed Thermos::RefillJob (Job ID: 7ce17150-9e4a-4d17-af63-dabfd436d000) from Async(default) in 20.79ms Store Create (0.5ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 21:22:16.458786"], ["updated_at", "2018-10-15 21:22:16.458786"]] Category Update (0.2ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 21:22:16.460504"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 140592a6-4208-4889-94c7-ec9cc6d8eab9) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 1d5ce941-cc5e-44ac-81b1-d8e7bdbf4907) to Async(default) with arguments: #>  (0.3ms) RELEASE SAVEPOINT active_record_1 Category Load (3.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [140592a6-4208-4889-94c7-ec9cc6d8eab9] Performing Thermos::RefillJob (Job ID: 140592a6-4208-4889-94c7-ec9cc6d8eab9) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [140592a6-4208-4889-94c7-ec9cc6d8eab9] Performed Thermos::RefillJob (Job ID: 140592a6-4208-4889-94c7-ec9cc6d8eab9) from Async(default) in 0.1ms Store Load (5.6ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [1d5ce941-cc5e-44ac-81b1-d8e7bdbf4907] Performing Thermos::RefillJob (Job ID: 1d5ce941-cc5e-44ac-81b1-d8e7bdbf4907) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [1d5ce941-cc5e-44ac-81b1-d8e7bdbf4907] Performed Thermos::RefillJob (Job ID: 1d5ce941-cc5e-44ac-81b1-d8e7bdbf4907) from Async(default) in 0.24ms  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.5ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.477579"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c228cf3b-2f68-4541-8cec-a6004e59108a) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.6ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [c228cf3b-2f68-4541-8cec-a6004e59108a] Performing Thermos::RefillJob (Job ID: c228cf3b-2f68-4541-8cec-a6004e59108a) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [c228cf3b-2f68-4541-8cec-a6004e59108a] Performed Thermos::RefillJob (Job ID: c228cf3b-2f68-4541-8cec-a6004e59108a) from Async(default) in 0.27ms  (0.2ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.7ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 21:22:16.501355"], ["updated_at", "2018-10-15 21:22:16.501355"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7ed158ce-7d01-4d96-97b1-4f68126a9038) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (1.3ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7ed158ce-7d01-4d96-97b1-4f68126a9038] Performing Thermos::RefillJob (Job ID: 7ed158ce-7d01-4d96-97b1-4f68126a9038) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [7ed158ce-7d01-4d96-97b1-4f68126a9038]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [7ed158ce-7d01-4d96-97b1-4f68126a9038] Performed Thermos::RefillJob (Job ID: 7ed158ce-7d01-4d96-97b1-4f68126a9038) from Async(default) in 1.15ms  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.1ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.509003"], ["id", 678302811]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e74134a2-11ea-4a32-af62-6199a2f92c17) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.5ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e74134a2-11ea-4a32-af62-6199a2f92c17] Performing Thermos::RefillJob (Job ID: e74134a2-11ea-4a32-af62-6199a2f92c17) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [e74134a2-11ea-4a32-af62-6199a2f92c17] Performed Thermos::RefillJob (Job ID: e74134a2-11ea-4a32-af62-6199a2f92c17) from Async(default) in 0.06ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.7ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 21:22:16.516389"], ["updated_at", "2018-10-15 21:22:16.516389"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 00c2bb62-7716-4cc6-9b5d-b66f8389666c) to Async(default) with arguments: #>  (0.2ms) RELEASE SAVEPOINT active_record_1 Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [00c2bb62-7716-4cc6-9b5d-b66f8389666c] Performing Thermos::RefillJob (Job ID: 00c2bb62-7716-4cc6-9b5d-b66f8389666c) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [00c2bb62-7716-4cc6-9b5d-b66f8389666c]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [00c2bb62-7716-4cc6-9b5d-b66f8389666c] Performed Thermos::RefillJob (Job ID: 00c2bb62-7716-4cc6-9b5d-b66f8389666c) from Async(default) in 1.68ms  (0.1ms) SAVEPOINT active_record_1 Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.527693"], ["id", 868874526]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 57f0ed98-bfb6-4b2a-98a7-473d62f82702) to Async(default) with arguments: #>  (0.2ms) RELEASE SAVEPOINT active_record_1 Store Load (2.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]]  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [57f0ed98-bfb6-4b2a-98a7-473d62f82702] Performing Thermos::RefillJob (Job ID: 57f0ed98-bfb6-4b2a-98a7-473d62f82702) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [57f0ed98-bfb6-4b2a-98a7-473d62f82702] Performed Thermos::RefillJob (Job ID: 57f0ed98-bfb6-4b2a-98a7-473d62f82702) from Async(default) in 0.09ms  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.6ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 21:22:16.546149"], ["updated_at", "2018-10-15 21:22:16.546149"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0080c9e5-d5f1-462c-9d0c-a4bea7433fb0) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0080c9e5-d5f1-462c-9d0c-a4bea7433fb0] Performing Thermos::RefillJob (Job ID: 0080c9e5-d5f1-462c-9d0c-a4bea7433fb0) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0080c9e5-d5f1-462c-9d0c-a4bea7433fb0] Enqueued Thermos::RebuildCacheJob (Job ID: cbced373-b247-4cc8-82b4-227690e4da74) to Async(default) with arguments: "key", 322908141 [ActiveJob] [Thermos::RefillJob] [0080c9e5-d5f1-462c-9d0c-a4bea7433fb0] Performed Thermos::RefillJob (Job ID: 0080c9e5-d5f1-462c-9d0c-a4bea7433fb0) from Async(default) in 0.41ms [ActiveJob] [Thermos::RebuildCacheJob] [cbced373-b247-4cc8-82b4-227690e4da74] Performing Thermos::RebuildCacheJob (Job ID: cbced373-b247-4cc8-82b4-227690e4da74) from Async(default) with arguments: "key", 322908141  (0.2ms) SAVEPOINT active_record_1 [ActiveJob] [Thermos::RebuildCacheJob] [cbced373-b247-4cc8-82b4-227690e4da74] Error performing Thermos::RebuildCacheJob (Job ID: cbced373-b247-4cc8-82b4-227690e4da74) from Async(default) in 0.49ms: MockExpectationError (mocked method :call called with unexpected arguments [322908141]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:160:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:74:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker' Category Update (0.2ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 21:22:16.556095"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: dd9d4db6-cb0e-4786-b4b0-dbc6407ea2d4) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [dd9d4db6-cb0e-4786-b4b0-dbc6407ea2d4] Performing Thermos::RefillJob (Job ID: dd9d4db6-cb0e-4786-b4b0-dbc6407ea2d4) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [dd9d4db6-cb0e-4786-b4b0-dbc6407ea2d4] Performed Thermos::RefillJob (Job ID: dd9d4db6-cb0e-4786-b4b0-dbc6407ea2d4) from Async(default) in 0.04ms  (0.4ms) rollback transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "products" Fixture Delete (0.5ms) DELETE FROM "categories" Fixture Delete (0.5ms) DELETE FROM "category_items" Fixture Delete (0.4ms) DELETE FROM "stores" Fixture Insert (0.4ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:20:32.914698', '2018-10-15 22:20:32.914698', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:20:32.916693', '2018-10-15 22:20:32.916693', 322908140, 868874525) Fixture Insert (0.0ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:20:32.917674', '2018-10-15 22:20:32.917674', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:20:32.918753', '2018-10-15 22:20:32.918753', 868874525)  (1.4ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.4ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 22:20:32.934298"], ["updated_at", "2018-10-15 22:20:32.934298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Category Update (0.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:32.937730"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: adabc51b-1d97-4ab3-831b-5504fc1c75f3) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [adabc51b-1d97-4ab3-831b-5504fc1c75f3] Performing Thermos::RefillJob (Job ID: adabc51b-1d97-4ab3-831b-5504fc1c75f3) from Async(default) with arguments: #>  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.5ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 22:20:32.964235"], ["updated_at", "2018-10-15 22:20:32.964235"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 43e48cb4-86d8-4f14-9699-3a08db469ccf) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.9ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [43e48cb4-86d8-4f14-9699-3a08db469ccf] Performing Thermos::RefillJob (Job ID: 43e48cb4-86d8-4f14-9699-3a08db469ccf) from Async(default) with arguments: #>  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [adabc51b-1d97-4ab3-831b-5504fc1c75f3] Performed Thermos::RefillJob (Job ID: adabc51b-1d97-4ab3-831b-5504fc1c75f3) from Async(default) in 18.9ms  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [43e48cb4-86d8-4f14-9699-3a08db469ccf] Performed Thermos::RefillJob (Job ID: 43e48cb4-86d8-4f14-9699-3a08db469ccf) from Async(default) in 6.99ms --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:32.982678"], ["id", 868874525]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: de3b7061-4da5-49f5-9138-a12a43d48fc0) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1 Store Load (0.9ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [de3b7061-4da5-49f5-9138-a12a43d48fc0] Performing Thermos::RefillJob (Job ID: de3b7061-4da5-49f5-9138-a12a43d48fc0) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [de3b7061-4da5-49f5-9138-a12a43d48fc0] Performed Thermos::RefillJob (Job ID: de3b7061-4da5-49f5-9138-a12a43d48fc0) from Async(default) in 0.12ms  (0.3ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.000408"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 1624d7a0-2445-42d6-9bb6-1a5348a674a1) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1 Category Load (1.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [1624d7a0-2445-42d6-9bb6-1a5348a674a1] Performing Thermos::RefillJob (Job ID: 1624d7a0-2445-42d6-9bb6-1a5348a674a1) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [1624d7a0-2445-42d6-9bb6-1a5348a674a1] Performed Thermos::RefillJob (Job ID: 1624d7a0-2445-42d6-9bb6-1a5348a674a1) from Async(default) in 0.04ms  (0.0ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:20:33.006533"], ["updated_at", "2018-10-15 22:20:33.006533"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: f976385c-176e-44e0-af44-c66a0d8c75a9) to Async(default) with arguments: #>  (0.2ms) RELEASE SAVEPOINT active_record_1 Category Load (2.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [f976385c-176e-44e0-af44-c66a0d8c75a9] Performing Thermos::RefillJob (Job ID: f976385c-176e-44e0-af44-c66a0d8c75a9) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [f976385c-176e-44e0-af44-c66a0d8c75a9] Performed Thermos::RefillJob (Job ID: f976385c-176e-44e0-af44-c66a0d8c75a9) from Async(default) in 0.1ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.020086"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 62437d48-3f09-4280-8d59-d6e46987585b) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [62437d48-3f09-4280-8d59-d6e46987585b] Performing Thermos::RefillJob (Job ID: 62437d48-3f09-4280-8d59-d6e46987585b) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [62437d48-3f09-4280-8d59-d6e46987585b] Performed Thermos::RefillJob (Job ID: 62437d48-3f09-4280-8d59-d6e46987585b) from Async(default) in 0.06ms  (0.1ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Product Create (0.6ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:20:33.047710"], ["updated_at", "2018-10-15 22:20:33.047710"]] CategoryItem Create (0.3ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 22:20:33.049427"], ["updated_at", "2018-10-15 22:20:33.049427"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 9eb85255-8f30-4d63-ae86-eeab2cd41ab4) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: f5c55b42-50a7-4367-a46c-bf4972a337d2) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (2.4ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] Product Load (1.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [9eb85255-8f30-4d63-ae86-eeab2cd41ab4] Performing Thermos::RefillJob (Job ID: 9eb85255-8f30-4d63-ae86-eeab2cd41ab4) from Async(default) with arguments: #>  (0.8ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [f5c55b42-50a7-4367-a46c-bf4972a337d2] Performing Thermos::RefillJob (Job ID: f5c55b42-50a7-4367-a46c-bf4972a337d2) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [f5c55b42-50a7-4367-a46c-bf4972a337d2] Performed Thermos::RefillJob (Job ID: f5c55b42-50a7-4367-a46c-bf4972a337d2) from Async(default) in 0.11ms [ActiveJob] [Thermos::RefillJob] [9eb85255-8f30-4d63-ae86-eeab2cd41ab4] Performed Thermos::RefillJob (Job ID: 9eb85255-8f30-4d63-ae86-eeab2cd41ab4) from Async(default) in 0.07ms  (0.1ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (1.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.4ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.068618"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a11f727a-39e7-43bf-9bda-182623414c77) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.7ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [a11f727a-39e7-43bf-9bda-182623414c77] Performing Thermos::RefillJob (Job ID: a11f727a-39e7-43bf-9bda-182623414c77) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a11f727a-39e7-43bf-9bda-182623414c77] Performed Thermos::RefillJob (Job ID: a11f727a-39e7-43bf-9bda-182623414c77) from Async(default) in 0.06ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (1.1ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:20:33.076714"], ["updated_at", "2018-10-15 22:20:33.076714"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8] Performing Thermos::RefillJob (Job ID: c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8) from Async(default) with arguments: #>  (0.1ms) SAVEPOINT active_record_1 Product Update (0.1ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.090595"], ["id", 469160772]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 135e2101-e73f-4258-9223-6d9a82e5b467) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [135e2101-e73f-4258-9223-6d9a82e5b467] Performing Thermos::RefillJob (Job ID: 135e2101-e73f-4258-9223-6d9a82e5b467) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [135e2101-e73f-4258-9223-6d9a82e5b467] Performed Thermos::RefillJob (Job ID: 135e2101-e73f-4258-9223-6d9a82e5b467) from Async(default) in 0.07ms ----------------------------------------------------------------------------------- [ActiveJob] [Thermos::RefillJob] [c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8]  (0.4ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change [ActiveJob] [Thermos::RefillJob] [c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8] Performed Thermos::RefillJob (Job ID: c2e055f9-bf7e-45db-b3fc-6ee9aa6b1ed8) from Async(default) in 19.22ms ----------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.5ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:20:33.106891"], ["updated_at", "2018-10-15 22:20:33.106891"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c7a4135a-b84b-4ca9-9abb-e9feca4d4918) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (2.6ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [c7a4135a-b84b-4ca9-9abb-e9feca4d4918] Performing Thermos::RefillJob (Job ID: c7a4135a-b84b-4ca9-9abb-e9feca4d4918) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [c7a4135a-b84b-4ca9-9abb-e9feca4d4918]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [c7a4135a-b84b-4ca9-9abb-e9feca4d4918] Performed Thermos::RefillJob (Job ID: c7a4135a-b84b-4ca9-9abb-e9feca4d4918) from Async(default) in 1.99ms  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.1ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.118935"], ["id", 678302811]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 09096a63-9cfd-4d72-a1b6-686a612189bc) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [09096a63-9cfd-4d72-a1b6-686a612189bc] Performing Thermos::RefillJob (Job ID: 09096a63-9cfd-4d72-a1b6-686a612189bc) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [09096a63-9cfd-4d72-a1b6-686a612189bc] Performed Thermos::RefillJob (Job ID: 09096a63-9cfd-4d72-a1b6-686a612189bc) from Async(default) in 0.06ms ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.9ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:20:33.133732"], ["updated_at", "2018-10-15 22:20:33.133732"]] Category Update (0.4ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 22:20:33.136150"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6eac0053-b749-468c-ab7b-2445c50afcdd) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 55f55b7a-de33-439d-99be-daadf9ae467b) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (2.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (1.0ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [6eac0053-b749-468c-ab7b-2445c50afcdd] Performing Thermos::RefillJob (Job ID: 6eac0053-b749-468c-ab7b-2445c50afcdd) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [55f55b7a-de33-439d-99be-daadf9ae467b] Performing Thermos::RefillJob (Job ID: 55f55b7a-de33-439d-99be-daadf9ae467b) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [6eac0053-b749-468c-ab7b-2445c50afcdd] Performed Thermos::RefillJob (Job ID: 6eac0053-b749-468c-ab7b-2445c50afcdd) from Async(default) in 0.07ms [ActiveJob] [Thermos::RefillJob] [55f55b7a-de33-439d-99be-daadf9ae467b] Performed Thermos::RefillJob (Job ID: 55f55b7a-de33-439d-99be-daadf9ae467b) from Async(default) in 0.15ms  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Product Update (0.6ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.152397"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 8628b529-ac8e-40b8-a4ec-463b4549b487) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [8628b529-ac8e-40b8-a4ec-463b4549b487] Performing Thermos::RefillJob (Job ID: 8628b529-ac8e-40b8-a4ec-463b4549b487) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [8628b529-ac8e-40b8-a4ec-463b4549b487] Performed Thermos::RefillJob (Job ID: 8628b529-ac8e-40b8-a4ec-463b4549b487) from Async(default) in 0.09ms  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.4ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.168590"], ["id", 678302810]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fa1fc906-bd70-4be2-95f4-2018cf17a248) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (1.4ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [fa1fc906-bd70-4be2-95f4-2018cf17a248] Performing Thermos::RefillJob (Job ID: fa1fc906-bd70-4be2-95f4-2018cf17a248) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [fa1fc906-bd70-4be2-95f4-2018cf17a248] Performed Thermos::RefillJob (Job ID: fa1fc906-bd70-4be2-95f4-2018cf17a248) from Async(default) in 0.06ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (1.1ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:20:33.176804"], ["updated_at", "2018-10-15 22:20:33.176804"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: bf4ac314-83aa-4509-851d-18fbbcf934bd) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Store Load (1.7ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [bf4ac314-83aa-4509-851d-18fbbcf934bd] Performing Thermos::RefillJob (Job ID: bf4ac314-83aa-4509-851d-18fbbcf934bd) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [bf4ac314-83aa-4509-851d-18fbbcf934bd]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [bf4ac314-83aa-4509-851d-18fbbcf934bd] Performed Thermos::RefillJob (Job ID: bf4ac314-83aa-4509-851d-18fbbcf934bd) from Async(default) in 1.42ms  (0.1ms) SAVEPOINT active_record_1 Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:20:33.187868"], ["id", 868874526]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4] Performing Thermos::RefillJob (Job ID: b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4] Performed Thermos::RefillJob (Job ID: b83b2a1f-7d7d-46c6-a353-5f18c32f5fb4) from Async(default) in 0.8ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:21:36.579289', '2018-10-15 22:21:36.579289', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:21:36.580776', '2018-10-15 22:21:36.580776', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:21:36.581730', '2018-10-15 22:21:36.581730', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:21:36.582951', '2018-10-15 22:21:36.582951', 868874525)  (1.3ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.5ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.603940"], ["id", 868874525]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 39ba8abe-6167-47f8-a8f0-53b66aad4e60) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction Store Load (0.3ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [39ba8abe-6167-47f8-a8f0-53b66aad4e60] Performing Thermos::RefillJob (Job ID: 39ba8abe-6167-47f8-a8f0-53b66aad4e60) from Async(default) with arguments: #>  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [39ba8abe-6167-47f8-a8f0-53b66aad4e60] Performed Thermos::RefillJob (Job ID: 39ba8abe-6167-47f8-a8f0-53b66aad4e60) from Async(default) in 4.86ms  (0.1ms) SAVEPOINT active_record_1 Store Create (0.5ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:21:36.634853"], ["updated_at", "2018-10-15 22:21:36.634853"]] Category Update (0.3ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 22:21:36.636467"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b490ffe6-d5bb-4b11-929a-9ffd8ae6c44f) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: f4cbcc59-c99c-4c74-b525-5d60d246de9b) to Async(default) with arguments: #>  (0.5ms) RELEASE SAVEPOINT active_record_1 Category Load (3.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (1.9ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b490ffe6-d5bb-4b11-929a-9ffd8ae6c44f] Performing Thermos::RefillJob (Job ID: b490ffe6-d5bb-4b11-929a-9ffd8ae6c44f) from Async(default) with arguments: #>  (1.1ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [f4cbcc59-c99c-4c74-b525-5d60d246de9b] Performing Thermos::RefillJob (Job ID: f4cbcc59-c99c-4c74-b525-5d60d246de9b) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b490ffe6-d5bb-4b11-929a-9ffd8ae6c44f] Performed Thermos::RefillJob (Job ID: b490ffe6-d5bb-4b11-929a-9ffd8ae6c44f) from Async(default) in 0.04ms  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [f4cbcc59-c99c-4c74-b525-5d60d246de9b] Performed Thermos::RefillJob (Job ID: f4cbcc59-c99c-4c74-b525-5d60d246de9b) from Async(default) in 0.05ms ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Store Create (0.4ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:21:36.649955"], ["updated_at", "2018-10-15 22:21:36.649955"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a775e7e7-2a5b-4432-8199-d6a08bbeb9d9) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Store Load (1.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a775e7e7-2a5b-4432-8199-d6a08bbeb9d9] Performing Thermos::RefillJob (Job ID: a775e7e7-2a5b-4432-8199-d6a08bbeb9d9) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a775e7e7-2a5b-4432-8199-d6a08bbeb9d9]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]]  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Thermos::RefillJob] [a775e7e7-2a5b-4432-8199-d6a08bbeb9d9] Performed Thermos::RefillJob (Job ID: a775e7e7-2a5b-4432-8199-d6a08bbeb9d9) from Async(default) in 12.21ms Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.666253"], ["id", 868874526]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6f113af4-28a3-4539-85be-053390a1b374) to Async(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1 Store Load (0.6ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [6f113af4-28a3-4539-85be-053390a1b374] Performing Thermos::RefillJob (Job ID: 6f113af4-28a3-4539-85be-053390a1b374) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [6f113af4-28a3-4539-85be-053390a1b374] Performed Thermos::RefillJob (Job ID: 6f113af4-28a3-4539-85be-053390a1b374) from Async(default) in 0.06ms  (0.1ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.5ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.689664"], ["id", 678302810]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 72898fd6-b497-4028-bb82-4e247eeeeb4b) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (1.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [72898fd6-b497-4028-bb82-4e247eeeeb4b] Performing Thermos::RefillJob (Job ID: 72898fd6-b497-4028-bb82-4e247eeeeb4b) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [72898fd6-b497-4028-bb82-4e247eeeeb4b] Performed Thermos::RefillJob (Job ID: 72898fd6-b497-4028-bb82-4e247eeeeb4b) from Async(default) in 0.06ms  (0.0ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 CategoryItem Create (1.0ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:21:36.699939"], ["updated_at", "2018-10-15 22:21:36.699939"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b92224af-61b0-4c14-92c4-a6d0cb7c4334) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b92224af-61b0-4c14-92c4-a6d0cb7c4334] Performing Thermos::RefillJob (Job ID: b92224af-61b0-4c14-92c4-a6d0cb7c4334) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b92224af-61b0-4c14-92c4-a6d0cb7c4334]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [b92224af-61b0-4c14-92c4-a6d0cb7c4334] Performed Thermos::RefillJob (Job ID: b92224af-61b0-4c14-92c4-a6d0cb7c4334) from Async(default) in 1.35ms  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.1ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.709353"], ["id", 678302811]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b088dcf8-3821-4589-9a82-9b546559028a) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.6ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b088dcf8-3821-4589-9a82-9b546559028a] Performing Thermos::RefillJob (Job ID: b088dcf8-3821-4589-9a82-9b546559028a) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [b088dcf8-3821-4589-9a82-9b546559028a] Performed Thermos::RefillJob (Job ID: b088dcf8-3821-4589-9a82-9b546559028a) from Async(default) in 0.06ms  (0.1ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Product Create (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:21:36.734075"], ["updated_at", "2018-10-15 22:21:36.734075"]] CategoryItem Create (0.3ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 22:21:36.735458"], ["updated_at", "2018-10-15 22:21:36.735458"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5e36a23a-b358-4175-abde-99adbec13436) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 9e9f2822-0637-49c5-b342-0a7c26451834) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (2.8ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] Product Load (1.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [9e9f2822-0637-49c5-b342-0a7c26451834] Performing Thermos::RefillJob (Job ID: 9e9f2822-0637-49c5-b342-0a7c26451834) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [9e9f2822-0637-49c5-b342-0a7c26451834] Performed Thermos::RefillJob (Job ID: 9e9f2822-0637-49c5-b342-0a7c26451834) from Async(default) in 0.06ms [ActiveJob] [Thermos::RefillJob] [5e36a23a-b358-4175-abde-99adbec13436] Performing Thermos::RefillJob (Job ID: 5e36a23a-b358-4175-abde-99adbec13436) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [5e36a23a-b358-4175-abde-99adbec13436] Performed Thermos::RefillJob (Job ID: 5e36a23a-b358-4175-abde-99adbec13436) from Async(default) in 0.03ms  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:21:36.747544"], ["updated_at", "2018-10-15 22:21:36.747544"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0b6dcbc3-5a74-4cd6-9c08-5b113b45a3c6) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0b6dcbc3-5a74-4cd6-9c08-5b113b45a3c6] Performing Thermos::RefillJob (Job ID: 0b6dcbc3-5a74-4cd6-9c08-5b113b45a3c6) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0b6dcbc3-5a74-4cd6-9c08-5b113b45a3c6] Performed Thermos::RefillJob (Job ID: 0b6dcbc3-5a74-4cd6-9c08-5b113b45a3c6) from Async(default) in 0.05ms  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.4ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.759068"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 391927b0-744f-417b-afef-5550a5931142) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (2.6ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [391927b0-744f-417b-afef-5550a5931142] Performing Thermos::RefillJob (Job ID: 391927b0-744f-417b-afef-5550a5931142) from Async(default) with arguments: #>  (1.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [391927b0-744f-417b-afef-5550a5931142] Performed Thermos::RefillJob (Job ID: 391927b0-744f-417b-afef-5550a5931142) from Async(default) in 0.08ms  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.4ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 22:21:36.772052"], ["updated_at", "2018-10-15 22:21:36.772052"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 69a43849-4823-4ca1-bfdf-b0a5a9e45f06) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.7ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [69a43849-4823-4ca1-bfdf-b0a5a9e45f06] Performing Thermos::RefillJob (Job ID: 69a43849-4823-4ca1-bfdf-b0a5a9e45f06) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [69a43849-4823-4ca1-bfdf-b0a5a9e45f06] Performed Thermos::RefillJob (Job ID: 69a43849-4823-4ca1-bfdf-b0a5a9e45f06) from Async(default) in 0.05ms  (0.1ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.7ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.782817"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2cd6eed1-d734-454d-9e41-96e6a343088b) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [2cd6eed1-d734-454d-9e41-96e6a343088b] Performing Thermos::RefillJob (Job ID: 2cd6eed1-d734-454d-9e41-96e6a343088b) from Async(default) with arguments: #>  (0.3ms) begin transaction [ActiveJob] [Thermos::RefillJob] [2cd6eed1-d734-454d-9e41-96e6a343088b] Performed Thermos::RefillJob (Job ID: 2cd6eed1-d734-454d-9e41-96e6a343088b) from Async(default) in 0.26ms --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.8ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.817237"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 00f977fa-5ca0-436c-9745-e688eebd6d5a) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Product Load (1.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [00f977fa-5ca0-436c-9745-e688eebd6d5a] Performing Thermos::RefillJob (Job ID: 00f977fa-5ca0-436c-9745-e688eebd6d5a) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [00f977fa-5ca0-436c-9745-e688eebd6d5a] Performed Thermos::RefillJob (Job ID: 00f977fa-5ca0-436c-9745-e688eebd6d5a) from Async(default) in 0.06ms  (0.1ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.6ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 22:21:36.825886"], ["updated_at", "2018-10-15 22:21:36.825886"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 267ea402-84d5-4080-b962-42bd41eed60b) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [267ea402-84d5-4080-b962-42bd41eed60b] Performing Thermos::RefillJob (Job ID: 267ea402-84d5-4080-b962-42bd41eed60b) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [267ea402-84d5-4080-b962-42bd41eed60b] Enqueued Thermos::RebuildCacheJob (Job ID: e769b4ea-8ed7-43e3-8061-6fff44c4430d) to Async(default) with arguments: "key", 322908141 [ActiveJob] [Thermos::RefillJob] [267ea402-84d5-4080-b962-42bd41eed60b] Performed Thermos::RefillJob (Job ID: 267ea402-84d5-4080-b962-42bd41eed60b) from Async(default) in 0.94ms [ActiveJob] [Thermos::RebuildCacheJob] [e769b4ea-8ed7-43e3-8061-6fff44c4430d] Performing Thermos::RebuildCacheJob (Job ID: e769b4ea-8ed7-43e3-8061-6fff44c4430d) from Async(default) with arguments: "key", 322908141  (0.1ms) SAVEPOINT active_record_1 [ActiveJob] [Thermos::RebuildCacheJob] [e769b4ea-8ed7-43e3-8061-6fff44c4430d] Error performing Thermos::RebuildCacheJob (Job ID: e769b4ea-8ed7-43e3-8061-6fff44c4430d) from Async(default) in 0.25ms: MockExpectationError (mocked method :call called with unexpected arguments [322908141]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:160:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:74:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker' Category Update (0.7ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.835514"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fc2f1465-cf95-42e0-a1f7-47fe5a3ef06a) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (2.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [fc2f1465-cf95-42e0-a1f7-47fe5a3ef06a] Performing Thermos::RefillJob (Job ID: fc2f1465-cf95-42e0-a1f7-47fe5a3ef06a) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [fc2f1465-cf95-42e0-a1f7-47fe5a3ef06a] Performed Thermos::RefillJob (Job ID: fc2f1465-cf95-42e0-a1f7-47fe5a3ef06a) from Async(default) in 0.06ms  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:21:36.851815"], ["updated_at", "2018-10-15 22:21:36.851815"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2ea06b07-88eb-4464-8095-ed9dc0af57d4) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (2.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [2ea06b07-88eb-4464-8095-ed9dc0af57d4] Performing Thermos::RefillJob (Job ID: 2ea06b07-88eb-4464-8095-ed9dc0af57d4) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [2ea06b07-88eb-4464-8095-ed9dc0af57d4]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [2ea06b07-88eb-4464-8095-ed9dc0af57d4] Performed Thermos::RefillJob (Job ID: 2ea06b07-88eb-4464-8095-ed9dc0af57d4) from Async(default) in 1.85ms  (0.1ms) SAVEPOINT active_record_1 Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.860910"], ["id", 469160772]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 340b7268-6475-4f06-934b-e66ef1aec564) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.9ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [340b7268-6475-4f06-934b-e66ef1aec564] Performing Thermos::RefillJob (Job ID: 340b7268-6475-4f06-934b-e66ef1aec564) from Async(default) with arguments: #>  (0.8ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [340b7268-6475-4f06-934b-e66ef1aec564] Performed Thermos::RefillJob (Job ID: 340b7268-6475-4f06-934b-e66ef1aec564) from Async(default) in 0.07ms  (0.3ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:21:36.871759"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 73a7b816-8449-42e2-a410-697fc2c224cd) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [73a7b816-8449-42e2-a410-697fc2c224cd] Performing Thermos::RefillJob (Job ID: 73a7b816-8449-42e2-a410-697fc2c224cd) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [73a7b816-8449-42e2-a410-697fc2c224cd] Performed Thermos::RefillJob (Job ID: 73a7b816-8449-42e2-a410-697fc2c224cd) from Async(default) in 0.07ms  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.1ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "products" Fixture Delete (0.5ms) DELETE FROM "categories" Fixture Delete (0.5ms) DELETE FROM "category_items" Fixture Delete (0.2ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:24:30.114571', '2018-10-15 22:24:30.114571', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:24:30.116118', '2018-10-15 22:24:30.116118', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:24:30.117118', '2018-10-15 22:24:30.117118', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:24:30.118265', '2018-10-15 22:24:30.118265', 868874525)  (3.1ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.148905"], ["id", 868874525]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5157b2e5-948d-4666-bc18-8aef3d1ee15d) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction Store Load (0.3ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [5157b2e5-948d-4666-bc18-8aef3d1ee15d] Performing Thermos::RefillJob (Job ID: 5157b2e5-948d-4666-bc18-8aef3d1ee15d) from Async(default) with arguments: #>  (0.1ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [5157b2e5-948d-4666-bc18-8aef3d1ee15d] Performed Thermos::RefillJob (Job ID: 5157b2e5-948d-4666-bc18-8aef3d1ee15d) from Async(default) in 18.57ms  (0.1ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:24:30.194455"], ["updated_at", "2018-10-15 22:24:30.194455"]] CategoryItem Create (0.2ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 22:24:30.195750"], ["updated_at", "2018-10-15 22:24:30.195750"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e0aca936-58fe-4e6d-a0e8-c3f9138d905c) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.6ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]  (0.6ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [e0aca936-58fe-4e6d-a0e8-c3f9138d905c] Performing Thermos::RefillJob (Job ID: e0aca936-58fe-4e6d-a0e8-c3f9138d905c) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [e0aca936-58fe-4e6d-a0e8-c3f9138d905c] Performed Thermos::RefillJob (Job ID: e0aca936-58fe-4e6d-a0e8-c3f9138d905c) from Async(default) in 0.05ms ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 22:24:30.203143"], ["updated_at", "2018-10-15 22:24:30.203143"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e618c809-90ae-4ecc-bc1a-f938f95d6519) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (2.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e618c809-90ae-4ecc-bc1a-f938f95d6519] Performing Thermos::RefillJob (Job ID: e618c809-90ae-4ecc-bc1a-f938f95d6519) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e618c809-90ae-4ecc-bc1a-f938f95d6519] Enqueued Thermos::RebuildCacheJob (Job ID: 35f65f00-a35e-416d-8d77-2e54748d69c9) to Async(default) with arguments: "key", 322908141 [ActiveJob] [Thermos::RebuildCacheJob] [35f65f00-a35e-416d-8d77-2e54748d69c9] Performing Thermos::RebuildCacheJob (Job ID: 35f65f00-a35e-416d-8d77-2e54748d69c9) from Async(default) with arguments: "key", 322908141 [ActiveJob] [Thermos::RefillJob] [e618c809-90ae-4ecc-bc1a-f938f95d6519] Performed Thermos::RefillJob (Job ID: e618c809-90ae-4ecc-bc1a-f938f95d6519) from Async(default) in 1.55ms [ActiveJob] [Thermos::RebuildCacheJob] [35f65f00-a35e-416d-8d77-2e54748d69c9] Error performing Thermos::RebuildCacheJob (Job ID: 35f65f00-a35e-416d-8d77-2e54748d69c9) from Async(default) in 0.2ms: MockExpectationError (No more expects available for :call: [322908141]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:132:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:74:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.213594"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 27610046-62cb-4748-bb49-456e2180fa5d) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) begin transaction [ActiveJob] [Thermos::RefillJob] [27610046-62cb-4748-bb49-456e2180fa5d] Performing Thermos::RefillJob (Job ID: 27610046-62cb-4748-bb49-456e2180fa5d) from Async(default) with arguments: #> --------------------------------------------------------------------------------------------------------------------------- [ActiveJob] [Thermos::RefillJob] [27610046-62cb-4748-bb49-456e2180fa5d] Performed Thermos::RefillJob (Job ID: 27610046-62cb-4748-bb49-456e2180fa5d) from Async(default) in 0.04ms ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Product Update (0.4ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.225333"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c76b63d2-e68c-4027-9366-ce99a3f8f651) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [c76b63d2-e68c-4027-9366-ce99a3f8f651] Performing Thermos::RefillJob (Job ID: c76b63d2-e68c-4027-9366-ce99a3f8f651) from Async(default) with arguments: #>  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [c76b63d2-e68c-4027-9366-ce99a3f8f651] Performed Thermos::RefillJob (Job ID: c76b63d2-e68c-4027-9366-ce99a3f8f651) from Async(default) in 0.05ms  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.5ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:24:30.233655"], ["updated_at", "2018-10-15 22:24:30.233655"]] Category Update (0.7ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 22:24:30.235037"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a55911eb-7a81-4b95-b629-ae1f75c91fc4) to Async(default) with arguments: #> [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ba193903-b4a9-4167-9200-591f8b0865f9) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (2.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (1.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a55911eb-7a81-4b95-b629-ae1f75c91fc4] Performing Thermos::RefillJob (Job ID: a55911eb-7a81-4b95-b629-ae1f75c91fc4) from Async(default) with arguments: #>  (0.7ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [ba193903-b4a9-4167-9200-591f8b0865f9] Performing Thermos::RefillJob (Job ID: ba193903-b4a9-4167-9200-591f8b0865f9) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a55911eb-7a81-4b95-b629-ae1f75c91fc4] Performed Thermos::RefillJob (Job ID: a55911eb-7a81-4b95-b629-ae1f75c91fc4) from Async(default) in 0.1ms [ActiveJob] [Thermos::RefillJob] [ba193903-b4a9-4167-9200-591f8b0865f9] Performed Thermos::RefillJob (Job ID: ba193903-b4a9-4167-9200-591f8b0865f9) from Async(default) in 0.05ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 Store Create (0.6ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:24:30.251019"], ["updated_at", "2018-10-15 22:24:30.251019"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fe45e89f-e43a-4435-8484-798ae457a617) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Store Load (1.4ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [fe45e89f-e43a-4435-8484-798ae457a617] Performing Thermos::RefillJob (Job ID: fe45e89f-e43a-4435-8484-798ae457a617) from Async(default) with arguments: #>  (0.1ms) SAVEPOINT active_record_1 Store Update (0.3ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.264238"], ["id", 868874526]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 4a9dde00-e58f-4387-ae78-75c1e30d126e) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Store Load (1.9ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [4a9dde00-e58f-4387-ae78-75c1e30d126e] Performing Thermos::RefillJob (Job ID: 4a9dde00-e58f-4387-ae78-75c1e30d126e) from Async(default) with arguments: #>  (0.5ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [4a9dde00-e58f-4387-ae78-75c1e30d126e] Performed Thermos::RefillJob (Job ID: 4a9dde00-e58f-4387-ae78-75c1e30d126e) from Async(default) in 0.09ms  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- [ActiveJob] [Thermos::RefillJob] [fe45e89f-e43a-4435-8484-798ae457a617]  (1.6ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change [ActiveJob] [Thermos::RefillJob] [fe45e89f-e43a-4435-8484-798ae457a617] Performed Thermos::RefillJob (Job ID: fe45e89f-e43a-4435-8484-798ae457a617) from Async(default) in 22.86ms ------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:24:30.283526"], ["updated_at", "2018-10-15 22:24:30.283526"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 3563f845-8bfb-49b2-b7ac-7ba66e161139) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [3563f845-8bfb-49b2-b7ac-7ba66e161139] Performing Thermos::RefillJob (Job ID: 3563f845-8bfb-49b2-b7ac-7ba66e161139) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [3563f845-8bfb-49b2-b7ac-7ba66e161139]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [3563f845-8bfb-49b2-b7ac-7ba66e161139] Performed Thermos::RefillJob (Job ID: 3563f845-8bfb-49b2-b7ac-7ba66e161139) from Async(default) in 1.33ms  (0.1ms) SAVEPOINT active_record_1 Product Update (0.1ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.290484"], ["id", 469160772]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ec26a8e2-b15c-4f35-a5ca-188b1b2221c9) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ec26a8e2-b15c-4f35-a5ca-188b1b2221c9] Performing Thermos::RefillJob (Job ID: ec26a8e2-b15c-4f35-a5ca-188b1b2221c9) from Async(default) with arguments: #>  (0.6ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [ec26a8e2-b15c-4f35-a5ca-188b1b2221c9] Performed Thermos::RefillJob (Job ID: ec26a8e2-b15c-4f35-a5ca-188b1b2221c9) from Async(default) in 0.06ms  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.5ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 22:24:30.297784"], ["updated_at", "2018-10-15 22:24:30.297784"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 104a2e92-3f45-40ef-abcc-fe7dce95ddae) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.7ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [104a2e92-3f45-40ef-abcc-fe7dce95ddae] Performing Thermos::RefillJob (Job ID: 104a2e92-3f45-40ef-abcc-fe7dce95ddae) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [104a2e92-3f45-40ef-abcc-fe7dce95ddae] Performed Thermos::RefillJob (Job ID: 104a2e92-3f45-40ef-abcc-fe7dce95ddae) from Async(default) in 0.06ms ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.4ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.310411"], ["id", 678302810]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 8ac08825-3c45-419e-95f8-9c2cb683e6be) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (1.9ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (1.2ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [8ac08825-3c45-419e-95f8-9c2cb683e6be] Performing Thermos::RefillJob (Job ID: 8ac08825-3c45-419e-95f8-9c2cb683e6be) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [8ac08825-3c45-419e-95f8-9c2cb683e6be] Performed Thermos::RefillJob (Job ID: 8ac08825-3c45-419e-95f8-9c2cb683e6be) from Async(default) in 0.08ms  (0.2ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.4ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:24:30.326251"], ["updated_at", "2018-10-15 22:24:30.326251"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: f48cc9c2-b7c3-4b9d-84ef-11c431cade72) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (3.4ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [f48cc9c2-b7c3-4b9d-84ef-11c431cade72] Performing Thermos::RefillJob (Job ID: f48cc9c2-b7c3-4b9d-84ef-11c431cade72) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [f48cc9c2-b7c3-4b9d-84ef-11c431cade72]  (0.4ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [f48cc9c2-b7c3-4b9d-84ef-11c431cade72] Performed Thermos::RefillJob (Job ID: f48cc9c2-b7c3-4b9d-84ef-11c431cade72) from Async(default) in 2.2ms  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.1ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.345144"], ["id", 678302811]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e755e895-a6f8-4053-a1f2-6046413981f4) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 CategoryItem Load (0.5ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]  (0.4ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [e755e895-a6f8-4053-a1f2-6046413981f4] Performing Thermos::RefillJob (Job ID: e755e895-a6f8-4053-a1f2-6046413981f4) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [e755e895-a6f8-4053-a1f2-6046413981f4] Performed Thermos::RefillJob (Job ID: e755e895-a6f8-4053-a1f2-6046413981f4) from Async(default) in 0.04ms --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.4ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.354810"], ["id", 469160771]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2d2cafbe-ccc6-42ba-856e-418a514955e4) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Product Load (1.7ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [2d2cafbe-ccc6-42ba-856e-418a514955e4] Performing Thermos::RefillJob (Job ID: 2d2cafbe-ccc6-42ba-856e-418a514955e4) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [2d2cafbe-ccc6-42ba-856e-418a514955e4] Performed Thermos::RefillJob (Job ID: 2d2cafbe-ccc6-42ba-856e-418a514955e4) from Async(default) in 0.07ms  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.371319"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: dbf2a9b9-dfcd-408e-a6ff-5c400838d957) to Async(default) with arguments: #>  (0.5ms) RELEASE SAVEPOINT active_record_1 Category Load (2.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [dbf2a9b9-dfcd-408e-a6ff-5c400838d957] Performing Thermos::RefillJob (Job ID: dbf2a9b9-dfcd-408e-a6ff-5c400838d957) from Async(default) with arguments: #>  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [dbf2a9b9-dfcd-408e-a6ff-5c400838d957] Performed Thermos::RefillJob (Job ID: dbf2a9b9-dfcd-408e-a6ff-5c400838d957) from Async(default) in 0.05ms  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:30.384748"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e56288a5-1238-4fc1-991b-fe5efdb9c179) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (1.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [e56288a5-1238-4fc1-991b-fe5efdb9c179] Performing Thermos::RefillJob (Job ID: e56288a5-1238-4fc1-991b-fe5efdb9c179) from Async(default) with arguments: #>  (0.1ms) begin transaction [ActiveJob] [Thermos::RefillJob] [e56288a5-1238-4fc1-991b-fe5efdb9c179] Performed Thermos::RefillJob (Job ID: e56288a5-1238-4fc1-991b-fe5efdb9c179) from Async(default) in 0.06ms ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.7ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:24:30.392656"], ["updated_at", "2018-10-15 22:24:30.392656"]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b680acf2-e606-43b9-aa31-70fdcffe0df8) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (0.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]]  (0.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [b680acf2-e606-43b9-aa31-70fdcffe0df8] Performing Thermos::RefillJob (Job ID: b680acf2-e606-43b9-aa31-70fdcffe0df8) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b680acf2-e606-43b9-aa31-70fdcffe0df8] Performed Thermos::RefillJob (Job ID: b680acf2-e606-43b9-aa31-70fdcffe0df8) from Async(default) in 0.06ms  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:24:38.362751', '2018-10-15 22:24:38.362751', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:24:38.365852', '2018-10-15 22:24:38.365852', 322908140, 868874525) Fixture Insert (0.0ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:24:38.366903', '2018-10-15 22:24:38.366903', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:24:38.368106', '2018-10-15 22:24:38.368106', 868874525)  (2.7ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.2ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:24:46.805936', '2018-10-15 22:24:46.805936', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:24:46.807368', '2018-10-15 22:24:46.807368', 322908140, 868874525) Fixture Insert (0.0ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:24:46.808324', '2018-10-15 22:24:46.808324', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:24:46.809401', '2018-10-15 22:24:46.809401', 868874525)  (2.8ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:24:56.847730', '2018-10-15 22:24:56.847730', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:24:56.849282', '2018-10-15 22:24:56.849282', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:24:56.850268', '2018-10-15 22:24:56.850268', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:24:56.851432', '2018-10-15 22:24:56.851432', 868874525)  (2.9ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:24:56.873550"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b6365424-57c3-491e-b30c-00e063ea74ae) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b6365424-57c3-491e-b30c-00e063ea74ae] Performing Thermos::RefillJob (Job ID: b6365424-57c3-491e-b30c-00e063ea74ae) from Async(default) with arguments: #>  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink --------------------------------------------------------- [ActiveJob] [Thermos::RefillJob] [b6365424-57c3-491e-b30c-00e063ea74ae] Enqueued Thermos::RebuildCacheJob (Job ID: dc871efe-c453-4465-b9a3-387b5eaa0bbf) to Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RebuildCacheJob] [dc871efe-c453-4465-b9a3-387b5eaa0bbf] Performing Thermos::RebuildCacheJob (Job ID: dc871efe-c453-4465-b9a3-387b5eaa0bbf) from Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [b6365424-57c3-491e-b30c-00e063ea74ae] Performed Thermos::RefillJob (Job ID: b6365424-57c3-491e-b30c-00e063ea74ae) from Async(default) in 5.79ms [ActiveJob] [Thermos::RebuildCacheJob] [dc871efe-c453-4465-b9a3-387b5eaa0bbf] Error performing Thermos::RebuildCacheJob (Job ID: dc871efe-c453-4465-b9a3-387b5eaa0bbf) from Async(default) in 0.14ms: MockExpectationError (No more expects available for :call: [322908140]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:132:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:16:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.4ms) DELETE FROM "category_items" Fixture Delete (0.3ms) DELETE FROM "stores" Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:28:43.737266', '2018-10-15 22:28:43.737266', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:28:43.740021', '2018-10-15 22:28:43.740021', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:28:43.742533', '2018-10-15 22:28:43.742533', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:28:43.743995', '2018-10-15 22:28:43.743995', 868874525)  (2.8ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:28:43.771377"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: aaf5b270-ebcf-4943-b173-e314ebf89999) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [aaf5b270-ebcf-4943-b173-e314ebf89999] Performing Thermos::RefillJob (Job ID: aaf5b270-ebcf-4943-b173-e314ebf89999) from Async(default) with arguments: #>  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------ [ActiveJob] [Thermos::RefillJob] [aaf5b270-ebcf-4943-b173-e314ebf89999] Enqueued Thermos::RebuildCacheJob (Job ID: 8e7cdd3c-9e02-4004-9184-571f4d02b0bf) to Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [aaf5b270-ebcf-4943-b173-e314ebf89999] Performed Thermos::RefillJob (Job ID: aaf5b270-ebcf-4943-b173-e314ebf89999) from Async(default) in 6.58ms [ActiveJob] [Thermos::RebuildCacheJob] [8e7cdd3c-9e02-4004-9184-571f4d02b0bf] Performing Thermos::RebuildCacheJob (Job ID: 8e7cdd3c-9e02-4004-9184-571f4d02b0bf) from Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RebuildCacheJob] [8e7cdd3c-9e02-4004-9184-571f4d02b0bf] Error performing Thermos::RebuildCacheJob (Job ID: 8e7cdd3c-9e02-4004-9184-571f4d02b0bf) from Async(default) in 0.23ms: MockExpectationError (No more expects available for :call: [322908140]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:132:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:40:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "products" Fixture Delete (0.2ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:28:57.554998', '2018-10-15 22:28:57.554998', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:28:57.557915', '2018-10-15 22:28:57.557915', 322908140, 868874525) Fixture Insert (0.0ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:28:57.559076', '2018-10-15 22:28:57.559076', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:28:57.560913', '2018-10-15 22:28:57.560913', 868874525)  (2.6ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:28:57.583222"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a7e648d8-8f0a-4761-86f8-35adee4c1936) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a7e648d8-8f0a-4761-86f8-35adee4c1936] Performing Thermos::RefillJob (Job ID: a7e648d8-8f0a-4761-86f8-35adee4c1936) from Async(default) with arguments: #>  (0.2ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------ [ActiveJob] [Thermos::RefillJob] [a7e648d8-8f0a-4761-86f8-35adee4c1936] Enqueued Thermos::RebuildCacheJob (Job ID: d2a1326d-8507-4c0f-b841-e2f36ce7a063) to Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [a7e648d8-8f0a-4761-86f8-35adee4c1936] Performed Thermos::RefillJob (Job ID: a7e648d8-8f0a-4761-86f8-35adee4c1936) from Async(default) in 6.12ms [ActiveJob] [Thermos::RebuildCacheJob] [d2a1326d-8507-4c0f-b841-e2f36ce7a063] Performing Thermos::RebuildCacheJob (Job ID: d2a1326d-8507-4c0f-b841-e2f36ce7a063) from Async(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RebuildCacheJob] [d2a1326d-8507-4c0f-b841-e2f36ce7a063] Error performing Thermos::RebuildCacheJob (Job ID: d2a1326d-8507-4c0f-b841-e2f36ce7a063) from Async(default) in 0.14ms: MockExpectationError (No more expects available for :call: [322908140]): /Users/athal/.gem/ruby/2.3.3/gems/minitest-5.11.3/lib/minitest/mock.rb:132:in `method_missing' /Users/athal/2u/thermos/test/thermos_test.rb:33:in `block (2 levels) in ' /Users/athal/2u/thermos/lib/thermos/rebuild_cache_job.rb:5:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:39:in `block in perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/i18n-1.1.1/lib/i18n.rb:284:in `with_locale' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/translation.rb:9:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:26:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:25:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `block in tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `block in tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:28:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/tagged_logging.rb:71:in `tagged' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:46:in `tag_logger' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/logging.rb:22:in `block (2 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:35:in `perform_now' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:24:in `block in execute' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:28:in `block (4 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:73:in `block in wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/reloader.rb:72:in `wrap' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/railtie.rb:27:in `block (3 levels) in ' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `instance_exec' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/execution.rb:22:in `execute' /Users/athal/.gem/ruby/2.3.3/gems/activejob-5.2.1/lib/active_job/queue_adapters/async_adapter.rb:70:in `perform' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch' /Users/athal/.gem/ruby/2.3.3/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:30:03.590363', '2018-10-15 22:30:03.590363', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:30:03.595711', '2018-10-15 22:30:03.595711', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:30:03.599174', '2018-10-15 22:30:03.599174', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:30:03.600607', '2018-10-15 22:30:03.600607', 868874525)  (3.1ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.2ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:30:11.810205', '2018-10-15 22:30:11.810205', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:30:11.813621', '2018-10-15 22:30:11.813621', 322908140, 868874525) Fixture Insert (0.0ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:30:11.814673', '2018-10-15 22:30:11.814673', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:30:11.815710', '2018-10-15 22:30:11.815710', 868874525)  (2.7ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.6ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:30:11.839301"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e8f977a2-9ab7-4ac5-b3aa-5bdde19a26db) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1 Category Load (2.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (1.3ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [e8f977a2-9ab7-4ac5-b3aa-5bdde19a26db] Performing Thermos::RefillJob (Job ID: e8f977a2-9ab7-4ac5-b3aa-5bdde19a26db) from Async(default) with arguments: #>  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------ [ActiveJob] [Thermos::RefillJob] [e8f977a2-9ab7-4ac5-b3aa-5bdde19a26db] Performed Thermos::RefillJob (Job ID: e8f977a2-9ab7-4ac5-b3aa-5bdde19a26db) from Async(default) in 5.3ms  (0.1ms) rollback transaction  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "products" Fixture Delete (0.5ms) DELETE FROM "categories" Fixture Delete (0.6ms) DELETE FROM "category_items" Fixture Delete (0.6ms) DELETE FROM "stores" Fixture Insert (0.6ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:37:13.791093', '2018-10-15 22:37:13.791093', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:37:13.792973', '2018-10-15 22:37:13.792973', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:37:13.795079', '2018-10-15 22:37:13.795079', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:37:13.796647', '2018-10-15 22:37:13.796647', 868874525)  (1.5ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:37:13.828573"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b7894d8b-8ea9-43df-8623-e328255e7620) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b7894d8b-8ea9-43df-8623-e328255e7620] Performing Thermos::RefillJob (Job ID: b7894d8b-8ea9-43df-8623-e328255e7620) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b7894d8b-8ea9-43df-8623-e328255e7620] Performed Thermos::RefillJob (Job ID: b7894d8b-8ea9-43df-8623-e328255e7620) from Async(default) in 4.83ms  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "products" Fixture Delete (0.6ms) DELETE FROM "categories" Fixture Delete (0.8ms) DELETE FROM "category_items" Fixture Delete (0.7ms) DELETE FROM "stores" Fixture Insert (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:37:39.617236', '2018-10-15 22:37:39.617236', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:37:39.620349', '2018-10-15 22:37:39.620349', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:37:39.621500', '2018-10-15 22:37:39.621500', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:37:39.622590', '2018-10-15 22:37:39.622590', 868874525)  (1.2ms) commit transaction  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:37:39.649414"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 38c61c59-a15e-4f7b-b655-77d87f1942ee) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) begin transaction [ActiveJob] [Thermos::RefillJob] [38c61c59-a15e-4f7b-b655-77d87f1942ee] Performing Thermos::RefillJob (Job ID: 38c61c59-a15e-4f7b-b655-77d87f1942ee) from Async(default) with arguments: #> --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.0ms) rollback transaction [ActiveJob] [Thermos::RefillJob] [38c61c59-a15e-4f7b-b655-77d87f1942ee] Performed Thermos::RefillJob (Job ID: 38c61c59-a15e-4f7b-b655-77d87f1942ee) from Async(default) in 7.47ms  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.1ms) begin transaction Fixture Delete (1.6ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.4ms) DELETE FROM "category_items" Fixture Delete (0.4ms) DELETE FROM "stores" Fixture Insert (0.4ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:40:49.818914', '2018-10-15 22:40:49.818914', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:40:49.820616', '2018-10-15 22:40:49.820616', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:40:49.821991', '2018-10-15 22:40:49.821991', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:40:49.823554', '2018-10-15 22:40:49.823554', 868874525)  (1.6ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.7ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:40:49.852752"], ["id", 322908140]] [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 070a6bf9-ffc4-4fa5-b26a-2afed5ab8af6) to Async(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [070a6bf9-ffc4-4fa5-b26a-2afed5ab8af6] Performing Thermos::RefillJob (Job ID: 070a6bf9-ffc4-4fa5-b26a-2afed5ab8af6) from Async(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [070a6bf9-ffc4-4fa5-b26a-2afed5ab8af6] Performed Thermos::RefillJob (Job ID: 070a6bf9-ffc4-4fa5-b26a-2afed5ab8af6) from Async(default) in 6.62ms  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (1.1ms) DELETE FROM "products" Fixture Delete (0.6ms) DELETE FROM "categories" Fixture Delete (0.5ms) DELETE FROM "category_items" Fixture Delete (0.5ms) DELETE FROM "stores" Fixture Insert (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:41:53.649424', '2018-10-15 22:41:53.649424', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:41:53.654048', '2018-10-15 22:41:53.654048', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:41:53.655929', '2018-10-15 22:41:53.655929', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:41:53.658045', '2018-10-15 22:41:53.658045', 868874525)  (1.4ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.6ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:41:53.683348"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ff8a21f5-9515-4722-a3b6-221e329bac61] Performing Thermos::RefillJob (Job ID: ff8a21f5-9515-4722-a3b6-221e329bac61) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [ff8a21f5-9515-4722-a3b6-221e329bac61] [Thermos::RebuildCacheJob] [41114b2a-dd92-4ede-afbc-9e66835213c8] Performing Thermos::RebuildCacheJob (Job ID: 41114b2a-dd92-4ede-afbc-9e66835213c8) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ff8a21f5-9515-4722-a3b6-221e329bac61] [Thermos::RebuildCacheJob] [41114b2a-dd92-4ede-afbc-9e66835213c8] Performed Thermos::RebuildCacheJob (Job ID: 41114b2a-dd92-4ede-afbc-9e66835213c8) from Inline(default) in 0.9ms [ActiveJob] [Thermos::RefillJob] [ff8a21f5-9515-4722-a3b6-221e329bac61] Enqueued Thermos::RebuildCacheJob (Job ID: 41114b2a-dd92-4ede-afbc-9e66835213c8) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ff8a21f5-9515-4722-a3b6-221e329bac61] Performed Thermos::RefillJob (Job ID: ff8a21f5-9515-4722-a3b6-221e329bac61) from Inline(default) in 10.27ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ff8a21f5-9515-4722-a3b6-221e329bac61) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.2ms) DELETE FROM "category_items" Fixture Delete (0.2ms) DELETE FROM "stores" Fixture Insert (0.2ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:42:07.042676', '2018-10-15 22:42:07.042676', 469160771) Fixture Insert (0.2ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:42:07.045270', '2018-10-15 22:42:07.045270', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:42:07.049031', '2018-10-15 22:42:07.049031', 678302810, 322908140, 469160771) Fixture Insert (0.2ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:42:07.050182', '2018-10-15 22:42:07.050182', 868874525)  (3.0ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:07.079693"], ["id", 322908140]] [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [16ed98a1-725f-4573-88ee-3da3e78d0237] Performing Thermos::RefillJob (Job ID: 16ed98a1-725f-4573-88ee-3da3e78d0237) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [16ed98a1-725f-4573-88ee-3da3e78d0237] [Thermos::RebuildCacheJob] [9686ffc2-d912-4f00-b7d9-e655deb951d2] Performing Thermos::RebuildCacheJob (Job ID: 9686ffc2-d912-4f00-b7d9-e655deb951d2) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [16ed98a1-725f-4573-88ee-3da3e78d0237] [Thermos::RebuildCacheJob] [9686ffc2-d912-4f00-b7d9-e655deb951d2] Performed Thermos::RebuildCacheJob (Job ID: 9686ffc2-d912-4f00-b7d9-e655deb951d2) from Inline(default) in 0.99ms [ActiveJob] [Thermos::RefillJob] [16ed98a1-725f-4573-88ee-3da3e78d0237] Enqueued Thermos::RebuildCacheJob (Job ID: 9686ffc2-d912-4f00-b7d9-e655deb951d2) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [16ed98a1-725f-4573-88ee-3da3e78d0237] Performed Thermos::RefillJob (Job ID: 16ed98a1-725f-4573-88ee-3da3e78d0237) from Inline(default) in 6.56ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 16ed98a1-725f-4573-88ee-3da3e78d0237) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "products" Fixture Delete (0.1ms) DELETE FROM "categories" Fixture Delete (0.1ms) DELETE FROM "category_items" Fixture Delete (0.1ms) DELETE FROM "stores" Fixture Insert (0.1ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:42:18.224968', '2018-10-15 22:42:18.224968', 469160771) Fixture Insert (0.0ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:42:18.226463', '2018-10-15 22:42:18.226463', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:42:18.227468', '2018-10-15 22:42:18.227468', 678302810, 322908140, 469160771) Fixture Insert (0.0ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:42:18.228466', '2018-10-15 22:42:18.228466', 868874525)  (3.1ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.6ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.254319"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1] Performing Thermos::RefillJob (Job ID: 717dca43-ad17-49ca-8549-de7d285dc9d1) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1] [Thermos::RebuildCacheJob] [7f00cb14-5a28-40de-80f3-882f511f34a8] Performing Thermos::RebuildCacheJob (Job ID: 7f00cb14-5a28-40de-80f3-882f511f34a8) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1] [Thermos::RebuildCacheJob] [7f00cb14-5a28-40de-80f3-882f511f34a8] Performed Thermos::RebuildCacheJob (Job ID: 7f00cb14-5a28-40de-80f3-882f511f34a8) from Inline(default) in 0.75ms [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1] Enqueued Thermos::RebuildCacheJob (Job ID: 7f00cb14-5a28-40de-80f3-882f511f34a8) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [717dca43-ad17-49ca-8549-de7d285dc9d1] Performed Thermos::RefillJob (Job ID: 717dca43-ad17-49ca-8549-de7d285dc9d1) from Inline(default) in 15.3ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 717dca43-ad17-49ca-8549-de7d285dc9d1) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.6ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:42:18.308587"], ["updated_at", "2018-10-15 22:42:18.308587"]] CategoryItem Create (0.2ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 22:42:18.310335"], ["updated_at", "2018-10-15 22:42:18.310335"]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9] Performing Thermos::RefillJob (Job ID: ea5595c5-5771-4986-893b-f1f4047a25d9) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9] [Thermos::RebuildCacheJob] [7f84604b-7390-4165-9d98-19dc02b2902f] Performing Thermos::RebuildCacheJob (Job ID: 7f84604b-7390-4165-9d98-19dc02b2902f) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9] [Thermos::RebuildCacheJob] [7f84604b-7390-4165-9d98-19dc02b2902f] Performed Thermos::RebuildCacheJob (Job ID: 7f84604b-7390-4165-9d98-19dc02b2902f) from Inline(default) in 1.49ms [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9] Enqueued Thermos::RebuildCacheJob (Job ID: 7f84604b-7390-4165-9d98-19dc02b2902f) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ea5595c5-5771-4986-893b-f1f4047a25d9] Performed Thermos::RefillJob (Job ID: ea5595c5-5771-4986-893b-f1f4047a25d9) from Inline(default) in 2.78ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ea5595c5-5771-4986-893b-f1f4047a25d9) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.4ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:42:18.323459"], ["updated_at", "2018-10-15 22:42:18.323459"]] Category Update (0.2ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 22:42:18.324662"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab] Performing Thermos::RefillJob (Job ID: f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab] [Thermos::RebuildCacheJob] [87d8baa5-2e25-41b1-9455-585b517e0371] Performing Thermos::RebuildCacheJob (Job ID: 87d8baa5-2e25-41b1-9455-585b517e0371) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab] [Thermos::RebuildCacheJob] [87d8baa5-2e25-41b1-9455-585b517e0371] Performed Thermos::RebuildCacheJob (Job ID: 87d8baa5-2e25-41b1-9455-585b517e0371) from Inline(default) in 1.19ms [ActiveJob] [Thermos::RefillJob] [f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab] Enqueued Thermos::RebuildCacheJob (Job ID: 87d8baa5-2e25-41b1-9455-585b517e0371) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab] Performed Thermos::RefillJob (Job ID: f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab) from Inline(default) in 1.68ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: f44dc054-f3ea-49d7-a7d9-0efa1a47b3ab) to Inline(default) with arguments: #> [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d] Performing Thermos::RefillJob (Job ID: 3ad370a5-f63b-47ea-b0b3-a34415e1f83d) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d] [Thermos::RebuildCacheJob] [6c51cc9a-57ca-4b20-b7cb-5b7c12f53049] Performing Thermos::RebuildCacheJob (Job ID: 6c51cc9a-57ca-4b20-b7cb-5b7c12f53049) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d] [Thermos::RebuildCacheJob] [6c51cc9a-57ca-4b20-b7cb-5b7c12f53049] Performed Thermos::RebuildCacheJob (Job ID: 6c51cc9a-57ca-4b20-b7cb-5b7c12f53049) from Inline(default) in 1.26ms [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d] Enqueued Thermos::RebuildCacheJob (Job ID: 6c51cc9a-57ca-4b20-b7cb-5b7c12f53049) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [3ad370a5-f63b-47ea-b0b3-a34415e1f83d] Performed Thermos::RefillJob (Job ID: 3ad370a5-f63b-47ea-b0b3-a34415e1f83d) from Inline(default) in 3.73ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 3ad370a5-f63b-47ea-b0b3-a34415e1f83d) to Inline(default) with arguments: #>  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.4ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 22:42:18.340795"], ["updated_at", "2018-10-15 22:42:18.340795"]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [04dbdc33-17a9-4fec-8a60-38c281e03236] Performing Thermos::RefillJob (Job ID: 04dbdc33-17a9-4fec-8a60-38c281e03236) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [04dbdc33-17a9-4fec-8a60-38c281e03236] Performed Thermos::RefillJob (Job ID: 04dbdc33-17a9-4fec-8a60-38c281e03236) from Inline(default) in 0.04ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 04dbdc33-17a9-4fec-8a60-38c281e03236) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Category Update (0.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.344922"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [46ba1c7e-5e17-4799-a781-7e33004476b3] Performing Thermos::RefillJob (Job ID: 46ba1c7e-5e17-4799-a781-7e33004476b3) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [46ba1c7e-5e17-4799-a781-7e33004476b3] [Thermos::RebuildCacheJob] [a362a9b3-f366-46a1-8cdf-4a3e62a2fa01] Performing Thermos::RebuildCacheJob (Job ID: a362a9b3-f366-46a1-8cdf-4a3e62a2fa01) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [46ba1c7e-5e17-4799-a781-7e33004476b3] [Thermos::RebuildCacheJob] [a362a9b3-f366-46a1-8cdf-4a3e62a2fa01] Performed Thermos::RebuildCacheJob (Job ID: a362a9b3-f366-46a1-8cdf-4a3e62a2fa01) from Inline(default) in 1.59ms [ActiveJob] [Thermos::RefillJob] [46ba1c7e-5e17-4799-a781-7e33004476b3] Enqueued Thermos::RebuildCacheJob (Job ID: a362a9b3-f366-46a1-8cdf-4a3e62a2fa01) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [46ba1c7e-5e17-4799-a781-7e33004476b3] Performed Thermos::RefillJob (Job ID: 46ba1c7e-5e17-4799-a781-7e33004476b3) from Inline(default) in 2.17ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 46ba1c7e-5e17-4799-a781-7e33004476b3) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:42:18.352548"], ["updated_at", "2018-10-15 22:42:18.352548"]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [dc3460a2-7114-4865-81c8-a21f12d86731] Performing Thermos::RefillJob (Job ID: dc3460a2-7114-4865-81c8-a21f12d86731) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [dc3460a2-7114-4865-81c8-a21f12d86731] [Thermos::RebuildCacheJob] [8dda68d0-5f95-4415-a2b9-5798c4886822] Performing Thermos::RebuildCacheJob (Job ID: 8dda68d0-5f95-4415-a2b9-5798c4886822) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [dc3460a2-7114-4865-81c8-a21f12d86731] [Thermos::RebuildCacheJob] [8dda68d0-5f95-4415-a2b9-5798c4886822] Performed Thermos::RebuildCacheJob (Job ID: 8dda68d0-5f95-4415-a2b9-5798c4886822) from Inline(default) in 1.86ms [ActiveJob] [Thermos::RefillJob] [dc3460a2-7114-4865-81c8-a21f12d86731] Enqueued Thermos::RebuildCacheJob (Job ID: 8dda68d0-5f95-4415-a2b9-5798c4886822) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [dc3460a2-7114-4865-81c8-a21f12d86731] Performed Thermos::RefillJob (Job ID: dc3460a2-7114-4865-81c8-a21f12d86731) from Inline(default) in 2.89ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: dc3460a2-7114-4865-81c8-a21f12d86731) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.8ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:42:18.363405"], ["updated_at", "2018-10-15 22:42:18.363405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.3ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.367505"], ["id", 678302811]] [ActiveJob] CategoryItem Load (0.5ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [177f578a-a5b5-45d7-8aa1-17fe6381a592] Performing Thermos::RefillJob (Job ID: 177f578a-a5b5-45d7-8aa1-17fe6381a592) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [177f578a-a5b5-45d7-8aa1-17fe6381a592]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [177f578a-a5b5-45d7-8aa1-17fe6381a592] Performed Thermos::RefillJob (Job ID: 177f578a-a5b5-45d7-8aa1-17fe6381a592) from Inline(default) in 0.8ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 177f578a-a5b5-45d7-8aa1-17fe6381a592) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.3ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.379752"], ["id", 868874525]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b] Performing Thermos::RefillJob (Job ID: d7ce79a7-28df-4330-8ea8-bd8a542e3d3b) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874525]] [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b] [Thermos::RebuildCacheJob] [5a0fa33b-ea84-4013-bbff-1d3440064f0b] Performing Thermos::RebuildCacheJob (Job ID: 5a0fa33b-ea84-4013-bbff-1d3440064f0b) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b] [Thermos::RebuildCacheJob] [5a0fa33b-ea84-4013-bbff-1d3440064f0b] Performed Thermos::RebuildCacheJob (Job ID: 5a0fa33b-ea84-4013-bbff-1d3440064f0b) from Inline(default) in 0.82ms [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b] Enqueued Thermos::RebuildCacheJob (Job ID: 5a0fa33b-ea84-4013-bbff-1d3440064f0b) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d7ce79a7-28df-4330-8ea8-bd8a542e3d3b] Performed Thermos::RefillJob (Job ID: d7ce79a7-28df-4330-8ea8-bd8a542e3d3b) from Inline(default) in 2.21ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: d7ce79a7-28df-4330-8ea8-bd8a542e3d3b) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.5ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:42:18.388995"], ["updated_at", "2018-10-15 22:42:18.388995"]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [74566e80-6665-46e7-96d5-db7aaf1faf35] Performing Thermos::RefillJob (Job ID: 74566e80-6665-46e7-96d5-db7aaf1faf35) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [74566e80-6665-46e7-96d5-db7aaf1faf35] Performed Thermos::RefillJob (Job ID: 74566e80-6665-46e7-96d5-db7aaf1faf35) from Inline(default) in 0.06ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 74566e80-6665-46e7-96d5-db7aaf1faf35) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.394317"], ["id", 868874526]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9] Performing Thermos::RefillJob (Job ID: 0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9] Performed Thermos::RefillJob (Job ID: 0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9) from Inline(default) in 0.85ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0f540b4f-74ca-44bf-a3ff-ac2f2165d7c9) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.4ms) SAVEPOINT active_record_1 CategoryItem Create (0.9ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 22:42:18.403072"], ["updated_at", "2018-10-15 22:42:18.403072"]] [ActiveJob] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100] Performing Thermos::RefillJob (Job ID: 4e27d782-ef07-4678-9632-ecc850a72100) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100] [Thermos::RebuildCacheJob] [c012e0cf-d501-457c-9833-9079e79b43ef] Performing Thermos::RebuildCacheJob (Job ID: c012e0cf-d501-457c-9833-9079e79b43ef) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100] [Thermos::RebuildCacheJob] [c012e0cf-d501-457c-9833-9079e79b43ef] Performed Thermos::RebuildCacheJob (Job ID: c012e0cf-d501-457c-9833-9079e79b43ef) from Inline(default) in 1.1ms [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100] Enqueued Thermos::RebuildCacheJob (Job ID: c012e0cf-d501-457c-9833-9079e79b43ef) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [4e27d782-ef07-4678-9632-ecc850a72100] Performed Thermos::RefillJob (Job ID: 4e27d782-ef07-4678-9632-ecc850a72100) from Inline(default) in 2.15ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 4e27d782-ef07-4678-9632-ecc850a72100) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.418862"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [595b2040-44a5-4dfe-8b64-74c58b5c1a88] Performing Thermos::RefillJob (Job ID: 595b2040-44a5-4dfe-8b64-74c58b5c1a88) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [595b2040-44a5-4dfe-8b64-74c58b5c1a88] [Thermos::RebuildCacheJob] [c8e13e20-c8d3-486a-ab58-ac625d8a3bc4] Performing Thermos::RebuildCacheJob (Job ID: c8e13e20-c8d3-486a-ab58-ac625d8a3bc4) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [595b2040-44a5-4dfe-8b64-74c58b5c1a88] [Thermos::RebuildCacheJob] [c8e13e20-c8d3-486a-ab58-ac625d8a3bc4] Performed Thermos::RebuildCacheJob (Job ID: c8e13e20-c8d3-486a-ab58-ac625d8a3bc4) from Inline(default) in 0.76ms [ActiveJob] [Thermos::RefillJob] [595b2040-44a5-4dfe-8b64-74c58b5c1a88] Enqueued Thermos::RebuildCacheJob (Job ID: c8e13e20-c8d3-486a-ab58-ac625d8a3bc4) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [595b2040-44a5-4dfe-8b64-74c58b5c1a88] Performed Thermos::RefillJob (Job ID: 595b2040-44a5-4dfe-8b64-74c58b5c1a88) from Inline(default) in 1.59ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 595b2040-44a5-4dfe-8b64-74c58b5c1a88) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.5ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.433083"], ["id", 678302810]] [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a] Performing Thermos::RefillJob (Job ID: 11b3916f-bd39-489b-ab25-a4149d5d499a) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302810]] [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a] [Thermos::RebuildCacheJob] [2e8a4bf2-da8e-4cef-b33e-f8fe28d0ad12] Performing Thermos::RebuildCacheJob (Job ID: 2e8a4bf2-da8e-4cef-b33e-f8fe28d0ad12) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a] [Thermos::RebuildCacheJob] [2e8a4bf2-da8e-4cef-b33e-f8fe28d0ad12] Performed Thermos::RebuildCacheJob (Job ID: 2e8a4bf2-da8e-4cef-b33e-f8fe28d0ad12) from Inline(default) in 0.97ms [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a] Enqueued Thermos::RebuildCacheJob (Job ID: 2e8a4bf2-da8e-4cef-b33e-f8fe28d0ad12) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [11b3916f-bd39-489b-ab25-a4149d5d499a] Performed Thermos::RefillJob (Job ID: 11b3916f-bd39-489b-ab25-a4149d5d499a) from Inline(default) in 2.76ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 11b3916f-bd39-489b-ab25-a4149d5d499a) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:42:18.444657"], ["updated_at", "2018-10-15 22:42:18.444657"]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [00279324-329b-4ea9-bcc1-b6a4424975c4] Performing Thermos::RefillJob (Job ID: 00279324-329b-4ea9-bcc1-b6a4424975c4) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [00279324-329b-4ea9-bcc1-b6a4424975c4] Performed Thermos::RefillJob (Job ID: 00279324-329b-4ea9-bcc1-b6a4424975c4) from Inline(default) in 0.03ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 00279324-329b-4ea9-bcc1-b6a4424975c4) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Product Update (0.1ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.448757"], ["id", 469160772]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [13180426-9d55-47e0-bdef-44135e737a1c] Performing Thermos::RefillJob (Job ID: 13180426-9d55-47e0-bdef-44135e737a1c) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [13180426-9d55-47e0-bdef-44135e737a1c]  (0.3ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [13180426-9d55-47e0-bdef-44135e737a1c] Performed Thermos::RefillJob (Job ID: 13180426-9d55-47e0-bdef-44135e737a1c) from Inline(default) in 1.45ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 13180426-9d55-47e0-bdef-44135e737a1c) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.4ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.458903"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [c647daf4-8670-42eb-b0cc-147e7f114c5b] Performing Thermos::RefillJob (Job ID: c647daf4-8670-42eb-b0cc-147e7f114c5b) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [c647daf4-8670-42eb-b0cc-147e7f114c5b] [Thermos::RebuildCacheJob] [0efe358f-6a74-43a8-9415-cd061f0f7f4e] Performing Thermos::RebuildCacheJob (Job ID: 0efe358f-6a74-43a8-9415-cd061f0f7f4e) from Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [c647daf4-8670-42eb-b0cc-147e7f114c5b] [Thermos::RebuildCacheJob] [0efe358f-6a74-43a8-9415-cd061f0f7f4e] Performed Thermos::RebuildCacheJob (Job ID: 0efe358f-6a74-43a8-9415-cd061f0f7f4e) from Inline(default) in 1.38ms [ActiveJob] [Thermos::RefillJob] [c647daf4-8670-42eb-b0cc-147e7f114c5b] Enqueued Thermos::RebuildCacheJob (Job ID: 0efe358f-6a74-43a8-9415-cd061f0f7f4e) to Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [c647daf4-8670-42eb-b0cc-147e7f114c5b] Performed Thermos::RefillJob (Job ID: c647daf4-8670-42eb-b0cc-147e7f114c5b) from Inline(default) in 1.94ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: c647daf4-8670-42eb-b0cc-147e7f114c5b) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.3ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.475670"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [36c668e3-b269-4d7a-bc6f-80f651e08395] Performing Thermos::RefillJob (Job ID: 36c668e3-b269-4d7a-bc6f-80f651e08395) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [36c668e3-b269-4d7a-bc6f-80f651e08395] [Thermos::RebuildCacheJob] [7b1ae7cc-ef97-4cf6-9917-bfa6764b3dee] Performing Thermos::RebuildCacheJob (Job ID: 7b1ae7cc-ef97-4cf6-9917-bfa6764b3dee) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [36c668e3-b269-4d7a-bc6f-80f651e08395] [Thermos::RebuildCacheJob] [7b1ae7cc-ef97-4cf6-9917-bfa6764b3dee] Performed Thermos::RebuildCacheJob (Job ID: 7b1ae7cc-ef97-4cf6-9917-bfa6764b3dee) from Inline(default) in 1.05ms [ActiveJob] [Thermos::RefillJob] [36c668e3-b269-4d7a-bc6f-80f651e08395] Enqueued Thermos::RebuildCacheJob (Job ID: 7b1ae7cc-ef97-4cf6-9917-bfa6764b3dee) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [36c668e3-b269-4d7a-bc6f-80f651e08395] Performed Thermos::RefillJob (Job ID: 36c668e3-b269-4d7a-bc6f-80f651e08395) from Inline(default) in 1.54ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 36c668e3-b269-4d7a-bc6f-80f651e08395) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:42:18.479887"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada] Performing Thermos::RefillJob (Job ID: fa68d859-e6cd-40d8-b851-ad66a1afcada) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada]  (0.1ms) SELECT "categories"."name" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada] [Thermos::RebuildCacheJob] [bbf4795b-41ed-4e68-9f30-81ad8778f6b4] Performing Thermos::RebuildCacheJob (Job ID: bbf4795b-41ed-4e68-9f30-81ad8778f6b4) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada] [Thermos::RebuildCacheJob] [bbf4795b-41ed-4e68-9f30-81ad8778f6b4] Performed Thermos::RebuildCacheJob (Job ID: bbf4795b-41ed-4e68-9f30-81ad8778f6b4) from Inline(default) in 0.94ms [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada] Enqueued Thermos::RebuildCacheJob (Job ID: bbf4795b-41ed-4e68-9f30-81ad8778f6b4) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [fa68d859-e6cd-40d8-b851-ad66a1afcada] Performed Thermos::RefillJob (Job ID: fa68d859-e6cd-40d8-b851-ad66a1afcada) from Inline(default) in 2.45ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fa68d859-e6cd-40d8-b851-ad66a1afcada) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "products" Fixture Delete (0.4ms) DELETE FROM "categories" Fixture Delete (0.4ms) DELETE FROM "category_items" Fixture Delete (0.4ms) DELETE FROM "stores" Fixture Insert (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-15 22:47:23.715435', '2018-10-15 22:47:23.715435', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-15 22:47:23.716903', '2018-10-15 22:47:23.716903', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-15 22:47:23.717834', '2018-10-15 22:47:23.717834', 678302810, 322908140, 469160771) Fixture Insert (0.4ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-15 22:47:23.718817', '2018-10-15 22:47:23.718817', 868874525)  (2.2ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:47:23.733070"], ["updated_at", "2018-10-15 22:47:23.733070"]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [38f156f9-98f2-4b84-a778-efe98b404c9d] Performing Thermos::RefillJob (Job ID: 38f156f9-98f2-4b84-a778-efe98b404c9d) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [38f156f9-98f2-4b84-a778-efe98b404c9d] [Thermos::RebuildCacheJob] [89604d03-8dfc-4dba-8ec1-45348b937fd2] Performing Thermos::RebuildCacheJob (Job ID: 89604d03-8dfc-4dba-8ec1-45348b937fd2) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [38f156f9-98f2-4b84-a778-efe98b404c9d] [Thermos::RebuildCacheJob] [89604d03-8dfc-4dba-8ec1-45348b937fd2] Performed Thermos::RebuildCacheJob (Job ID: 89604d03-8dfc-4dba-8ec1-45348b937fd2) from Inline(default) in 1.38ms [ActiveJob] [Thermos::RefillJob] [38f156f9-98f2-4b84-a778-efe98b404c9d] Enqueued Thermos::RebuildCacheJob (Job ID: 89604d03-8dfc-4dba-8ec1-45348b937fd2) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [38f156f9-98f2-4b84-a778-efe98b404c9d] Performed Thermos::RefillJob (Job ID: 38f156f9-98f2-4b84-a778-efe98b404c9d) from Inline(default) in 6.63ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 38f156f9-98f2-4b84-a778-efe98b404c9d) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.4ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:47:23.757012"], ["updated_at", "2018-10-15 22:47:23.757012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.761187"], ["id", 868874526]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc] Performing Thermos::RefillJob (Job ID: e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc] Performed Thermos::RefillJob (Job ID: e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc) from Inline(default) in 8.26ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e0cfa021-373b-4cce-8cc6-f5d4b37aa4fc) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:47:23.808851"], ["updated_at", "2018-10-15 22:47:23.808851"]] CategoryItem Create (0.1ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-15 22:47:23.810114"], ["updated_at", "2018-10-15 22:47:23.810114"]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275] Performing Thermos::RefillJob (Job ID: d238009b-7936-48df-9efc-497233cf5275) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275] [Thermos::RebuildCacheJob] [ef8ec3d1-d3dc-46c6-8361-aabe45d9653b] Performing Thermos::RebuildCacheJob (Job ID: ef8ec3d1-d3dc-46c6-8361-aabe45d9653b) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275] [Thermos::RebuildCacheJob] [ef8ec3d1-d3dc-46c6-8361-aabe45d9653b] Performed Thermos::RebuildCacheJob (Job ID: ef8ec3d1-d3dc-46c6-8361-aabe45d9653b) from Inline(default) in 1.21ms [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275] Enqueued Thermos::RebuildCacheJob (Job ID: ef8ec3d1-d3dc-46c6-8361-aabe45d9653b) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d238009b-7936-48df-9efc-497233cf5275] Performed Thermos::RefillJob (Job ID: d238009b-7936-48df-9efc-497233cf5275) from Inline(default) in 2.75ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: d238009b-7936-48df-9efc-497233cf5275) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.4ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.821599"], ["id", 322908140]] [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [2b87ad9d-8866-412d-ab51-6e0be39489ec] Performing Thermos::RefillJob (Job ID: 2b87ad9d-8866-412d-ab51-6e0be39489ec) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [2b87ad9d-8866-412d-ab51-6e0be39489ec] [Thermos::RebuildCacheJob] [80b9abcc-6e2c-40f6-9cb5-978fe6230c85] Performing Thermos::RebuildCacheJob (Job ID: 80b9abcc-6e2c-40f6-9cb5-978fe6230c85) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [2b87ad9d-8866-412d-ab51-6e0be39489ec] [Thermos::RebuildCacheJob] [80b9abcc-6e2c-40f6-9cb5-978fe6230c85] Performed Thermos::RebuildCacheJob (Job ID: 80b9abcc-6e2c-40f6-9cb5-978fe6230c85) from Inline(default) in 1.89ms [ActiveJob] [Thermos::RefillJob] [2b87ad9d-8866-412d-ab51-6e0be39489ec] Enqueued Thermos::RebuildCacheJob (Job ID: 80b9abcc-6e2c-40f6-9cb5-978fe6230c85) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [2b87ad9d-8866-412d-ab51-6e0be39489ec] Performed Thermos::RefillJob (Job ID: 2b87ad9d-8866-412d-ab51-6e0be39489ec) from Inline(default) in 3.0ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2b87ad9d-8866-412d-ab51-6e0be39489ec) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Product Update (0.3ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.828315"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872] Performing Thermos::RefillJob (Job ID: e72b89c7-4347-4990-b5ea-cea17be9b872) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872]  (0.1ms) SELECT "categories"."name" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872] [Thermos::RebuildCacheJob] [a717da87-e35f-4c67-a4fa-60e61993c070] Performing Thermos::RebuildCacheJob (Job ID: a717da87-e35f-4c67-a4fa-60e61993c070) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872] [Thermos::RebuildCacheJob] [a717da87-e35f-4c67-a4fa-60e61993c070] Performed Thermos::RebuildCacheJob (Job ID: a717da87-e35f-4c67-a4fa-60e61993c070) from Inline(default) in 0.74ms [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872] Enqueued Thermos::RebuildCacheJob (Job ID: a717da87-e35f-4c67-a4fa-60e61993c070) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [e72b89c7-4347-4990-b5ea-cea17be9b872] Performed Thermos::RefillJob (Job ID: e72b89c7-4347-4990-b5ea-cea17be9b872) from Inline(default) in 2.14ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e72b89c7-4347-4990-b5ea-cea17be9b872) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.5ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-15 22:47:23.836920"], ["updated_at", "2018-10-15 22:47:23.836920"]] [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874] Performing Thermos::RefillJob (Job ID: e932869c-163d-450e-b70b-c9322fab7874) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874] [Thermos::RebuildCacheJob] [44815e84-996c-4a45-9896-5a893320fd9c] Performing Thermos::RebuildCacheJob (Job ID: 44815e84-996c-4a45-9896-5a893320fd9c) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874] [Thermos::RebuildCacheJob] [44815e84-996c-4a45-9896-5a893320fd9c] Performed Thermos::RebuildCacheJob (Job ID: 44815e84-996c-4a45-9896-5a893320fd9c) from Inline(default) in 1.38ms [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874] Enqueued Thermos::RebuildCacheJob (Job ID: 44815e84-996c-4a45-9896-5a893320fd9c) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [e932869c-163d-450e-b70b-c9322fab7874] Performed Thermos::RefillJob (Job ID: e932869c-163d-450e-b70b-c9322fab7874) from Inline(default) in 2.8ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e932869c-163d-450e-b70b-c9322fab7874) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.4ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:47:23.846903"], ["updated_at", "2018-10-15 22:47:23.846903"]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [1cb9a8db-8ca0-478f-a344-57c031ad9346] Performing Thermos::RefillJob (Job ID: 1cb9a8db-8ca0-478f-a344-57c031ad9346) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [1cb9a8db-8ca0-478f-a344-57c031ad9346] Performed Thermos::RefillJob (Job ID: 1cb9a8db-8ca0-478f-a344-57c031ad9346) from Inline(default) in 0.03ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 1cb9a8db-8ca0-478f-a344-57c031ad9346) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Product Update (0.1ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.851155"], ["id", 469160772]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7150fbe1-cbdb-4868-83f6-f90f4ae4b185] Performing Thermos::RefillJob (Job ID: 7150fbe1-cbdb-4868-83f6-f90f4ae4b185) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [7150fbe1-cbdb-4868-83f6-f90f4ae4b185]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [7150fbe1-cbdb-4868-83f6-f90f4ae4b185] Performed Thermos::RefillJob (Job ID: 7150fbe1-cbdb-4868-83f6-f90f4ae4b185) from Inline(default) in 0.83ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7150fbe1-cbdb-4868-83f6-f90f4ae4b185) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.5ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-15 22:47:23.859955"], ["updated_at", "2018-10-15 22:47:23.859955"]] [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [eb19ee98-7bee-4140-820b-665728d150a9] Performing Thermos::RefillJob (Job ID: eb19ee98-7bee-4140-820b-665728d150a9) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [eb19ee98-7bee-4140-820b-665728d150a9] Performed Thermos::RefillJob (Job ID: eb19ee98-7bee-4140-820b-665728d150a9) from Inline(default) in 0.08ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: eb19ee98-7bee-4140-820b-665728d150a9) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.1ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.866086"], ["id", 678302811]] [ActiveJob] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e75d502c-dc1b-4608-9f4a-bf45063f2e69] Performing Thermos::RefillJob (Job ID: e75d502c-dc1b-4608-9f4a-bf45063f2e69) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e75d502c-dc1b-4608-9f4a-bf45063f2e69]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [e75d502c-dc1b-4608-9f4a-bf45063f2e69] Performed Thermos::RefillJob (Job ID: e75d502c-dc1b-4608-9f4a-bf45063f2e69) from Inline(default) in 0.62ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e75d502c-dc1b-4608-9f4a-bf45063f2e69) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.3ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.873732"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0587fea4-51b6-410c-9058-b00c6494b288] Performing Thermos::RefillJob (Job ID: 0587fea4-51b6-410c-9058-b00c6494b288) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0587fea4-51b6-410c-9058-b00c6494b288] [Thermos::RebuildCacheJob] [41e853db-5e92-4516-a7a8-5a6d46a48dfd] Performing Thermos::RebuildCacheJob (Job ID: 41e853db-5e92-4516-a7a8-5a6d46a48dfd) from Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [0587fea4-51b6-410c-9058-b00c6494b288] [Thermos::RebuildCacheJob] [41e853db-5e92-4516-a7a8-5a6d46a48dfd] Performed Thermos::RebuildCacheJob (Job ID: 41e853db-5e92-4516-a7a8-5a6d46a48dfd) from Inline(default) in 1.41ms [ActiveJob] [Thermos::RefillJob] [0587fea4-51b6-410c-9058-b00c6494b288] Enqueued Thermos::RebuildCacheJob (Job ID: 41e853db-5e92-4516-a7a8-5a6d46a48dfd) to Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [0587fea4-51b6-410c-9058-b00c6494b288] Performed Thermos::RefillJob (Job ID: 0587fea4-51b6-410c-9058-b00c6494b288) from Inline(default) in 2.08ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0587fea4-51b6-410c-9058-b00c6494b288) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (4.5ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.887634"], ["id", 868874525]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775] Performing Thermos::RefillJob (Job ID: fad75259-cac8-4636-a083-4ef662dc2775) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874525]] [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775] [Thermos::RebuildCacheJob] [a9926df4-d717-496c-9151-94244433249b] Performing Thermos::RebuildCacheJob (Job ID: a9926df4-d717-496c-9151-94244433249b) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775] [Thermos::RebuildCacheJob] [a9926df4-d717-496c-9151-94244433249b] Performed Thermos::RebuildCacheJob (Job ID: a9926df4-d717-496c-9151-94244433249b) from Inline(default) in 1.17ms [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775] Enqueued Thermos::RebuildCacheJob (Job ID: a9926df4-d717-496c-9151-94244433249b) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [fad75259-cac8-4636-a083-4ef662dc2775] Performed Thermos::RefillJob (Job ID: fad75259-cac8-4636-a083-4ef662dc2775) from Inline(default) in 3.1ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fad75259-cac8-4636-a083-4ef662dc2775) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.4ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.899536"], ["id", 678302810]] [ActiveJob] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9] Performing Thermos::RefillJob (Job ID: 7cd16058-419b-4fe9-beb4-aadac96243d9) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302810]] [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9] [Thermos::RebuildCacheJob] [5f688b74-56f4-478a-9f13-f0099f935cf2] Performing Thermos::RebuildCacheJob (Job ID: 5f688b74-56f4-478a-9f13-f0099f935cf2) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9] [Thermos::RebuildCacheJob] [5f688b74-56f4-478a-9f13-f0099f935cf2] Performed Thermos::RebuildCacheJob (Job ID: 5f688b74-56f4-478a-9f13-f0099f935cf2) from Inline(default) in 0.76ms [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9] Enqueued Thermos::RebuildCacheJob (Job ID: 5f688b74-56f4-478a-9f13-f0099f935cf2) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [7cd16058-419b-4fe9-beb4-aadac96243d9] Performed Thermos::RefillJob (Job ID: 7cd16058-419b-4fe9-beb4-aadac96243d9) from Inline(default) in 1.92ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7cd16058-419b-4fe9-beb4-aadac96243d9) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 Category Create (0.3ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-15 22:47:23.908379"], ["updated_at", "2018-10-15 22:47:23.908379"]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ca9b054a-bee2-47d6-8116-90d89024aafb] Performing Thermos::RefillJob (Job ID: ca9b054a-bee2-47d6-8116-90d89024aafb) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [ca9b054a-bee2-47d6-8116-90d89024aafb] Performed Thermos::RefillJob (Job ID: ca9b054a-bee2-47d6-8116-90d89024aafb) from Inline(default) in 0.04ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ca9b054a-bee2-47d6-8116-90d89024aafb) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Category Update (0.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.912880"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [7ef77be0-1b78-41a4-ae59-5c5197d22847] Performing Thermos::RefillJob (Job ID: 7ef77be0-1b78-41a4-ae59-5c5197d22847) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [7ef77be0-1b78-41a4-ae59-5c5197d22847] [Thermos::RebuildCacheJob] [61335673-ab33-4858-a026-f1300b9a4920] Performing Thermos::RebuildCacheJob (Job ID: 61335673-ab33-4858-a026-f1300b9a4920) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [7ef77be0-1b78-41a4-ae59-5c5197d22847] [Thermos::RebuildCacheJob] [61335673-ab33-4858-a026-f1300b9a4920] Performed Thermos::RebuildCacheJob (Job ID: 61335673-ab33-4858-a026-f1300b9a4920) from Inline(default) in 1.04ms [ActiveJob] [Thermos::RefillJob] [7ef77be0-1b78-41a4-ae59-5c5197d22847] Enqueued Thermos::RebuildCacheJob (Job ID: 61335673-ab33-4858-a026-f1300b9a4920) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [7ef77be0-1b78-41a4-ae59-5c5197d22847] Performed Thermos::RefillJob (Job ID: 7ef77be0-1b78-41a4-ae59-5c5197d22847) from Inline(default) in 1.64ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7ef77be0-1b78-41a4-ae59-5c5197d22847) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.5ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.921392"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6] Performing Thermos::RefillJob (Job ID: 0152229e-7a78-4b28-be00-0532d8c313a6) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6] [Thermos::RebuildCacheJob] [737c62ce-9487-4040-920c-4adf9f6c4522] Performing Thermos::RebuildCacheJob (Job ID: 737c62ce-9487-4040-920c-4adf9f6c4522) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6] [Thermos::RebuildCacheJob] [737c62ce-9487-4040-920c-4adf9f6c4522] Performed Thermos::RebuildCacheJob (Job ID: 737c62ce-9487-4040-920c-4adf9f6c4522) from Inline(default) in 0.67ms [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6] Enqueued Thermos::RebuildCacheJob (Job ID: 737c62ce-9487-4040-920c-4adf9f6c4522) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [0152229e-7a78-4b28-be00-0532d8c313a6] Performed Thermos::RefillJob (Job ID: 0152229e-7a78-4b28-be00-0532d8c313a6) from Inline(default) in 1.95ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0152229e-7a78-4b28-be00-0532d8c313a6) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.3ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-15 22:47:23.931494"], ["updated_at", "2018-10-15 22:47:23.931494"]] Category Update (0.2ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-15 22:47:23.932541"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [14a92541-2633-40e5-8726-0f7f0a44e587] Performing Thermos::RefillJob (Job ID: 14a92541-2633-40e5-8726-0f7f0a44e587) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [14a92541-2633-40e5-8726-0f7f0a44e587] [Thermos::RebuildCacheJob] [0ef346e6-7caa-4d06-b0bc-b53427baec86] Performing Thermos::RebuildCacheJob (Job ID: 0ef346e6-7caa-4d06-b0bc-b53427baec86) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [14a92541-2633-40e5-8726-0f7f0a44e587] [Thermos::RebuildCacheJob] [0ef346e6-7caa-4d06-b0bc-b53427baec86] Performed Thermos::RebuildCacheJob (Job ID: 0ef346e6-7caa-4d06-b0bc-b53427baec86) from Inline(default) in 1.15ms [ActiveJob] [Thermos::RefillJob] [14a92541-2633-40e5-8726-0f7f0a44e587] Enqueued Thermos::RebuildCacheJob (Job ID: 0ef346e6-7caa-4d06-b0bc-b53427baec86) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [14a92541-2633-40e5-8726-0f7f0a44e587] Performed Thermos::RefillJob (Job ID: 14a92541-2633-40e5-8726-0f7f0a44e587) from Inline(default) in 1.64ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 14a92541-2633-40e5-8726-0f7f0a44e587) to Inline(default) with arguments: #> [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb] Performing Thermos::RefillJob (Job ID: fac17e6e-7af8-4d0f-9da0-fb023576cffb) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb] [Thermos::RebuildCacheJob] [1e6f22d1-5a4d-4aab-a5e0-add0b3b120e3] Performing Thermos::RebuildCacheJob (Job ID: 1e6f22d1-5a4d-4aab-a5e0-add0b3b120e3) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb] [Thermos::RebuildCacheJob] [1e6f22d1-5a4d-4aab-a5e0-add0b3b120e3] Performed Thermos::RebuildCacheJob (Job ID: 1e6f22d1-5a4d-4aab-a5e0-add0b3b120e3) from Inline(default) in 0.89ms [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb] Enqueued Thermos::RebuildCacheJob (Job ID: 1e6f22d1-5a4d-4aab-a5e0-add0b3b120e3) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [fac17e6e-7af8-4d0f-9da0-fb023576cffb] Performed Thermos::RefillJob (Job ID: fac17e6e-7af8-4d0f-9da0-fb023576cffb) from Inline(default) in 3.73ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: fac17e6e-7af8-4d0f-9da0-fb023576cffb) to Inline(default) with arguments: #>  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (0.3ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-15 22:47:23.947235"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [0471df84-b002-4c33-b5d1-6bdfce03f390] Performing Thermos::RefillJob (Job ID: 0471df84-b002-4c33-b5d1-6bdfce03f390) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [0471df84-b002-4c33-b5d1-6bdfce03f390] [Thermos::RebuildCacheJob] [17646c84-011b-4326-bb65-38befbf6fe3d] Performing Thermos::RebuildCacheJob (Job ID: 17646c84-011b-4326-bb65-38befbf6fe3d) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [0471df84-b002-4c33-b5d1-6bdfce03f390] [Thermos::RebuildCacheJob] [17646c84-011b-4326-bb65-38befbf6fe3d] Performed Thermos::RebuildCacheJob (Job ID: 17646c84-011b-4326-bb65-38befbf6fe3d) from Inline(default) in 0.59ms [ActiveJob] [Thermos::RefillJob] [0471df84-b002-4c33-b5d1-6bdfce03f390] Enqueued Thermos::RebuildCacheJob (Job ID: 17646c84-011b-4326-bb65-38befbf6fe3d) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [0471df84-b002-4c33-b5d1-6bdfce03f390] Performed Thermos::RefillJob (Job ID: 0471df84-b002-4c33-b5d1-6bdfce03f390) from Inline(default) in 1.02ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0471df84-b002-4c33-b5d1-6bdfce03f390) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (0.0ms) begin transaction Fixture Delete (1.8ms) DELETE FROM "products" Fixture Delete (1.0ms) DELETE FROM "categories" Fixture Delete (0.5ms) DELETE FROM "category_items" Fixture Delete (0.5ms) DELETE FROM "stores" Fixture Insert (0.8ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-16 14:00:21.112152', '2018-10-16 14:00:21.112152', 469160771) Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-16 14:00:21.114283', '2018-10-16 14:00:21.114283', 322908140, 868874525) Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-16 14:00:21.116511', '2018-10-16 14:00:21.116511', 678302810, 322908140, 469160771) Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-16 14:00:21.118109', '2018-10-16 14:00:21.118109', 868874525)  (2.5ms) commit transaction  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_pre-builds_cache_for_new_primary_model_records ----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-16 14:00:21.138243"], ["updated_at", "2018-10-16 14:00:21.138243"]] [ActiveJob] Category Load (0.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Performing Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] [Thermos::RebuildCacheJob] [1bead20d-fa1f-4403-b681-efacc8d445de] Performing Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] [Thermos::RebuildCacheJob] [1bead20d-fa1f-4403-b681-efacc8d445de] Performed Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) from Inline(default) in 3.49ms [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Enqueued Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Performed Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) from Inline(default) in 10.26ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change --------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.6ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.186437"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Performing Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] [Thermos::RebuildCacheJob] [c8b3ea73-73bb-4345-bdf7-9d02b524335e] Performing Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] [Thermos::RebuildCacheJob] [c8b3ea73-73bb-4345-bdf7-9d02b524335e] Performed Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) from Inline(default) in 0.81ms [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Enqueued Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Performed Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) from Inline(default) in 16.91ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ThermosTest: test_keeps_the_cache_warm_using_keep_warm ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change ----------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Create (0.8ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.243339"], ["updated_at", "2018-10-16 14:00:21.243339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.2ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.250132"], ["id", 678302811]] [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947] Performing Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947] Performed Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) from Inline(default) in 3.13ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change ---------------------------------------------------------------------------------- Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Create (0.8ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-16 14:00:21.265676"], ["updated_at", "2018-10-16 14:00:21.265676"]] [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ea509e8b-4e06-43c4-ae1c-6cbfed741bec] Performing Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [ea509e8b-4e06-43c4-ae1c-6cbfed741bec] Performed Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) from Inline(default) in 0.28ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) to Inline(default) with arguments: #>  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Category Update (0.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.282813"], ["id", 322908140]] [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Performing Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] [Thermos::RebuildCacheJob] [a9e0dd01-7a19-481b-8edf-2e77d979dcb5] Performing Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] [Thermos::RebuildCacheJob] [a9e0dd01-7a19-481b-8edf-2e77d979dcb5] Performed Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) from Inline(default) in 2.55ms [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Enqueued Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Performed Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) from Inline(default) in 3.73ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change ------------------------------------------------------------------------------------------- Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (1.1ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.299518"], ["updated_at", "2018-10-16 14:00:21.299518"]] [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [bdb055a5-8add-4f52-82a6-5371f44fd19a] Performing Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [bdb055a5-8add-4f52-82a6-5371f44fd19a] Performed Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) from Inline(default) in 0.05ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.314428"], ["id", 469160772]] [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1] Performing Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1] Performed Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) from Inline(default) in 2.07ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id' -------------------------------------------------------------------------- Category Load (2.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (3.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.338177"], ["id", 322908140]] [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Performing Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] [Thermos::RebuildCacheJob] [dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f] Performing Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] [Thermos::RebuildCacheJob] [dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f] Performed Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) from Inline(default) in 4.49ms [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Enqueued Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Performed Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) from Inline(default) in 5.73ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.356022"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Performing Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0]  (0.2ms) SELECT "categories"."name" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]] [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] [Thermos::RebuildCacheJob] [b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd] Performing Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) from Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] [Thermos::RebuildCacheJob] [b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd] Performed Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) from Inline(default) in 1.75ms [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Enqueued Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) to Inline(default) with arguments: "key", "foo" [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Performed Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) from Inline(default) in 3.8ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records ---------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (0.9ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-16 14:00:21.416598"], ["updated_at", "2018-10-16 14:00:21.416598"]] Category Update (0.5ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-16 14:00:21.420098"], ["id", 322908140]] [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Performing Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] [Thermos::RebuildCacheJob] [be74976e-a631-4f74-a5dd-ca8614a54f47] Performing Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] [Thermos::RebuildCacheJob] [be74976e-a631-4f74-a5dd-ca8614a54f47] Performed Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) from Inline(default) in 2.09ms [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Enqueued Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Performed Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) from Inline(default) in 3.18ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) to Inline(default) with arguments: #> [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Performing Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] [Thermos::RebuildCacheJob] [19d948f2-74c2-405e-b3dc-a009b4cdeebb] Performing Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] [Thermos::RebuildCacheJob] [19d948f2-74c2-405e-b3dc-a009b4cdeebb] Performed Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) from Inline(default) in 1.21ms [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Enqueued Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Performed Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) from Inline(default) in 4.84ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_records -------------------------------------------------------------- Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 CategoryItem Create (0.8ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-16 14:00:21.480870"], ["updated_at", "2018-10-16 14:00:21.480870"]] [ActiveJob] CategoryItem Load (0.3ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Performing Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]] [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] [Thermos::RebuildCacheJob] [19d73530-ba01-4135-9aa4-cc25b69105f8] Performing Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] [Thermos::RebuildCacheJob] [19d73530-ba01-4135-9aa4-cc25b69105f8] Performed Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) from Inline(default) in 3.03ms [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Enqueued Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Performed Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) from Inline(default) in 5.17ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------- ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary --------------------------------------------------------------------------------------------------------------------------- Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Update (0.8ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.519725"], ["id", 469160771]] [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Performing Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] [Thermos::RebuildCacheJob] [1ca196a1-697a-497c-b9e7-54b7e355a619] Performing Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) from Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] [Thermos::RebuildCacheJob] [1ca196a1-697a-497c-b9e7-54b7e355a619] Performed Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) from Inline(default) in 11.72ms [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Enqueued Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) to Inline(default) with arguments: "product_key", 469160771 [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Performed Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) from Inline(default) in 12.46ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records ---------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Product Create (0.6ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.568097"], ["updated_at", "2018-10-16 14:00:21.568097"]] CategoryItem Create (0.6ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-16 14:00:21.569757"], ["updated_at", "2018-10-16 14:00:21.569757"]] [ActiveJob] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [a8cf1e48-f179-4c3c-993f-0e961a00d9ad] Performing Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [a8cf1e48-f179-4c3c-993f-0e961a00d9ad] Performed Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) from Inline(default) in 0.06ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) to Inline(default) with arguments: #> [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Performing Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]] [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] [Thermos::RebuildCacheJob] [b3db99c7-2799-4507-93ea-b1c9f12e6e78] Performing Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] [Thermos::RebuildCacheJob] [b3db99c7-2799-4507-93ea-b1c9f12e6e78] Performed Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) from Inline(default) in 5.85ms [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Enqueued Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Performed Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) from Inline(default) in 10.0ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) to Inline(default) with arguments: #>  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_has_many_model_change ------------------------------------------------------------- Category Load (1.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 CategoryItem Update (0.4ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.605297"], ["id", 678302810]] [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Performing Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302810]] [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] [Thermos::RebuildCacheJob] [50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41] Performing Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] [Thermos::RebuildCacheJob] [50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41] Performed Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) from Inline(default) in 3.18ms [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Enqueued Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Performed Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) from Inline(default) in 7.18ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change ------------------------------------------------------------------------------------- Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Create (4.9ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.636642"], ["updated_at", "2018-10-16 14:00:21.636642"]] [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [174e998a-9580-4e27-aad4-8d7295a8ff7a] Performing Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [174e998a-9580-4e27-aad4-8d7295a8ff7a] Performed Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) from Inline(default) in 0.07ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.657090"], ["id", 868874526]] [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82] Performing Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82]  (0.3ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]] [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82] Performed Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) from Inline(default) in 6.08ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change --------------------------------------------------------------- Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] Store Load (0.3ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.683268"], ["id", 868874525]] [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Performing Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874525]] [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] [Thermos::RebuildCacheJob] [c2e56da2-18ec-4e60-88a1-4c276aa96434] Performing Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] [Thermos::RebuildCacheJob] [c2e56da2-18ec-4e60-88a1-4c276aa96434] Performed Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) from Inline(default) in 1.59ms [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Enqueued Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Performed Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) from Inline(default) in 4.75ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink ---------------------------------------------------------  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ ThermosTest: test_rebuilds_the_cache_on_primary_model_change ------------------------------------------------------------ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Category Update (2.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.724960"], ["id", 322908140]] [ActiveJob] Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]] [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Performing Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) from Inline(default) with arguments: #> [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] [Thermos::RebuildCacheJob] [cea4027e-1169-4523-97b6-2a6cf6bc00dc] Performing Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) from Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] [Thermos::RebuildCacheJob] [cea4027e-1169-4523-97b6-2a6cf6bc00dc] Performed Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) from Inline(default) in 1.15ms [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Enqueued Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) to Inline(default) with arguments: "key", 322908140 [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Performed Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) from Inline(default) in 4.02ms [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) to Inline(default) with arguments: #>  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction