journaled 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/journaled/delivery.rb +18 -6
- data/lib/journaled/version.rb +1 -1
- data/spec/dummy/log/test.log +508 -0
- data/spec/models/journaled/delivery_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9831027cd6b0766d945a3db6cc8dac0b6d19164a7e3aa17e486ab7722c4d0604
|
4
|
+
data.tar.gz: cb0d67d8a20b54da2c0508da1248877821ba7d2440f6af198ccea781640a2bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18cb8c947d9a123fd28b42aa530b8499e27f713e25e7f01805ff3ee037b571aae64f8ce2b82b4243d9ad970389c377254acf1e3dc20e5abd18814051cfabe65
|
7
|
+
data.tar.gz: 94a7410ee321087748fec1e32e2c06100027eccc083f8af5dd05922372ef45b4ac368683352b4f593e5999ce185e417524d6ed8d529f5149a551379efbeb75e6
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ app's Gemfile.
|
|
67
67
|
|
68
68
|
You may also specify a role that the Kinesis AWS client can assume:
|
69
69
|
|
70
|
-
* `
|
70
|
+
* `JOURNALED_IAM_ROLE_ARN`
|
71
71
|
|
72
72
|
The AWS principal whose credentials are in the environment will need to be allowed to assume this role.
|
73
73
|
|
@@ -26,7 +26,7 @@ class Journaled::Delivery
|
|
26
26
|
{
|
27
27
|
region: ENV.fetch('AWS_DEFAULT_REGION', DEFAULT_REGION),
|
28
28
|
retry_limit: 0
|
29
|
-
}.merge(
|
29
|
+
}.merge(credentials)
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
@@ -42,10 +42,16 @@ class Journaled::Delivery
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def kinesis_client
|
45
|
-
|
46
|
-
|
45
|
+
Aws::Kinesis::Client.new(kinesis_client_config)
|
46
|
+
end
|
47
|
+
|
48
|
+
def credentials
|
49
|
+
if ENV.key?('JOURNALED_IAM_ROLE_ARN')
|
50
|
+
{
|
51
|
+
credentials: iam_assume_role_credentials
|
52
|
+
}
|
47
53
|
else
|
48
|
-
|
54
|
+
legacy_credentials_hash_if_present
|
49
55
|
end
|
50
56
|
end
|
51
57
|
|
@@ -60,10 +66,16 @@ class Journaled::Delivery
|
|
60
66
|
end
|
61
67
|
end
|
62
68
|
|
69
|
+
def sts_client
|
70
|
+
Aws::STS::Client.new({
|
71
|
+
region: ENV.fetch('AWS_DEFAULT_REGION', DEFAULT_REGION)
|
72
|
+
}.merge(legacy_credentials_hash_if_present))
|
73
|
+
end
|
74
|
+
|
63
75
|
def iam_assume_role_credentials
|
64
76
|
@iam_assume_role_credentials ||= Aws::AssumeRoleCredentials.new(
|
65
|
-
client:
|
66
|
-
role_arn: ENV.fetch('
|
77
|
+
client: sts_client,
|
78
|
+
role_arn: ENV.fetch('JOURNALED_IAM_ROLE_ARN'),
|
67
79
|
role_session_name: "JournaledAssumeRoleAccess"
|
68
80
|
)
|
69
81
|
end
|
data/lib/journaled/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -8989,3 +8989,511 @@ Kinesis Error - Server Error occurred - Aws::Kinesis::Errors::ServiceUnavailable
|
|
8989
8989
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
8990
8990
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
8991
8991
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
8992
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE DATABASE "journaled_test" ENCODING = 'utf8'[0m
|
8993
|
+
[1m[35mSQL (2.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
8994
|
+
[1m[35m (33.0ms)[0m [1m[35mDROP TABLE IF EXISTS "delayed_jobs" CASCADE[0m
|
8995
|
+
[1m[35m (41.0ms)[0m [1m[35mCREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
8996
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m
|
8997
|
+
[1m[35m (2.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
8998
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
8999
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9000
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
9001
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9002
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9003
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9004
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9005
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9006
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9007
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9008
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9009
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9010
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9011
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9012
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9013
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9014
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9015
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9016
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
9017
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
9018
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9019
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9020
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
9021
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
9022
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9023
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9024
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9025
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9026
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9027
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9028
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9029
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9030
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9031
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9032
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9033
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9034
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9035
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9036
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9037
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9038
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
9039
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9040
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9041
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9042
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9043
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9044
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9045
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9046
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9047
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9048
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9049
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9050
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9051
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9052
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9053
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9054
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')[0m
|
9055
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (2.3ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.720035', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.719415' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.719432') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9056
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9057
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9058
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9059
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (2.5ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:06:07.724Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:06:07.743451"], ["created_at", "2019-06-10 18:06:07.743639"], ["updated_at", "2019-06-10 18:06:07.743639"]]
|
9060
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9061
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.7ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.748420', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.748156' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.748164') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9062
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9063
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.9ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9064
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9065
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.8ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.755108', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.754684' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.754694') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9066
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9067
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9068
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 20]]
|
9069
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9070
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:06:07.761Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:06:07.763521"], ["created_at", "2019-06-10 18:06:07.763548"], ["updated_at", "2019-06-10 18:06:07.763548"]]
|
9071
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9072
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 20]]
|
9073
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.6ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.766291', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.765991' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.766001') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9074
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9075
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 2]]
|
9076
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9077
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.769014', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.768802' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.768811') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9078
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9079
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9080
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 0]]
|
9081
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9082
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.2ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:06:07.772Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:06:07.773954"], ["created_at", "2019-06-10 18:06:07.773982"], ["updated_at", "2019-06-10 18:06:07.773982"]]
|
9083
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9084
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 0]]
|
9085
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.4ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.775770', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.775569' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.775576') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9086
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9087
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 3]]
|
9088
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9089
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.4ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.778313', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.778100' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.778109') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9090
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9091
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9092
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')[0m
|
9093
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:06:07.782357', locked_by = 'host:Sophia-Russell pid:24732' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:06:07.782145' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:06:07.782154') OR locked_by = 'host:Sophia-Russell pid:24732') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9094
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9096
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9097
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
9098
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9099
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9100
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9101
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9102
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9103
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9104
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9105
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9106
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9107
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9108
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9109
|
+
[1m[36m#<Class:0x00007f8e771cabd0> Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.807277"], ["created_at", "2019-06-10 18:06:07.807321"], ["updated_at", "2019-06-10 18:06:07.807321"]]
|
9110
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"443b2098-378d-47aa-bee7-5e9b6610fb50\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:06:07.810Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"4\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:06:07.813389"], ["created_at", "2019-06-10 18:06:07.813418"], ["updated_at", "2019-06-10 18:06:07.813418"]]
|
9111
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9112
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9113
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9114
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9115
|
+
[1m[36m#<Class:0x00007f8e788b6510> Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.828457"], ["created_at", "2019-06-10 18:06:07.828492"], ["updated_at", "2019-06-10 18:06:07.828492"]]
|
9116
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"64f3fbe6-bda4-4cfe-a80f-efc0e5d87ad2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:06:07.830Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:06:07.832394"], ["created_at", "2019-06-10 18:06:07.832419"], ["updated_at", "2019-06-10 18:06:07.832419"]]
|
9117
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9118
|
+
[1m[36m#<Class:0x00007f8e788b6510> Update (0.5ms)[0m [1m[33mUPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2[0m [["locked_at", nil], ["id", 6]]
|
9119
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9120
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9121
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9122
|
+
[1m[36m#<Class:0x00007f8e78945be8> Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.847954"], ["created_at", "2019-06-10 18:06:07.847985"], ["updated_at", "2019-06-10 18:06:07.847985"]]
|
9123
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"35f9dfee-860b-4fd9-bd0e-c6e8176be182\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:06:07.850Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"8\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:06:07.851664"], ["created_at", "2019-06-10 18:06:07.851689"], ["updated_at", "2019-06-10 18:06:07.851689"]]
|
9124
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9125
|
+
[1m[36m#<Class:0x00007f8e78945be8> Update (0.3ms)[0m [1m[33mUPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2[0m [["handler", ""], ["id", 8]]
|
9126
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9127
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9128
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9129
|
+
[1m[36m#<Class:0x00007f8e78964cc8> Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.866064"], ["created_at", "2019-06-10 18:06:07.866096"], ["updated_at", "2019-06-10 18:06:07.866096"]]
|
9130
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"f3525338-66f5-4731-8e05-c6ba55551c6e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:06:07.868Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:06:07.870733"], ["created_at", "2019-06-10 18:06:07.870766"], ["updated_at", "2019-06-10 18:06:07.870766"]]
|
9131
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9132
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9133
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9134
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9135
|
+
[1m[36m#<Class:0x00007f8e77311b88> Create (0.7ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.883832"], ["created_at", "2019-06-10 18:06:07.883866"], ["updated_at", "2019-06-10 18:06:07.883866"]]
|
9136
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9137
|
+
[1m[36m#<Class:0x00007f8e77311b88> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 12]]
|
9138
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9139
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9140
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9141
|
+
[1m[36m#<Class:0x00007f8e773b2e20> Create (0.6ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:06:07.901392"], ["created_at", "2019-06-10 18:06:07.901437"], ["updated_at", "2019-06-10 18:06:07.901437"]]
|
9142
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"02a887f3-255e-45de-9ad2-9525e8880f26\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:06:07.905Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"13\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:06:07.906824"], ["created_at", "2019-06-10 18:06:07.906856"], ["updated_at", "2019-06-10 18:06:07.906856"]]
|
9143
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9144
|
+
[1m[36m#<Class:0x00007f8e773b2e20> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 13]]
|
9145
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9146
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9147
|
+
[1m[36m#<Class:0x00007f8e73a15de8> Update All (0.3ms)[0m [1m[33mUPDATE "delayed_jobs" SET "locked_at" = NULL[0m
|
9148
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9149
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9150
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9151
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9152
|
+
[1m[36m#<Class:0x00007f8e73a1e358> Update All (0.3ms)[0m [1m[33mUPDATE "delayed_jobs" SET "handler" = ''[0m
|
9153
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9154
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9155
|
+
[1m[36m#<Class:0x00007f8e733735d0> Destroy (0.4ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9156
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9157
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9158
|
+
[1m[36m#<Class:0x00007f8e73380cd0> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9159
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9160
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9161
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9162
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9163
|
+
[1m[36m#<Class:0x00007f8e78a47078> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs"[0m
|
9164
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9165
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9166
|
+
[1m[36m#<Class:0x00007f8e73a3d258> Destroy (0.5ms)[0m [1m[31mDELETE FROM "delayed_jobs"[0m
|
9167
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9168
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9169
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9170
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9171
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9172
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9173
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9174
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9175
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9176
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9177
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9178
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9179
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9180
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9181
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9182
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9183
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9184
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9185
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9186
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9187
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9188
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9189
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9190
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9191
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9192
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9193
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9194
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9195
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9196
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9197
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9198
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9199
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9200
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9201
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9202
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9203
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
9204
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9205
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9206
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9207
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9208
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9209
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9210
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9211
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9212
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9213
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9214
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9215
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
9216
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9217
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9218
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9219
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9220
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9221
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9222
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9223
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9224
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9225
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9226
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9227
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9228
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9229
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9230
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9231
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9232
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9233
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9234
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9235
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9236
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9237
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9238
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9239
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9240
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9241
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9242
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9243
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9244
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9245
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9246
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE DATABASE "journaled_test" ENCODING = 'utf8'[0m
|
9247
|
+
[1m[35mSQL (0.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
9248
|
+
[1m[35m (4.0ms)[0m [1m[35mDROP TABLE IF EXISTS "delayed_jobs" CASCADE[0m
|
9249
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
9250
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m
|
9251
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
9252
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
9253
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9254
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
9255
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9256
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9257
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9258
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9259
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9260
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9261
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9262
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9263
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9264
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9265
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9266
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
9267
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9268
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9269
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9270
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9271
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9272
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9273
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9274
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9275
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9276
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9277
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9278
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9279
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9280
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9281
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9282
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9283
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9284
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9285
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9286
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9287
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9288
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9289
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9290
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9291
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9292
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9293
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9294
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9295
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9296
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9297
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9298
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9299
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9300
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9301
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9302
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9303
|
+
[1m[36m#<Class:0x00007fa3ca74cb18> Create (0.7ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.815478"], ["created_at", "2019-06-10 18:07:02.815530"], ["updated_at", "2019-06-10 18:07:02.815530"]]
|
9304
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9305
|
+
[1m[36m#<Class:0x00007fa3ca74cb18> Destroy (0.4ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9306
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9307
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9308
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9309
|
+
[1m[36m#<Class:0x00007fa3cbf49860> Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.831867"], ["created_at", "2019-06-10 18:07:02.831901"], ["updated_at", "2019-06-10 18:07:02.831901"]]
|
9310
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.5ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"97acdd8e-7e12-4112-9bd1-415d0866b5f2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:07:02.886Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"2\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:07:02.889838"], ["created_at", "2019-06-10 18:07:02.889870"], ["updated_at", "2019-06-10 18:07:02.889870"]]
|
9311
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9312
|
+
[1m[36m#<Class:0x00007fa3cbf49860> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 2]]
|
9313
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9314
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
9315
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9316
|
+
[1m[36m#<Class:0x00007fa3cf997710> Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.923186"], ["created_at", "2019-06-10 18:07:02.923220"], ["updated_at", "2019-06-10 18:07:02.923220"]]
|
9317
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"4ea261c4-ce43-49c8-ad56-acc833caccb7\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:07:02.925Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"4\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:07:02.926648"], ["created_at", "2019-06-10 18:07:02.926670"], ["updated_at", "2019-06-10 18:07:02.926670"]]
|
9318
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9319
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9320
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9321
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9322
|
+
[1m[36m#<Class:0x00007fa3ca5c5a10> Create (0.8ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.939501"], ["created_at", "2019-06-10 18:07:02.939535"], ["updated_at", "2019-06-10 18:07:02.939535"]]
|
9323
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"1374341c-72e9-4fea-bece-e76925629d52\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:07:02.943Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"6\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:07:02.944838"], ["created_at", "2019-06-10 18:07:02.944863"], ["updated_at", "2019-06-10 18:07:02.944863"]]
|
9324
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9325
|
+
[1m[36m#<Class:0x00007fa3ca5c5a10> Update (0.3ms)[0m [1m[33mUPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2[0m [["locked_at", nil], ["id", 6]]
|
9326
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9327
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9328
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9329
|
+
[1m[36m#<Class:0x00007fa3cbc91c80> Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.961101"], ["created_at", "2019-06-10 18:07:02.961135"], ["updated_at", "2019-06-10 18:07:02.961135"]]
|
9330
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"0e86ceae-c1f4-478a-a489-4ce37d3e9af1\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:07:02.963Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"8\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:07:02.964687"], ["created_at", "2019-06-10 18:07:02.964712"], ["updated_at", "2019-06-10 18:07:02.964712"]]
|
9331
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9332
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9333
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
9334
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9335
|
+
[1m[36m#<Class:0x00007fa3caaa2f10> Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-06-10 18:07:02.980676"], ["created_at", "2019-06-10 18:07:02.980711"], ["updated_at", "2019-06-10 18:07:02.980711"]]
|
9336
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"75062164-15e8-4352-a996-f7b01084f0b6\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-06-10T18:07:02.982Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"10\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-06-10 18:07:02.984862"], ["created_at", "2019-06-10 18:07:02.984893"], ["updated_at", "2019-06-10 18:07:02.984893"]]
|
9337
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9338
|
+
[1m[36m#<Class:0x00007fa3caaa2f10> Update (0.5ms)[0m [1m[33mUPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2[0m [["handler", ""], ["id", 10]]
|
9339
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9340
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9341
|
+
[1m[36m#<Class:0x00007fa3ca6e32f8> Update All (0.4ms)[0m [1m[33mUPDATE "delayed_jobs" SET "handler" = ''[0m
|
9342
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9343
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9344
|
+
[1m[36m#<Class:0x00007fa3ca6f07f0> Update All (0.4ms)[0m [1m[33mUPDATE "delayed_jobs" SET "locked_at" = NULL[0m
|
9345
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9346
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9347
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9348
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9349
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
9350
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9351
|
+
[1m[36m#<Class:0x00007fa3cbe42890> Destroy (0.4ms)[0m [1m[31mDELETE FROM "delayed_jobs"[0m
|
9352
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9353
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9354
|
+
[1m[36m#<Class:0x00007fa3cbe50698> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs"[0m
|
9355
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
9356
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9357
|
+
[1m[36m#<Class:0x00007fa3cb379cd8> Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9358
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9359
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9360
|
+
[1m[36m#<Class:0x00007fa3cbe6aed0> Destroy (0.4ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 1]]
|
9361
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9362
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9363
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9364
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
9365
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9366
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9367
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9368
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9369
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9370
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9371
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9372
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9373
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9374
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
9375
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9376
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9377
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9378
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9379
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9380
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9381
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9382
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9383
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9384
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9385
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9386
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9387
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9388
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9389
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9390
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9391
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9392
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9393
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
9394
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9395
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9396
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9397
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9398
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9399
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
9400
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9401
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9402
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9403
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9404
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9405
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9406
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9407
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9408
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9409
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9410
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9411
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9412
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9413
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9414
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9415
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9416
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9417
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9418
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9419
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 20]]
|
9420
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9421
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.2ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:07:03.086Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:07:03.089423"], ["created_at", "2019-06-10 18:07:03.089453"], ["updated_at", "2019-06-10 18:07:03.089453"]]
|
9422
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9423
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 20]]
|
9424
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.8ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.091832', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.091415' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.091425') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9425
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9426
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 12]]
|
9427
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9428
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.095028', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.094841' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.094850') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9429
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9430
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9431
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9432
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.4ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:07:03.097Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:07:03.098920"], ["created_at", "2019-06-10 18:07:03.098945"], ["updated_at", "2019-06-10 18:07:03.098945"]]
|
9433
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9434
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.6ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.101214', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.100727' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.100741') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9435
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9436
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.2ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 13]]
|
9437
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9438
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.7ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.103899', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.103682' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.103691') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9439
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9440
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9441
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 0]]
|
9442
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9443
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Create (0.3ms)[0m [1m[32mINSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-06-10T18:07:03.107Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-06-10 18:07:03.108894"], ["created_at", "2019-06-10 18:07:03.108919"], ["updated_at", "2019-06-10 18:07:03.108919"]]
|
9444
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9445
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1[0m [["priority", 0]]
|
9446
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.6ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.110852', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.110664' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.110670') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9447
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9448
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Destroy (0.3ms)[0m [1m[31mDELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1[0m [["id", 14]]
|
9449
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9450
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.113449', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.113262' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.113270') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9451
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9452
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9453
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')[0m
|
9454
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.130002', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.129800' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.129808') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9455
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9456
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9457
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')[0m
|
9458
|
+
[1m[36mDelayed::Backend::ActiveRecord::Job Load (0.5ms)[0m [1m[37mUPDATE "delayed_jobs" SET locked_at = '2019-06-10 18:07:03.135284', locked_by = 'host:Sophia-Russell pid:24786' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-06-10 18:07:03.134866' AND (locked_at IS NULL OR locked_at < '2019-06-10 14:07:03.134877') OR locked_by = 'host:Sophia-Russell pid:24786') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *[0m
|
9459
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9460
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9461
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9462
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9463
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9464
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9465
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9466
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
9467
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9468
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9469
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9470
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9471
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9472
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9473
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9474
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9475
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9476
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9477
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9478
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9479
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9480
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9481
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9482
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9483
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9484
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9485
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9486
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9487
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9488
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9489
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9490
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9491
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9492
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
9493
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
9494
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9495
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9496
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9497
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
9498
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
9499
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
@@ -31,11 +31,11 @@ RSpec.describe Journaled::Delivery do
|
|
31
31
|
expect(event.sequence_number).to eq '101123'
|
32
32
|
end
|
33
33
|
|
34
|
-
context 'when
|
34
|
+
context 'when JOURNALED_IAM_ROLE_ARN is defined' do
|
35
35
|
let(:aws_sts_client) { Aws::STS::Client.new(stub_responses: true) }
|
36
36
|
|
37
37
|
around do |example|
|
38
|
-
with_env(
|
38
|
+
with_env(JOURNALED_IAM_ROLE_ARN: 'iam-role-arn-for-assuming-kinesis-access') { example.run }
|
39
39
|
end
|
40
40
|
|
41
41
|
before do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: journaled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Lipson
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-06-
|
14
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: aws-sdk-resources
|