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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adc46e649af8f80ef9e0340a866ff2f15e01f89ee312c016c9cff13e161a0f35
4
- data.tar.gz: 89ffff0056f3b8728a975d0e8aa6691c000bdcf6d13d5c060a8ac9ca784dc96d
3
+ metadata.gz: 9831027cd6b0766d945a3db6cc8dac0b6d19164a7e3aa17e486ab7722c4d0604
4
+ data.tar.gz: cb0d67d8a20b54da2c0508da1248877821ba7d2440f6af198ccea781640a2bbd
5
5
  SHA512:
6
- metadata.gz: 7cb9a5a6e6168ebf74df3c0b6e2911ce0bc00c33fed0ec0d4710055d6d5306c800c6e84eb7bccbf6b823549a963d29591bde620ab4179557a9802b97c85f2b16
7
- data.tar.gz: b99ab87b3699087196db0da2650f281e14be6997f5924428ffb5779f0cfd76f79826c9591d245c9a98f7a926abf804f5ce4aa43d440b90db70c70d45b22391d5
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
- * `JOURNALED_IAM_ROLE_NAME`
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(legacy_credentials_hash_if_present)
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
- if ENV.key?('JOURNALED_IAM_ROLE_NAME')
46
- Aws::Kinesis::Client.new(credentials: iam_assume_role_credentials)
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
- Aws::Kinesis::Client.new(kinesis_client_config)
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: Aws::STS::Client.new(legacy_credentials_hash_if_present),
66
- role_arn: ENV.fetch('JOURNALED_IAM_ROLE_NAME'),
77
+ client: sts_client,
78
+ role_arn: ENV.fetch('JOURNALED_IAM_ROLE_ARN'),
67
79
  role_session_name: "JournaledAssumeRoleAccess"
68
80
  )
69
81
  end
@@ -1,3 +1,3 @@
1
1
  module Journaled
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
@@ -8989,3 +8989,511 @@ Kinesis Error - Server Error occurred - Aws::Kinesis::Errors::ServiceUnavailable
8989
8989
   (0.1ms) ROLLBACK
8990
8990
   (0.2ms) BEGIN
8991
8991
   (0.1ms) ROLLBACK
