thermos 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thermos/notifier.rb +1 -1
- data/lib/thermos/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +31 -0
- data/test/dummy/log/test.log +340 -0
- data/test/thermos_test.rb +24 -0
- metadata +49 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e62c552fe46de749b2a3fb48bf0acd49c0fe8380cb0aae5cc1a2705251e737a1
|
4
|
+
data.tar.gz: 38aa4f854df16db68a6cec1a5ebef0666b5cc8bf2f20dddf997f818dc8a28cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e40a19c56af0d4001723cbdca6528d00e8ddd1524a3d117a1e83314dac8f6480fbda3423419474249990424349ec36ffa35db8dc6b01d0eb67f7f28df580578d
|
7
|
+
data.tar.gz: b45a8691d82c7b66ae7cc0c5c5aeb00fe1fdd41d75f6cc99ee8812bace09e0f6e4c58a522cfa367a20890872eff214413ca0f63338674fc94aa16ed428902db0
|
data/lib/thermos/notifier.rb
CHANGED
data/lib/thermos/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
DEPRECATION WARNING: `.represent_boolean_as_integer=` is now always true, so setting this is deprecated and will be removed in Rails 6.1. (called from load at /Users/athal/.asdf/installs/ruby/2.5.6/bin/rake:23)
|
2
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
5
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
6
|
+
Migrating to CreateCategories (20160325214744)
|
7
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "store_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
9
|
+
[1m[36mprimary::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325214744"]]
|
10
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
11
|
+
Migrating to CreateProducts (20160325214849)
|
12
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
14
|
+
[1m[36mprimary::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325214849"]]
|
15
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
16
|
+
Migrating to CreateCategoryItems (20160325220006)
|
17
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE 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)[0m
|
19
|
+
[1m[36mprimary::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325220006"]]
|
20
|
+
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
21
|
+
Migrating to CreateStores (20160326174530)
|
22
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
23
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "stores" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
24
|
+
[1m[36mprimary::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160326174530"]]
|
25
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
26
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
27
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
28
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-04-30 15:04:00.698654"], ["updated_at", "2020-04-30 15:04:00.698654"]]
|
29
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
30
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
31
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
@@ -0,0 +1,340 @@
|
|
1
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
5
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m
|
6
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "store_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
7
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_items"[0m
|
8
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
|
9
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "products"[0m
|
10
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
11
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "stores"[0m
|
12
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "stores" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
13
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
14
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
15
|
+
[1m[35m (2.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20160326174530)[0m
|
16
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
17
|
+
(20160325214744),
|
18
|
+
(20160325214849),
|
19
|
+
(20160325220006);
|
20
|
+
|
21
|
+
[0m
|
22
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
23
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
24
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
25
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2020-04-30 15:04:05.288707"], ["updated_at", "2020-04-30 15:04:05.288707"]]
|
26
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
27
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
28
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
29
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "134e2f83987f60f7f5b4e080f9158b942de36d8e"], ["created_at", "2020-04-30 15:04:05.294044"], ["updated_at", "2020-04-30 15:04:05.294044"]]
|
31
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
32
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
33
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
34
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
35
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
36
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
37
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
38
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
39
|
+
[1m[36mFixtures Load (0.8ms)[0m [1m[31mDELETE FROM "products";
|
40
|
+
DELETE FROM "categories";
|
41
|
+
DELETE FROM "category_items";
|
42
|
+
DELETE FROM "stores";
|
43
|
+
INSERT INTO "products" ("id", "name", "created_at", "updated_at") VALUES (469160771, 'glove', '2020-04-30 15:04:05.387008', '2020-04-30 15:04:05.387008');
|
44
|
+
INSERT INTO "categories" ("id", "name", "store_id", "created_at", "updated_at") VALUES (322908140, 'baseball', 868874525, '2020-04-30 15:04:05.388913', '2020-04-30 15:04:05.388913');
|
45
|
+
INSERT INTO "category_items" ("id", "name", "category_id", "product_id", "created_at", "updated_at") VALUES (678302810, 'baseball glove', 322908140, 469160771, '2020-04-30 15:04:05.390505', '2020-04-30 15:04:05.390505');
|
46
|
+
INSERT INTO "stores" ("id", "name", "created_at", "updated_at") VALUES (868874525, 'sports store', '2020-04-30 15:04:05.393035', '2020-04-30 15:04:05.393035')[0m
|
47
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
48
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
49
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
50
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51
|
+
---------------------------------------------------------
|
52
|
+
ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink
|
53
|
+
---------------------------------------------------------
|
54
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
55
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
56
|
+
-------------------------------------------------------------------------------------------
|
57
|
+
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change
|
58
|
+
-------------------------------------------------------------------------------------------
|
59
|
+
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
60
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
61
|
+
[1m[36mProduct Create (0.6ms)[0m [1m[32mINSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.413054"], ["updated_at", "2020-04-30 15:04:05.413054"]]
|
62
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64
|
+
[1m[36mProduct Update (0.1ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.418895"], ["id", 469160772]]
|
65
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66
|
+
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160772], ["LIMIT", 1]]
|
67
|
+
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] Performing Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19d20d50 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
68
|
+
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] [1m[35m (0.2ms)[0m [1m[34mSELECT "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" = ?[0m [["id", 469160772]]
|
69
|
+
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] Performed Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) from Inline(default) in 12.52ms
|
70
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) to Inline(default) with arguments: #<GlobalID:0x00007feb1adb53f0 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
71
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
72
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
73
|
+
------------------------------------------------------------
|
74
|
+
ThermosTest: test_rebuilds_the_cache_on_primary_model_change
|
75
|
+
------------------------------------------------------------
|
76
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
77
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
78
|
+
[1m[36mCategory Update (0.3ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.523306"], ["id", 322908140]]
|
79
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
80
|
+
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
81
|
+
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Performing Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19459550 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
82
|
+
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] [Thermos::RebuildCacheJob] [ce509247-2009-4177-be71-68398f6c465b] Performing Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
83
|
+
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] [Thermos::RebuildCacheJob] [ce509247-2009-4177-be71-68398f6c465b] Performed Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) from Inline(default) in 0.75ms
|
84
|
+
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Enqueued Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) to Inline(default) with arguments: "key", 322908140
|
85
|
+
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Performed Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) from Inline(default) in 1.41ms
|
86
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) to Inline(default) with arguments: #<GlobalID:0x00007feb19cd9f40 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
87
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
88
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
89
|
+
----------------------------------------------------------------------------------
|
90
|
+
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change
|
91
|
+
----------------------------------------------------------------------------------
|
92
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
93
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
94
|
+
[1m[36mCategory Create (0.4ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "bar"], ["created_at", "2020-04-30 15:04:05.531148"], ["updated_at", "2020-04-30 15:04:05.531148"]]
|
95
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
96
|
+
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908141], ["LIMIT", 1]]
|
97
|
+
[ActiveJob] [Thermos::RefillJob] [383f3a3e-4c51-4b39-8696-9e8ba8418f1a] Performing Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad9f6b8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
98
|
+
[ActiveJob] [Thermos::RefillJob] [383f3a3e-4c51-4b39-8696-9e8ba8418f1a] Performed Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) from Inline(default) in 0.04ms
|
99
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad9d4f8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
100
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
101
|
+
[1m[36mCategory Update (0.1ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.535626"], ["id", 322908140]]
|
102
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
103
|
+
[ActiveJob] [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
104
|
+
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Performing Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19431050 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
105
|
+
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] [Thermos::RebuildCacheJob] [c1a54668-583b-4bce-9325-134aa731bed6] Performing Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
106
|
+
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] [Thermos::RebuildCacheJob] [c1a54668-583b-4bce-9325-134aa731bed6] Performed Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) from Inline(default) in 1.4ms
|
107
|
+
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Enqueued Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) to Inline(default) with arguments: "key", 322908140
|
108
|
+
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Performed Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) from Inline(default) in 1.95ms
|
109
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad85588 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
110
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
111
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
112
|
+
----------------------------------------------------------------
|
113
|
+
ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records
|
114
|
+
----------------------------------------------------------------
|
115
|
+
[1m[36mCategory Load (0.4ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
116
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
117
|
+
[1m[36mStore Create (0.6ms)[0m [1m[32mINSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "foo"], ["created_at", "2020-04-30 15:04:05.563671"], ["updated_at", "2020-04-30 15:04:05.563671"]]
|
118
|
+
[1m[36mCategory Update (0.3ms)[0m [1m[33mUPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["store_id", 868874526], ["updated_at", "2020-04-30 15:04:05.566444"], ["id", 322908140]]
|
119
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
120
|
+
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
121
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Performing Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad2c438 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
122
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874526]]
|
123
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [Thermos::RebuildCacheJob] [c6b0d4b1-079c-49f8-8807-343219255b8a] Performing Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
124
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [Thermos::RebuildCacheJob] [c6b0d4b1-079c-49f8-8807-343219255b8a] Performed Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) from Inline(default) in 1.7ms
|
125
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Enqueued Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) to Inline(default) with arguments: "key", 322908140
|
126
|
+
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Performed Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) from Inline(default) in 3.82ms
|
127
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) to Inline(default) with arguments: #<GlobalID:0x00007feb193b05e0 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
128
|
+
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
129
|
+
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Performing Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a2c4360 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
130
|
+
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] [Thermos::RebuildCacheJob] [bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4] Performing Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
131
|
+
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] [Thermos::RebuildCacheJob] [bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4] Performed Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) from Inline(default) in 1.31ms
|
132
|
+
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Enqueued Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) to Inline(default) with arguments: "key", 322908140
|
133
|
+
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Performed Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) from Inline(default) in 2.74ms
|
134
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad251d8 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
135
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
136
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
137
|
+
--------------------------------------------------------------------------
|
138
|
+
ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id'
|
139
|
+
--------------------------------------------------------------------------
|
140
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
141
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
142
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
143
|
+
[1m[36mCategory Update (0.7ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.584873"], ["id", 322908140]]
|
144
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
145
|
+
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
146
|
+
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Performing Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad0c6b0 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
147
|
+
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] [Thermos::RebuildCacheJob] [f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0] Performing Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
148
|
+
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] [Thermos::RebuildCacheJob] [f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0] Performed Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) from Inline(default) in 1.42ms
|
149
|
+
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Enqueued Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) to Inline(default) with arguments: "key", "foo"
|
150
|
+
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Performed Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) from Inline(default) in 1.91ms
|
151
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) to Inline(default) with arguments: #<GlobalID:0x00007feb19c72d40 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
152
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
153
|
+
[1m[36mProduct Update (0.2ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.591253"], ["id", 469160771]]
|
154
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
155
|
+
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
156
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Performing Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a2ae8d0 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
157
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [1m[35m (0.1ms)[0m [1m[34mSELECT "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" = ?[0m [["id", 469160771]]
|
158
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [Thermos::RebuildCacheJob] [da9431d7-b3a5-45aa-83b5-4d522b7a5441] Performing Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
159
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [Thermos::RebuildCacheJob] [da9431d7-b3a5-45aa-83b5-4d522b7a5441] Performed Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) from Inline(default) in 0.77ms
|
160
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Enqueued Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) to Inline(default) with arguments: "key", "foo"
|
161
|
+
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Performed Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) from Inline(default) in 2.4ms
|
162
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) to Inline(default) with arguments: #<GlobalID:0x00007feb1a2a4308 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
163
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
164
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
165
|
+
---------------------------------------------------------------------
|
166
|
+
ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change
|
167
|
+
---------------------------------------------------------------------
|
168
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
169
|
+
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
170
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
171
|
+
[1m[36mProduct Update (0.7ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.602715"], ["id", 469160771]]
|
172
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
173
|
+
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
174
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Performing Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19c514b0 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
175
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [1m[35m (0.0ms)[0m [1m[34mSELECT "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" = ?[0m [["id", 469160771]]
|
176
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [Thermos::RebuildCacheJob] [5ec388f6-656d-4688-9d91-b1cf7f3018e3] Performing Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
177
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [Thermos::RebuildCacheJob] [5ec388f6-656d-4688-9d91-b1cf7f3018e3] Performed Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) from Inline(default) in 0.81ms
|
178
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Enqueued Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) to Inline(default) with arguments: "key", 322908140
|
179
|
+
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Performed Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) from Inline(default) in 1.98ms
|
180
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) to Inline(default) with arguments: #<GlobalID:0x00007feb1ace4db8 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
181
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
182
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
183
|
+
------------------------------------------------------
|
184
|
+
ThermosTest: test_keeps_the_cache_warm_using_keep_warm
|
185
|
+
------------------------------------------------------
|
186
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
187
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
188
|
+
----------------------------------------------------------------------
|
189
|
+
ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records
|
190
|
+
----------------------------------------------------------------------
|
191
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
192
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
193
|
+
[1m[36mProduct Create (0.5ms)[0m [1m[32mINSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.630441"], ["updated_at", "2020-04-30 15:04:05.630441"]]
|
194
|
+
[1m[36mCategoryItem Create (0.2ms)[0m [1m[32mINSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2020-04-30 15:04:05.631920"], ["updated_at", "2020-04-30 15:04:05.631920"]]
|
195
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
196
|
+
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160772], ["LIMIT", 1]]
|
197
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Performing Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb193221f0 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
198
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [1m[35m (0.1ms)[0m [1m[34mSELECT "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" = ?[0m [["id", 469160772]]
|
199
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [Thermos::RebuildCacheJob] [cb03a152-8031-42c2-a249-ce85a40b4761] Performing Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
200
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [Thermos::RebuildCacheJob] [cb03a152-8031-42c2-a249-ce85a40b4761] Performed Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) from Inline(default) in 1.55ms
|
201
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Enqueued Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) to Inline(default) with arguments: "key", 322908140
|
202
|
+
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Performed Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) from Inline(default) in 3.39ms
|
203
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) to Inline(default) with arguments: #<GlobalID:0x00007feb1a25c6e8 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
204
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
205
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
206
|
+
---------------------------------------------------------------
|
207
|
+
ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change
|
208
|
+
---------------------------------------------------------------
|
209
|
+
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
210
|
+
[1m[36mStore Load (0.2ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874525], ["LIMIT", 1]]
|
211
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
212
|
+
[1m[36mStore Update (0.3ms)[0m [1m[33mUPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.645579"], ["id", 868874525]]
|
213
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
214
|
+
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874525], ["LIMIT", 1]]
|
215
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Performing Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ac0c3f0 @uri=#<URI::GID gid://dummy/Store/868874525>>
|
216
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874525]]
|
217
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [Thermos::RebuildCacheJob] [a7bf9c33-9037-4084-bbd9-fff6f854717f] Performing Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
218
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [Thermos::RebuildCacheJob] [a7bf9c33-9037-4084-bbd9-fff6f854717f] Performed Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) from Inline(default) in 0.86ms
|
219
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Enqueued Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) to Inline(default) with arguments: "key", 322908140
|
220
|
+
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Performed Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) from Inline(default) in 2.32ms
|
221
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) to Inline(default) with arguments: #<GlobalID:0x00007feb1abf6938 @uri=#<URI::GID gid://dummy/Store/868874525>>
|
222
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
223
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
224
|
+
-------------------------------------------------------------------------------------
|
225
|
+
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change
|
226
|
+
-------------------------------------------------------------------------------------
|
227
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
228
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[36mStore Create (0.4ms)[0m [1m[32mINSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.655344"], ["updated_at", "2020-04-30 15:04:05.655344"]]
|
230
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
232
|
+
[ActiveJob] [Thermos::RefillJob] [4296e01e-d6eb-4aa8-9199-355bdb518569] Performing Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1abcd1c8 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
233
|
+
[ActiveJob] [Thermos::RefillJob] [4296e01e-d6eb-4aa8-9199-355bdb518569] Performed Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) from Inline(default) in 0.05ms
|
234
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) to Inline(default) with arguments: #<GlobalID:0x00007feb1abbfe38 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
235
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
236
|
+
[1m[36mStore Update (0.1ms)[0m [1m[33mUPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.660458"], ["id", 868874526]]
|
237
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
238
|
+
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
239
|
+
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] Performing Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ab8dd70 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
240
|
+
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874526]]
|
241
|
+
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] Performed Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) from Inline(default) in 0.92ms
|
242
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) to Inline(default) with arguments: #<GlobalID:0x00007feb19299558 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
243
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
244
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
245
|
+
--------------------------------------------------------------
|
246
|
+
ThermosTest: test_re-builds_the_cache_for_new_has_many_records
|
247
|
+
--------------------------------------------------------------
|
248
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
249
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
250
|
+
[1m[36mCategoryItem Create (0.5ms)[0m [1m[32mINSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["category_id", 322908140], ["created_at", "2020-04-30 15:04:05.669235"], ["updated_at", "2020-04-30 15:04:05.669235"]]
|
251
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
252
|
+
[ActiveJob] [1m[36mCategoryItem Load (0.2ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
253
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Performing Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19b825e8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
254
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302811]]
|
255
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [Thermos::RebuildCacheJob] [d0df963d-c7bc-44b3-84a6-59115a455682] Performing Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
256
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [Thermos::RebuildCacheJob] [d0df963d-c7bc-44b3-84a6-59115a455682] Performed Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) from Inline(default) in 2.04ms
|
257
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Enqueued Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) to Inline(default) with arguments: "key", 322908140
|
258
|
+
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Performed Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) from Inline(default) in 3.58ms
|
259
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) to Inline(default) with arguments: #<GlobalID:0x00007feb1ab1d930 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
260
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
261
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
|
+
---------------------------------------------------------------------------------------------------------------------------
|
263
|
+
ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary
|
264
|
+
---------------------------------------------------------------------------------------------------------------------------
|
265
|
+
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
266
|
+
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
267
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
268
|
+
[1m[36mProduct Update (0.4ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.681843"], ["id", 469160771]]
|
269
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
270
|
+
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
271
|
+
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Performing Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19ace548 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
272
|
+
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] [Thermos::RebuildCacheJob] [c0899b8b-b9c3-4177-8a81-126eb7a3ed91] Performing Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "product_key", 469160771
|
273
|
+
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] [Thermos::RebuildCacheJob] [c0899b8b-b9c3-4177-8a81-126eb7a3ed91] Performed Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) from Inline(default) in 2.06ms
|
274
|
+
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Enqueued Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) to Inline(default) with arguments: "product_key", 469160771
|
275
|
+
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Performed Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) from Inline(default) in 2.89ms
|
276
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) to Inline(default) with arguments: #<GlobalID:0x00007feb19ab6970 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
277
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
278
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
279
|
+
-----------------------------------------------------------------------------------
|
280
|
+
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change
|
281
|
+
-----------------------------------------------------------------------------------
|
282
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
283
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
284
|
+
[1m[36mCategoryItem Create (0.4ms)[0m [1m[32mINSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.692625"], ["updated_at", "2020-04-30 15:04:05.692625"]]
|
285
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
286
|
+
[ActiveJob] [1m[36mCategoryItem Load (0.1ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
287
|
+
[ActiveJob] [Thermos::RefillJob] [ce432d2c-a837-4e0d-9599-a5703e01ac6e] Performing Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1aa44ba8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
288
|
+
[ActiveJob] [Thermos::RefillJob] [ce432d2c-a837-4e0d-9599-a5703e01ac6e] Performed Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) from Inline(default) in 0.06ms
|
289
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) to Inline(default) with arguments: #<GlobalID:0x00007feb1917aa28 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
290
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
291
|
+
[1m[36mCategoryItem Update (0.1ms)[0m [1m[33mUPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.697602"], ["id", 678302811]]
|
292
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
293
|
+
[ActiveJob] [1m[36mCategoryItem Load (0.1ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
294
|
+
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] Performing Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a99f248 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
295
|
+
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302811]]
|
296
|
+
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] Performed Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) from Inline(default) in 0.84ms
|
297
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) to Inline(default) with arguments: #<GlobalID:0x00007feb1996e748 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
298
|
+
[1m[35m (3.9ms)[0m [1m[31mrollback transaction[0m
|
299
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
300
|
+
--------------------------------------------------------------------------------
|
301
|
+
ThermosTest: test_does_not_rebuild_the_cache_on_rolled_back_primary_model_change
|
302
|
+
--------------------------------------------------------------------------------
|
303
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
304
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
305
|
+
[1m[36mCategory Update (0.4ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.710144"], ["id", 322908140]]
|
306
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
307
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
308
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
309
|
+
-------------------------------------------------------------
|
310
|
+
ThermosTest: test_rebuilds_the_cache_on_has_many_model_change
|
311
|
+
-------------------------------------------------------------
|
312
|
+
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
313
|
+
[1m[36mCategoryItem Load (0.0ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302810], ["LIMIT", 1]]
|
314
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
315
|
+
[1m[36mCategoryItem Update (0.8ms)[0m [1m[33mUPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.716752"], ["id", 678302810]]
|
316
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
317
|
+
[ActiveJob] [1m[36mCategoryItem Load (0.0ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302810], ["LIMIT", 1]]
|
318
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Performing Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb194c28c0 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
|
319
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [1m[35m (0.0ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302810]]
|
320
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [Thermos::RebuildCacheJob] [ad819419-1502-40a6-9723-9e303d6d144b] Performing Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
321
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [Thermos::RebuildCacheJob] [ad819419-1502-40a6-9723-9e303d6d144b] Performed Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) from Inline(default) in 0.69ms
|
322
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Enqueued Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) to Inline(default) with arguments: "key", 322908140
|
323
|
+
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Performed Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) from Inline(default) in 1.63ms
|
324
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) to Inline(default) with arguments: #<GlobalID:0x00007feb194b8438 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
|
325
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
326
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
327
|
+
----------------------------------------------------------------
|
328
|
+
ThermosTest: test_pre-builds_cache_for_new_primary_model_records
|
329
|
+
----------------------------------------------------------------
|
330
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
331
|
+
[1m[36mCategory Create (0.5ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "foo"], ["created_at", "2020-04-30 15:04:05.723711"], ["updated_at", "2020-04-30 15:04:05.723711"]]
|
332
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
333
|
+
[ActiveJob] [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908141], ["LIMIT", 1]]
|
334
|
+
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Performing Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ae14a80 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
335
|
+
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] [Thermos::RebuildCacheJob] [d5916426-2b2a-4a73-aae8-b0e415bf8822] Performing Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
336
|
+
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] [Thermos::RebuildCacheJob] [d5916426-2b2a-4a73-aae8-b0e415bf8822] Performed Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) from Inline(default) in 1.98ms
|
337
|
+
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Enqueued Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) to Inline(default) with arguments: "key", "foo"
|
338
|
+
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Performed Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) from Inline(default) in 2.59ms
|
339
|
+
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) to Inline(default) with arguments: #<GlobalID:0x00007feb1a316ea8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
340
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
data/test/thermos_test.rb
CHANGED
@@ -65,6 +65,30 @@ class ThermosTest < ActiveSupport::TestCase
|
|
65
65
|
assert_raises(MockExpectationError) { mock.verify }
|
66
66
|
end
|
67
67
|
|
68
|
+
test "does not rebuild the cache on rolled back primary model change" do
|
69
|
+
mock = Minitest::Mock.new
|
70
|
+
category = categories(:baseball)
|
71
|
+
|
72
|
+
Thermos.fill(key: "key", model: Category) do |id|
|
73
|
+
mock.call(id)
|
74
|
+
end
|
75
|
+
|
76
|
+
mock.expect(:call, 1, [category.id])
|
77
|
+
assert_equal 1, Thermos.drink(key: "key", id: category.id)
|
78
|
+
mock.verify
|
79
|
+
|
80
|
+
mock.expect(:call, 2, [category.id])
|
81
|
+
ActiveRecord::Base.transaction do
|
82
|
+
category.update!(name: "foo")
|
83
|
+
raise ActiveRecord::Rollback
|
84
|
+
end
|
85
|
+
assert_raises(MockExpectationError) { mock.verify }
|
86
|
+
|
87
|
+
mock.expect(:call, 3, [category.id])
|
88
|
+
assert_equal 1, Thermos.drink(key: "key", id: category.id)
|
89
|
+
assert_raises(MockExpectationError) { mock.verify }
|
90
|
+
end
|
91
|
+
|
68
92
|
test "does not rebuild the cache for an unrelated primary model change" do
|
69
93
|
mock = Minitest::Mock.new
|
70
94
|
category = categories(:baseball)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thermos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Thal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,11 +106,15 @@ files:
|
|
106
106
|
- test/dummy/config/locales/en.yml
|
107
107
|
- test/dummy/config/routes.rb
|
108
108
|
- test/dummy/config/secrets.yml
|
109
|
+
- test/dummy/db/development.sqlite3
|
109
110
|
- test/dummy/db/migrate/20160325214744_create_categories.rb
|
110
111
|
- test/dummy/db/migrate/20160325214849_create_products.rb
|
111
112
|
- test/dummy/db/migrate/20160325220006_create_category_items.rb
|
112
113
|
- test/dummy/db/migrate/20160326174530_create_stores.rb
|
113
114
|
- test/dummy/db/schema.rb
|
115
|
+
- test/dummy/db/test.sqlite3
|
116
|
+
- test/dummy/log/development.log
|
117
|
+
- test/dummy/log/test.log
|
114
118
|
- test/dummy/public/404.html
|
115
119
|
- test/dummy/public/422.html
|
116
120
|
- test/dummy/public/500.html
|
@@ -140,58 +144,62 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
144
|
- !ruby/object:Gem::Version
|
141
145
|
version: '0'
|
142
146
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.1.2
|
144
148
|
signing_key:
|
145
149
|
specification_version: 4
|
146
150
|
summary: Always-warm, auto-rebuilding rails caching without timers or touching.
|
147
151
|
test_files:
|
148
|
-
- test/fixtures/category_items.yml
|
149
|
-
- test/fixtures/categories.yml
|
150
|
-
- test/fixtures/stores.yml
|
151
|
-
- test/fixtures/products.yml
|
152
|
-
- test/dummy/config/application.rb
|
153
|
-
- test/dummy/config/boot.rb
|
154
|
-
- test/dummy/config/routes.rb
|
155
|
-
- test/dummy/config/locales/en.yml
|
156
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
157
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
158
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
159
|
-
- test/dummy/config/initializers/session_store.rb
|
160
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
161
|
-
- test/dummy/config/initializers/assets.rb
|
162
|
-
- test/dummy/config/initializers/inflections.rb
|
163
|
-
- test/dummy/config/initializers/mime_types.rb
|
164
|
-
- test/dummy/config/secrets.yml
|
165
|
-
- test/dummy/config/environment.rb
|
166
|
-
- test/dummy/config/database.yml
|
167
|
-
- test/dummy/config/environments/development.rb
|
168
|
-
- test/dummy/config/environments/production.rb
|
169
|
-
- test/dummy/config/environments/test.rb
|
170
|
-
- test/dummy/bin/setup
|
171
|
-
- test/dummy/bin/rails
|
172
|
-
- test/dummy/bin/bundle
|
173
|
-
- test/dummy/bin/rake
|
174
|
-
- test/dummy/app/views/layouts/application.html.erb
|
175
|
-
- test/dummy/app/models/store.rb
|
176
152
|
- test/dummy/app/models/category.rb
|
177
153
|
- test/dummy/app/models/product.rb
|
178
154
|
- test/dummy/app/models/category_item.rb
|
155
|
+
- test/dummy/app/models/store.rb
|
156
|
+
- test/dummy/app/controllers/application_controller.rb
|
157
|
+
- test/dummy/app/views/layouts/application.html.erb
|
179
158
|
- test/dummy/app/assets/config/manifest.js
|
180
|
-
- test/dummy/app/assets/stylesheets/application.css
|
181
159
|
- test/dummy/app/assets/javascripts/application.js
|
182
|
-
- test/dummy/app/
|
160
|
+
- test/dummy/app/assets/stylesheets/application.css
|
183
161
|
- test/dummy/app/helpers/application_helper.rb
|
162
|
+
- test/dummy/bin/rake
|
163
|
+
- test/dummy/bin/setup
|
164
|
+
- test/dummy/bin/bundle
|
165
|
+
- test/dummy/bin/rails
|
166
|
+
- test/dummy/config/secrets.yml
|
167
|
+
- test/dummy/config/routes.rb
|
168
|
+
- test/dummy/config/locales/en.yml
|
169
|
+
- test/dummy/config/environments/production.rb
|
170
|
+
- test/dummy/config/environments/development.rb
|
171
|
+
- test/dummy/config/environments/test.rb
|
172
|
+
- test/dummy/config/environment.rb
|
173
|
+
- test/dummy/config/application.rb
|
174
|
+
- test/dummy/config/database.yml
|
175
|
+
- test/dummy/config/boot.rb
|
176
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
177
|
+
- test/dummy/config/initializers/mime_types.rb
|
178
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
179
|
+
- test/dummy/config/initializers/session_store.rb
|
180
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
181
|
+
- test/dummy/config/initializers/assets.rb
|
182
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
183
|
+
- test/dummy/config/initializers/inflections.rb
|
184
|
+
- test/dummy/config.ru
|
185
|
+
- test/dummy/Rakefile
|
186
|
+
- test/dummy/public/favicon.ico
|
187
|
+
- test/dummy/public/422.html
|
188
|
+
- test/dummy/public/500.html
|
189
|
+
- test/dummy/public/404.html
|
184
190
|
- test/dummy/db/schema.rb
|
191
|
+
- test/dummy/db/test.sqlite3
|
185
192
|
- test/dummy/db/migrate/20160325214849_create_products.rb
|
186
|
-
- test/dummy/db/migrate/20160325220006_create_category_items.rb
|
187
|
-
- test/dummy/db/migrate/20160325214744_create_categories.rb
|
188
193
|
- test/dummy/db/migrate/20160326174530_create_stores.rb
|
189
|
-
- test/dummy/
|
190
|
-
- test/dummy/
|
191
|
-
- test/dummy/
|
192
|
-
- test/dummy/
|
193
|
-
- test/dummy/
|
194
|
-
- test/dummy/Rakefile
|
194
|
+
- test/dummy/db/migrate/20160325214744_create_categories.rb
|
195
|
+
- test/dummy/db/migrate/20160325220006_create_category_items.rb
|
196
|
+
- test/dummy/db/development.sqlite3
|
197
|
+
- test/dummy/log/test.log
|
198
|
+
- test/dummy/log/development.log
|
195
199
|
- test/dummy/README.rdoc
|
196
200
|
- test/thermos_test.rb
|
201
|
+
- test/fixtures/products.yml
|
202
|
+
- test/fixtures/categories.yml
|
203
|
+
- test/fixtures/category_items.yml
|
204
|
+
- test/fixtures/stores.yml
|
197
205
|
- test/test_helper.rb
|