8992
+  (2.0ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
8993
+ SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8994
+  (33.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
8995
+  (41.0ms) CREATE 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)
8996
+  (2.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
8997
+  (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8998
+ ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8999
+  (0.3ms) BEGIN
9000
+  (0.2ms) COMMIT
9001
+  (0.3ms) BEGIN
9002
+  (0.3ms) ROLLBACK
9003
+  (0.2ms) BEGIN
9004
+  (0.2ms) ROLLBACK
9005
+  (0.1ms) BEGIN
9006
+  (0.2ms) ROLLBACK
9007
+  (0.1ms) BEGIN
9008
+  (0.1ms) ROLLBACK
9009
+  (0.1ms) BEGIN
9010
+  (0.2ms) ROLLBACK
9011
+  (0.1ms) BEGIN
9012
+  (0.1ms) ROLLBACK
9013
+  (0.1ms) BEGIN
9014
+  (0.1ms) ROLLBACK
9015
+  (0.2ms) BEGIN
9016
+  (0.6ms) ROLLBACK
9017
+  (0.4ms) BEGIN
9018
+  (0.2ms) ROLLBACK
9019
+  (0.2ms) BEGIN
9020
+  (0.5ms) ROLLBACK
9021
+  (0.5ms) BEGIN
9022
+  (0.2ms) ROLLBACK
9023
+  (0.1ms) BEGIN
9024
+  (0.3ms) ROLLBACK
9025
+  (0.2ms) BEGIN
9026
+  (0.3ms) ROLLBACK
9027
+  (0.2ms) BEGIN
9028
+  (0.2ms) ROLLBACK
9029
+  (0.3ms) BEGIN
9030
+  (0.3ms) ROLLBACK
9031
+  (0.2ms) BEGIN
9032
+  (0.2ms) ROLLBACK
9033
+  (0.2ms) BEGIN
9034
+  (0.1ms) ROLLBACK
9035
+  (0.1ms) BEGIN
9036
+  (0.1ms) ROLLBACK
9037
+  (0.3ms) BEGIN
9038
+  (0.4ms) ROLLBACK
9039
+  (0.3ms) BEGIN
9040
+  (0.3ms) ROLLBACK
9041
+  (0.2ms) BEGIN
9042
+  (0.3ms) ROLLBACK
9043
+  (0.1ms) BEGIN
9044
+  (0.1ms) ROLLBACK
9045
+  (0.1ms) BEGIN
9046
+  (0.1ms) ROLLBACK
9047
+  (0.1ms) BEGIN
9048
+  (0.2ms) ROLLBACK
9049
+  (0.1ms) BEGIN
9050
+  (0.1ms) ROLLBACK
9051
+  (0.1ms) BEGIN
9052
+  (0.1ms) ROLLBACK
9053
+  (0.1ms) BEGIN
9054
+  (0.7ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
9055
+ Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "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 *
9056
+  (0.1ms) ROLLBACK
9057
+  (0.1ms) BEGIN
9058
+  (0.2ms) SAVEPOINT active_record_1
9059
+ Delayed::Backend::ActiveRecord::Job Create (2.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9061
+ Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "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 *
9062
+  (0.2ms) SAVEPOINT active_record_1
9063
+ Delayed::Backend::ActiveRecord::Job Destroy (0.9ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9064
+  (0.5ms) RELEASE SAVEPOINT active_record_1
9065
+ Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "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 *
9066
+  (0.2ms) ROLLBACK
9067
+  (0.1ms) BEGIN
9068
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
9069
+  (0.2ms) SAVEPOINT active_record_1
9070
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9072
+  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
9073
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "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 *
9074
+  (0.2ms) SAVEPOINT active_record_1
9075
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
9076
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9077
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9078
+  (0.2ms) ROLLBACK
9079
+  (0.1ms) BEGIN
9080
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
9081
+  (0.2ms) SAVEPOINT active_record_1
9082
+ Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9084
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
9085
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "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 *
9086
+  (0.1ms) SAVEPOINT active_record_1
9087
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
9088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9089
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "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 *
9090
+  (0.3ms) ROLLBACK
9091
+  (0.2ms) BEGIN
9092
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
9093
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9094
+  (0.1ms) ROLLBACK
9095
+  (0.1ms) BEGIN
9096
+  (0.3ms) ROLLBACK
9097
+  (0.4ms) BEGIN
9098
+  (0.2ms) ROLLBACK
9099
+  (0.1ms) BEGIN
9100
+  (0.2ms) ROLLBACK
9101
+  (0.1ms) BEGIN
9102
+  (0.1ms) ROLLBACK
9103
+  (0.1ms) BEGIN
9104
+  (0.1ms) ROLLBACK
9105
+  (0.1ms) BEGIN
9106
+  (0.2ms) ROLLBACK
9107
+  (0.1ms) BEGIN
9108
+  (0.2ms) SAVEPOINT active_record_1
9109
+ #<Class:0x00007f8e771cabd0> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9112
+  (0.2ms) ROLLBACK
9113
+  (0.2ms) BEGIN
9114
+  (0.2ms) SAVEPOINT active_record_1
9115
+ #<Class:0x00007f8e788b6510> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9118
+ #<Class:0x00007f8e788b6510> Update (0.5ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]
9119
+  (0.2ms) ROLLBACK
9120
+  (0.2ms) BEGIN
9121
+  (0.3ms) SAVEPOINT active_record_1
9122
+ #<Class:0x00007f8e78945be8> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9125
+ #<Class:0x00007f8e78945be8> Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 8]]
9126
+  (0.1ms) ROLLBACK
9127
+  (0.1ms) BEGIN
9128
+  (0.3ms) SAVEPOINT active_record_1
9129
+ #<Class:0x00007f8e78964cc8> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9132
+  (0.1ms) ROLLBACK
9133
+  (0.1ms) BEGIN
9134
+  (0.2ms) SAVEPOINT active_record_1
9135
+ #<Class:0x00007f8e77311b88> Create (0.7ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.4ms) RELEASE SAVEPOINT active_record_1
9137
+ #<Class:0x00007f8e77311b88> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
9138
+  (0.1ms) ROLLBACK
9139
+  (0.2ms) BEGIN
9140
+  (0.3ms) SAVEPOINT active_record_1
9141
+ #<Class:0x00007f8e773b2e20> Create (0.6ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9144
+ #<Class:0x00007f8e773b2e20> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
9145
+  (0.2ms) ROLLBACK
9146
+  (0.2ms) BEGIN
9147
+ #<Class:0x00007f8e73a15de8> Update All (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
9148
+  (0.2ms) ROLLBACK
9149
+  (0.3ms) BEGIN
9150
+  (0.2ms) ROLLBACK
9151
+  (0.1ms) BEGIN
9152
+ #<Class:0x00007f8e73a1e358> Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = ''
9153
+  (0.1ms) ROLLBACK
9154
+  (0.1ms) BEGIN
9155
+ #<Class:0x00007f8e733735d0> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9156
+  (0.2ms) ROLLBACK
9157
+  (0.3ms) BEGIN
9158
+ #<Class:0x00007f8e73380cd0> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9159
+  (0.1ms) ROLLBACK
9160
+  (0.1ms) BEGIN
9161
+  (0.1ms) ROLLBACK
9162
+  (0.1ms) BEGIN
9163
+ #<Class:0x00007f8e78a47078> Destroy (0.3ms) DELETE FROM "delayed_jobs"
9164
+  (0.1ms) ROLLBACK
9165
+  (0.1ms) BEGIN
9166
+ #<Class:0x00007f8e73a3d258> Destroy (0.5ms) DELETE FROM "delayed_jobs"
9167
+  (0.1ms) ROLLBACK
9168
+  (0.1ms) BEGIN
9169
+  (0.2ms) ROLLBACK
9170
+  (0.1ms) BEGIN
9171
+  (0.1ms) ROLLBACK
9172
+  (0.1ms) BEGIN
9173
+  (0.1ms) ROLLBACK
9174
+  (0.3ms) BEGIN
9175
+  (0.2ms) ROLLBACK
9176
+  (0.1ms) BEGIN
9177
+  (0.1ms) ROLLBACK
9178
+  (0.1ms) BEGIN
9179
+  (0.1ms) ROLLBACK
9180
+  (0.1ms) BEGIN
9181
+  (0.1ms) ROLLBACK
9182
+  (0.1ms) BEGIN
9183
+  (0.2ms) ROLLBACK
9184
+  (0.3ms) BEGIN
9185
+  (0.2ms) ROLLBACK
9186
+  (0.2ms) BEGIN
9187
+  (0.1ms) ROLLBACK
9188
+  (0.1ms) BEGIN
9189
+  (0.2ms) ROLLBACK
9190
+  (0.1ms) BEGIN
9191
+  (0.2ms) ROLLBACK
9192
+  (0.1ms) BEGIN
9193
+  (0.1ms) ROLLBACK
9194
+  (0.1ms) BEGIN
9195
+  (0.2ms) ROLLBACK
9196
+  (0.2ms) BEGIN
9197
+  (0.2ms) ROLLBACK
9198
+  (0.2ms) BEGIN
9199
+  (0.2ms) ROLLBACK
9200
+  (0.2ms) BEGIN
9201
+  (0.2ms) ROLLBACK
9202
+  (0.2ms) BEGIN
9203
+  (0.5ms) ROLLBACK
9204
+  (0.2ms) BEGIN
9205
+  (0.2ms) ROLLBACK
9206
+  (0.1ms) BEGIN
9207
+  (0.1ms) ROLLBACK
9208
+  (0.1ms) BEGIN
9209
+  (0.2ms) ROLLBACK
9210
+  (0.2ms) BEGIN
9211
+  (0.2ms) ROLLBACK
9212
+  (0.2ms) BEGIN
9213
+  (0.2ms) ROLLBACK
9214
+  (0.2ms) BEGIN
9215
+  (0.6ms) ROLLBACK
9216
+  (0.3ms) BEGIN
9217
+  (0.3ms) ROLLBACK
9218
+  (0.1ms) BEGIN
9219
+  (0.1ms) ROLLBACK
9220
+  (0.1ms) BEGIN
9221
+  (0.2ms) ROLLBACK
9222
+  (0.1ms) BEGIN
9223
+  (0.1ms) ROLLBACK
9224
+  (0.1ms) BEGIN
9225
+  (0.2ms) ROLLBACK
9226
+  (0.2ms) BEGIN
9227
+  (0.2ms) ROLLBACK
9228
+  (0.2ms) BEGIN
9229
+  (0.2ms) ROLLBACK
9230
+  (0.2ms) BEGIN
9231
+  (0.1ms) ROLLBACK
9232
+  (0.2ms) BEGIN
9233
+  (0.1ms) ROLLBACK
9234
+  (0.1ms) BEGIN
9235
+  (0.2ms) ROLLBACK
9236
+  (0.2ms) BEGIN
9237
+  (0.1ms) ROLLBACK
9238
+  (0.1ms) BEGIN
9239
+  (0.2ms) ROLLBACK
9240
+  (0.2ms) BEGIN
9241
+  (0.1ms) ROLLBACK
9242
+  (0.2ms) BEGIN
9243
+  (0.1ms) ROLLBACK
9244
+  (0.1ms) BEGIN
9245
+  (0.1ms) ROLLBACK
9246
+  (0.4ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
9247
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
9248
+  (4.0ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
9249
+  (6.1ms) CREATE 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)
9250
+  (3.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
9251
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
9252
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
9253
+  (0.2ms) BEGIN
9254
+  (0.1ms) COMMIT
9255
+  (0.3ms) BEGIN
9256
+  (0.3ms) ROLLBACK
9257
+  (0.1ms) BEGIN
9258
+  (0.2ms) ROLLBACK
9259
+  (0.1ms) BEGIN
9260
+  (0.2ms) ROLLBACK
9261
+  (0.1ms) BEGIN
9262
+  (0.3ms) ROLLBACK
9263
+  (0.1ms) BEGIN
9264
+  (0.2ms) ROLLBACK
9265
+  (0.1ms) BEGIN
9266
+  (0.4ms) ROLLBACK
9267
+  (0.1ms) BEGIN
9268
+  (0.2ms) ROLLBACK
9269
+  (0.1ms) BEGIN
9270
+  (0.2ms) ROLLBACK
9271
+  (0.1ms) BEGIN
9272
+  (0.2ms) ROLLBACK
9273
+  (0.2ms) BEGIN
9274
+  (0.3ms) ROLLBACK
9275
+  (0.2ms) BEGIN
9276
+  (0.2ms) ROLLBACK
9277
+  (0.3ms) BEGIN
9278
+  (0.2ms) ROLLBACK
9279
+  (0.2ms) BEGIN
9280
+  (0.2ms) ROLLBACK
9281
+  (0.1ms) BEGIN
9282
+  (0.2ms) ROLLBACK
9283
+  (0.2ms) BEGIN
9284
+  (0.2ms) ROLLBACK
9285
+  (0.2ms) BEGIN
9286
+  (0.2ms) ROLLBACK
9287
+  (0.2ms) BEGIN
9288
+  (0.2ms) ROLLBACK
9289
+  (0.1ms) BEGIN
9290
+  (0.2ms) ROLLBACK
9291
+  (0.1ms) BEGIN
9292
+  (0.2ms) ROLLBACK
9293
+  (0.1ms) BEGIN
9294
+  (0.1ms) ROLLBACK
9295
+  (0.1ms) BEGIN
9296
+  (0.1ms) ROLLBACK
9297
+  (0.2ms) BEGIN
9298
+  (0.2ms) ROLLBACK
9299
+  (0.2ms) BEGIN
9300
+  (0.2ms) ROLLBACK
9301
+  (0.2ms) BEGIN
9302
+  (0.3ms) SAVEPOINT active_record_1
9303
+ #<Class:0x00007fa3ca74cb18> Create (0.7ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9305
+ #<Class:0x00007fa3ca74cb18> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9306
+  (0.3ms) ROLLBACK
9307
+  (0.2ms) BEGIN
9308
+  (0.2ms) SAVEPOINT active_record_1
9309
+ #<Class:0x00007fa3cbf49860> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.5ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9312
+ #<Class:0x00007fa3cbf49860> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
9313
+  (0.2ms) ROLLBACK
9314
+  (0.4ms) BEGIN
9315
+  (0.3ms) SAVEPOINT active_record_1
9316
+ #<Class:0x00007fa3cf997710> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9319
+  (0.2ms) ROLLBACK
9320
+  (0.1ms) BEGIN
9321
+  (0.2ms) SAVEPOINT active_record_1
9322
+ #<Class:0x00007fa3ca5c5a10> Create (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9325
+ #<Class:0x00007fa3ca5c5a10> Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 6]]
9326
+  (0.1ms) ROLLBACK
9327
+  (0.1ms) BEGIN
9328
+  (0.3ms) SAVEPOINT active_record_1
9329
+ #<Class:0x00007fa3cbc91c80> Create (0.4ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9332
+  (0.1ms) ROLLBACK
9333
+  (0.3ms) BEGIN
9334
+  (0.4ms) SAVEPOINT active_record_1
9335
+ #<Class:0x00007fa3caaa2f10> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9338
+ #<Class:0x00007fa3caaa2f10> Update (0.5ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 10]]
9339
+  (0.2ms) ROLLBACK
9340
+  (0.1ms) BEGIN
9341
+ #<Class:0x00007fa3ca6e32f8> Update All (0.4ms) UPDATE "delayed_jobs" SET "handler" = ''
9342
+  (0.2ms) ROLLBACK
9343
+  (0.2ms) BEGIN
9344
+ #<Class:0x00007fa3ca6f07f0> Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = NULL
9345
+  (0.3ms) ROLLBACK
9346
+  (0.2ms) BEGIN
9347
+  (0.3ms) ROLLBACK
9348
+  (0.2ms) BEGIN
9349
+  (0.5ms) ROLLBACK
9350
+  (0.2ms) BEGIN
9351
+ #<Class:0x00007fa3cbe42890> Destroy (0.4ms) DELETE FROM "delayed_jobs"
9352
+  (0.2ms) ROLLBACK
9353
+  (0.2ms) BEGIN
9354
+ #<Class:0x00007fa3cbe50698> Destroy (0.3ms) DELETE FROM "delayed_jobs"
9355
+  (0.5ms) ROLLBACK
9356
+  (0.1ms) BEGIN
9357
+ #<Class:0x00007fa3cb379cd8> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9358
+  (0.2ms) ROLLBACK
9359
+  (0.2ms) BEGIN
9360
+ #<Class:0x00007fa3cbe6aed0> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
9361
+  (0.2ms) ROLLBACK
9362
+  (0.1ms) BEGIN
9363
+  (0.3ms) ROLLBACK
9364
+  (0.6ms) BEGIN
9365
+  (0.1ms) ROLLBACK
9366
+  (0.1ms) BEGIN
9367
+  (0.2ms) ROLLBACK
9368
+  (0.1ms) BEGIN
9369
+  (0.1ms) ROLLBACK
9370
+  (0.1ms) BEGIN
9371
+  (0.2ms) ROLLBACK
9372
+  (0.1ms) BEGIN
9373
+  (0.1ms) ROLLBACK
9374
+  (0.5ms) BEGIN
9375
+  (0.3ms) ROLLBACK
9376
+  (0.2ms) BEGIN
9377
+  (0.2ms) ROLLBACK
9378
+  (0.2ms) BEGIN
9379
+  (0.2ms) ROLLBACK
9380
+  (0.2ms) BEGIN
9381
+  (0.1ms) ROLLBACK
9382
+  (0.2ms) BEGIN
9383
+  (0.2ms) ROLLBACK
9384
+  (0.2ms) BEGIN
9385
+  (0.2ms) ROLLBACK
9386
+  (0.1ms) BEGIN
9387
+  (0.2ms) ROLLBACK
9388
+  (0.1ms) BEGIN
9389
+  (0.1ms) ROLLBACK
9390
+  (0.1ms) BEGIN
9391
+  (0.2ms) ROLLBACK
9392
+  (0.2ms) BEGIN
9393
+  (0.3ms) ROLLBACK
9394
+  (0.2ms) BEGIN
9395
+  (0.2ms) ROLLBACK
9396
+  (0.1ms) BEGIN
9397
+  (0.2ms) ROLLBACK
9398
+  (0.2ms) BEGIN
9399
+  (0.6ms) ROLLBACK
9400
+  (0.1ms) BEGIN
9401
+  (0.2ms) ROLLBACK
9402
+  (0.1ms) BEGIN
9403
+  (0.2ms) ROLLBACK
9404
+  (0.1ms) BEGIN
9405
+  (0.1ms) ROLLBACK
9406
+  (0.2ms) BEGIN
9407
+  (0.2ms) ROLLBACK
9408
+  (0.2ms) BEGIN
9409
+  (0.2ms) ROLLBACK
9410
+  (0.2ms) BEGIN
9411
+  (0.1ms) ROLLBACK
9412
+  (0.1ms) BEGIN
9413
+  (0.1ms) ROLLBACK
9414
+  (0.1ms) BEGIN
9415
+  (0.2ms) ROLLBACK
9416
+  (0.1ms) BEGIN
9417
+  (0.1ms) ROLLBACK
9418
+  (0.1ms) BEGIN
9419
+  (0.8ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
9420
+  (0.2ms) SAVEPOINT active_record_1
9421
+ Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9423
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
9424
+ Delayed::Backend::ActiveRecord::Job Load (0.8ms) UPDATE "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 *
9425
+  (0.2ms) SAVEPOINT active_record_1
9426
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 12]]
9427
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9428
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9429
+  (0.2ms) ROLLBACK
9430
+  (0.2ms) BEGIN
9431
+  (0.1ms) SAVEPOINT active_record_1
9432
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.4ms) RELEASE SAVEPOINT active_record_1
9434
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "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 *
9435
+  (0.2ms) SAVEPOINT active_record_1
9436
+ Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 13]]
9437
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9438
+ Delayed::Backend::ActiveRecord::Job Load (0.7ms) UPDATE "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 *
9439
+  (0.1ms) ROLLBACK
9440
+  (0.1ms) BEGIN
9441
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
9442
+  (0.2ms) SAVEPOINT active_record_1
9443
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9445
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
9446
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "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 *
9447
+  (0.2ms) SAVEPOINT active_record_1
9448
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 14]]
9449
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9450
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9451
+  (0.2ms) ROLLBACK
9452
+  (0.1ms) BEGIN
9453
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
9454
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9455
+  (0.2ms) ROLLBACK
9456
+  (0.2ms) BEGIN
9457
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
9458
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "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 *
9459
+  (0.1ms) ROLLBACK
9460
+  (0.1ms) BEGIN
9461
+  (0.1ms) ROLLBACK
9462
+  (0.1ms) BEGIN
9463
+  (0.1ms) ROLLBACK
9464
+  (0.1ms) BEGIN
9465
+  (0.1ms) ROLLBACK
9466
+  (0.4ms) BEGIN
9467
+  (0.2ms) ROLLBACK
9468
+  (0.2ms) BEGIN
9469
+  (0.1ms) ROLLBACK
9470
+  (0.2ms) BEGIN
9471
+  (0.2ms) ROLLBACK
9472
+  (0.2ms) BEGIN
9473
+  (0.1ms) ROLLBACK
9474
+  (0.2ms) BEGIN
9475
+  (0.2ms) ROLLBACK
9476
+  (0.2ms) BEGIN
9477
+  (0.2ms) ROLLBACK
9478
+  (0.1ms) BEGIN
9479
+  (0.1ms) ROLLBACK
9480
+  (0.1ms) BEGIN
9481
+  (0.2ms) ROLLBACK
9482
+  (0.1ms) BEGIN
9483
+  (0.1ms) ROLLBACK
9484
+  (0.1ms) BEGIN
9485
+  (0.1ms) ROLLBACK
9486
+  (0.1ms) BEGIN
9487
+  (0.2ms) ROLLBACK
9488
+  (0.2ms) BEGIN
9489
+  (0.2ms) ROLLBACK
9490
+  (0.2ms) BEGIN
9491
+  (0.2ms) ROLLBACK
9492
+  (0.2ms) BEGIN
9493
+  (0.2ms) ROLLBACK
9494
+  (0.1ms) BEGIN
9495
+  (0.1ms) ROLLBACK
9496
+  (0.1ms) BEGIN
9497
+  (0.1ms) ROLLBACK
9498
+  (0.1ms) BEGIN
9499
+  (0.1ms) ROLLBACK
@@ -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 JOURNALED_IAM_ROLE_NAME is defined' do
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(JOURNALED_IAM_ROLE_NAME: 'iam-role-arn-for-assuming-kinesis-access') { example.run }
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.1
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-07 00:00:00.000000000 Z
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