active_batch 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 2d843c9d26e0169cae4417bddb0fb973bc1547a2
4
- data.tar.gz: b98be12fc6e23b7cd968569db2395d7fa8e18da2
3
+ metadata.gz: d440d86d0bd420d8e48f7db815c8a190e2641aed
4
+ data.tar.gz: 16e06ae73bcbc2a847040797f7fc40ea118f6688
5
5
  SHA512:
6
- metadata.gz: 0c1cffdd866a6337852a3d2bc74e3b93c605c955bc747b9d0a05b3987ef66483266991da49c3310f3d6a42af011acaf3321981bd0c2f42f34efd751e503ada87
7
- data.tar.gz: ad763107d2cede4c631aa717d2f979dd452ecb4a597312a77ab849a8f198b30535fe018b3c64c5541684b227c5ba8ff916d491955995d967afa0d8c292343146
6
+ metadata.gz: 60777a806232032c105d949d2bee6383c2bf205133f54c3381e605da519847cbbe32abec3ea6538dc3182d17ec360fd57b2ef8c77fca4b66d5acf15d93b1ca14
7
+ data.tar.gz: d039aec5db9f276140630ee49ee9f908454ccb8ed3de72a209f041ea417cb96798fec9e0cae1fef98de435bdaa2e67b2995440ea4b94252a365432dd48c8c315
@@ -10,7 +10,6 @@ module ActiveBatch
10
10
  batch = Batch.create(job_class: job_class.constantize, job_id: job_id, arguments: args)
11
11
  batch.job.each_work_unit(*args) do |*work_unit_args|
12
12
  work_unit_job = batch.job.new(*work_unit_args)
13
- work_unit_job.in_batch = true
14
13
  batch.work_units.create(job_id: work_unit_job.job_id, arguments: work_unit_args)
15
14
  work_unit_job.enqueue
16
15
  end
@@ -9,7 +9,11 @@ module ActiveBatch
9
9
  end
10
10
 
11
11
  def save_result(result)
12
- work_unit_in_batch(self).update!(work_result: result.to_s) if in_batch
12
+ work_unit_in_batch(self).update!(work_result: result.to_s) if in_batch?
13
+ end
14
+
15
+ def in_batch?
16
+ work_unit_in_batch(self)
13
17
  end
14
18
 
15
19
  class_methods do
@@ -20,19 +24,17 @@ module ActiveBatch
20
24
 
21
25
  included do
22
26
 
23
- attr_accessor :in_batch
24
-
25
27
  rescue_from(StandardError) do |exception|
26
- work_unit_in_batch(self).error(exception) if in_batch
28
+ work_unit_in_batch(self).error(exception) if in_batch?
27
29
  raise exception
28
30
  end
29
31
 
30
32
  before_perform do |job|
31
- work_unit_in_batch(job).update!(status: :running) if job.in_batch
33
+ work_unit_in_batch(job).update!(status: :running) if job.in_batch?
32
34
  end
33
35
 
34
36
  after_perform do |job|
35
- work_unit_in_batch(job).update!(status: :done) if job.in_batch
37
+ work_unit_in_batch(job).update!(status: :done) if job.in_batch?
36
38
  end
37
39
  end
38
40
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveBatch
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
@@ -14977,3 +14977,893 @@ ActiveBatch::BatchJobTest: test_can_be_enqueued_outside_a_batch
14977
14977
  ---------------------------------------------------------------
14978
14978
  [ActiveJob] [BatchJob] [7be267f9-4ff8-4d0d-914b-50a785b7a592] Performing BatchJob from Test(test_queue) with arguments: "test"
14979
14979
  [ActiveJob] [BatchJob] [7be267f9-4ff8-4d0d-914b-50a785b7a592] Performed BatchJob from Test(test_queue) in 0.16ms
14980
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
14981
+  (0.1ms) begin transaction
14982
+ ---------------------------
14983
+ ActiveBatchTest: test_truth
14984
+ ---------------------------
14985
+  (0.0ms) rollback transaction
14986
+  (0.0ms) begin transaction
14987
+ --------------------------------------------------------------------
14988
+ ActiveBatch::JobTest: test_not_done_scope_returns_work_unit_not_done
14989
+ --------------------------------------------------------------------
14990
+  (0.0ms) SAVEPOINT active_record_1
14991
+ SQL (1.0ms) INSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", 2], ["created_at", "2015-09-29 17:13:37.049502"], ["updated_at", "2015-09-29 17:13:37.049502"]]
14992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14993
+  (0.0ms) SAVEPOINT active_record_1
14994
+ SQL (0.9ms) INSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", 1], ["created_at", "2015-09-29 17:13:37.053716"], ["updated_at", "2015-09-29 17:13:37.053716"]]
14995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14996
+  (0.0ms) SAVEPOINT active_record_1
14997
+ SQL (0.1ms) INSERT INTO "active_batch_work_units" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-29 17:13:37.055676"], ["updated_at", "2015-09-29 17:13:37.055676"]]
14998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
14999
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15000
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15001
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15002
+  (1.0ms) rollback transaction
15003
+  (0.0ms) begin transaction
15004
+ ------------------------------------------------------
15005
+ ActiveBatch::BatchSchedulerJobTest: test_creates_batch
15006
+ ------------------------------------------------------
15007
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15008
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15009
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992]  (0.1ms) SAVEPOINT active_record_1
15010
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992] SQL (0.6ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "b931e3c5-7617-48f5-bd80-f2f181e3b992"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:13:37.074625"], ["updated_at", "2015-09-29 17:13:37.074625"]]
15011
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992]  (0.1ms) RELEASE SAVEPOINT active_record_1
15012
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 13.72ms
15013
+  (0.3ms) rollback transaction
15014
+  (0.0ms) begin transaction
15015
+ ------------------------------------------------------------------------------
15016
+ ActiveBatch::BatchSchedulerJobTest: test_enqueues_work_unit_jobs_and_check_job
15017
+ ------------------------------------------------------------------------------
15018
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15019
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a]  (0.0ms) SAVEPOINT active_record_1
15020
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:13:37.080007"], ["updated_at", "2015-09-29 17:13:37.080007"]]
15021
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15022
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.79ms
15023
+  (0.4ms) rollback transaction
15024
+  (0.0ms) begin transaction
15025
+ -----------------------------------------------------------
15026
+ ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
15027
+ -----------------------------------------------------------
15028
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15029
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15030
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402]  (0.0ms) SAVEPOINT active_record_1
15031
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "ff3f73e2-68ab-49ba-a21a-19699d345402"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:13:37.084115"], ["updated_at", "2015-09-29 17:13:37.084115"]]
15032
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402]  (0.0ms) RELEASE SAVEPOINT active_record_1
15033
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.38ms
15034
+  (0.8ms) rollback transaction
15035
+  (0.0ms) begin transaction
15036
+ ---------------------------------------------------------------------------
15037
+ ActiveBatch::BatchSchedulerJobTest: test_uses_same_queue_than_the_Batch_Job
15038
+ ---------------------------------------------------------------------------
15039
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: 4e8d1b58-88e0-4d7e-a425-159f39419ce4) to Test(test_queue) with arguments: "BatchJob"
15040
+  (0.0ms) rollback transaction
15041
+  (0.0ms) begin transaction
15042
+ ------------------------------------------------------------------------
15043
+ ActiveBatch::BatchSchedulerJobTest: test_work_units_have_enqueued_status
15044
+ ------------------------------------------------------------------------
15045
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15046
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647]  (0.0ms) SAVEPOINT active_record_1
15047
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "cb9846b1-0bd1-4029-92c5-ac3748fb2647"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:13:37.088522"], ["updated_at", "2015-09-29 17:13:37.088522"]]
15048
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647]  (0.0ms) RELEASE SAVEPOINT active_record_1
15049
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.29ms
15050
+  (0.4ms) rollback transaction
15051
+  (0.0ms) begin transaction
15052
+ -------------------------------------------------------------
15053
+ ActiveBatch::BatchSchedulerJobTest: test_batch_has_work_units
15054
+ -------------------------------------------------------------
15055
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15056
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9]  (0.0ms) SAVEPOINT active_record_1
15057
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "76f883b0-2b4b-4c54-bfc0-be94a3e1aad9"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:13:37.091910"], ["updated_at", "2015-09-29 17:13:37.091910"]]
15058
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9]  (0.0ms) RELEASE SAVEPOINT active_record_1
15059
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.46ms
15060
+  (0.3ms) rollback transaction
15061
+  (0.1ms) begin transaction
15062
+ Fixture Delete (0.2ms) DELETE FROM "active_batch_batches"
15063
+ Fixture Insert (0.1ms) INSERT INTO "active_batch_batches" ("job_class", "arguments", "created_at", "updated_at", "id") VALUES ('BatchJob', '["test"]', '2015-09-29 17:13:37', '2015-09-29 17:13:37', 980190962)
15064
+ Fixture Delete (0.0ms) DELETE FROM "active_batch_work_units"
15065
+ Fixture Insert (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "status", "created_at", "updated_at", "id") VALUES ('1234', 0, '2015-09-29 17:13:37', '2015-09-29 17:13:37', 980190962)
15066
+  (1.0ms) commit transaction
15067
+  (0.0ms) begin transaction
15068
+ ----------------------------------------------------------
15069
+ ActiveBatch::BatchesControllerTest: test_should_show_batch
15070
+ ----------------------------------------------------------
15071
+ ActiveBatch::Batch Load (0.2ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15072
+ Processing by ActiveBatch::BatchesController#show as HTML
15073
+ Parameters: {"id"=>"980190962"}
15074
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15075
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15076
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/show.html.erb (11.3ms)
15077
+ Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.2ms)
15078
+  (0.1ms) rollback transaction
15079
+  (0.1ms) begin transaction
15080
+ -------------------------------------------------------------
15081
+ ActiveBatch::BatchesControllerTest: test_should_destroy_batch
15082
+ -------------------------------------------------------------
15083
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15084
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_batches"
15085
+ Processing by ActiveBatch::BatchesController#destroy as HTML
15086
+ Parameters: {"id"=>"980190962"}
15087
+ ActiveBatch::Batch Load (0.0ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15088
+  (0.0ms) SAVEPOINT active_record_1
15089
+ SQL (0.2ms) DELETE FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? [["id", 980190962]]
15090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15091
+ Redirected to http://test.host/activejob_batch/batches
15092
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
15093
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_batches"
15094
+  (0.3ms) rollback transaction
15095
+  (0.0ms) begin transaction
15096
+ ---------------------------------------------------------
15097
+ ActiveBatch::BatchesControllerTest: test_should_get_index
15098
+ ---------------------------------------------------------
15099
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15100
+ Processing by ActiveBatch::BatchesController#index as HTML
15101
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches"
15102
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/index.html.erb (2.0ms)
15103
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.1ms)
15104
+  (0.1ms) rollback transaction
15105
+  (0.0ms) begin transaction
15106
+ -------------------------------------------------------
15107
+ ActiveBatch::BatchesControllerTest: test_should_get_new
15108
+ -------------------------------------------------------
15109
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15110
+ Processing by ActiveBatch::BatchesController#new as HTML
15111
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/_form.html.erb (41.6ms)
15112
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/new.html.erb (45.2ms)
15113
+ Completed 200 OK in 47ms (Views: 46.5ms | ActiveRecord: 0.0ms)
15114
+  (0.1ms) rollback transaction
15115
+  (0.1ms) begin transaction
15116
+ ------------------------------------------------------------
15117
+ ActiveBatch::BatchesControllerTest: test_should_create_batch
15118
+ ------------------------------------------------------------
15119
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15120
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15121
+ Processing by ActiveBatch::BatchesController#create as HTML
15122
+ Parameters: {"batch"=>{"job_class"=>"BatchJob"}}
15123
+  (0.0ms) SAVEPOINT active_record_1
15124
+ SQL (0.3ms) INSERT INTO "active_batch_batches" ("job_class", "created_at", "updated_at") VALUES (?, ?, ?) [["job_class", "BatchJob"], ["created_at", "2015-09-29 17:13:37.253955"], ["updated_at", "2015-09-29 17:13:37.253955"]]
15125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15126
+ Redirected to http://test.host/activejob_batch/batches/980190963
15127
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
15128
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_batches"
15129
+  (0.3ms) rollback transaction
15130
+  (0.0ms) begin transaction
15131
+ -----------------------------------------------------------------------------
15132
+ ActiveBatch::WithActiveJobArgumentsTest: test_serializes_active_job_arguments
15133
+ -----------------------------------------------------------------------------
15134
+ ---------------------------------------------------------------
15135
+ ActiveBatch::BatchJobTest: test_can_be_enqueued_outside_a_batch
15136
+ ---------------------------------------------------------------
15137
+ [ActiveJob] [BatchJob] [d8390b0d-3db5-49c2-acff-8132cf2eadd4] Performing BatchJob from Test(test_queue) with arguments: "test"
15138
+ [ActiveJob] [BatchJob] [d8390b0d-3db5-49c2-acff-8132cf2eadd4] Performed BatchJob from Test(test_queue) in 2.03ms
15139
+ --------------------------------------------------------------------
15140
+ ActiveBatch::BatchedJobTest: test_can_save_work_result_when_in_batch
15141
+ --------------------------------------------------------------------
15142
+ ----------------------------------------------------------------------------------
15143
+ ActiveBatch::BatchedJobTest: test_sets_status_to_failed_on_exception_when_in_batch
15144
+ ----------------------------------------------------------------------------------
15145
+ ---------------------------------------------------
15146
+ ActiveBatch::BatchedJobTest: test_can_perform_batch
15147
+ ---------------------------------------------------
15148
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: bed4ae26-f3d4-40e4-ae67-8de0d360e3e7) to Test(test_queue) with arguments: "BatchJob", 1, 2
15149
+ ------------------------------------------------------------------------------------------------
15150
+ ActiveBatch::BatchStatusCheckJobTest: test_calls_after_batch_with_proper_args_when_batch_is_done
15151
+ ------------------------------------------------------------------------------------------------
15152
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [bc7c6530-3646-4a41-a5d5-eed2ae544502] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15153
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [bc7c6530-3646-4a41-a5d5-eed2ae544502] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 10.57ms
15154
+ ---------------------------------------------------------------------------------------
15155
+ ActiveBatch::BatchStatusCheckJobTest: test_reenqueues_itself_later_if_batch_is_not_done
15156
+ ---------------------------------------------------------------------------------------
15157
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [41436a15-d255-45b8-95ed-f0e3b1b0c78d] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15158
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [41436a15-d255-45b8-95ed-f0e3b1b0c78d] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: b51c7373-8eb9-425d-b3d5-391d9f1d55bd) to Test(test_queue) at 2015-09-29 17:14:37 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15159
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [41436a15-d255-45b8-95ed-f0e3b1b0c78d] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 1.71ms
15160
+ -------------------------------------------------------------------------------------------
15161
+ ActiveBatch::BatchStatusCheckJobTest: test_does_not_reenqueue_itself_later_if_batch_is_done
15162
+ -------------------------------------------------------------------------------------------
15163
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [1d732d83-7b91-4c03-9a6c-9b28bf1bb61b] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15164
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [1d732d83-7b91-4c03-9a6c-9b28bf1bb61b] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 3.67ms
15165
+ ----------------------------------------------------------------------------------
15166
+ ActiveBatch::BatchStatusCheckJobTest: test_uses_the_same_queue_than_the_work_units
15167
+ ----------------------------------------------------------------------------------
15168
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [6ab424e9-bcc8-49dc-828c-034e27796a0d] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15169
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [6ab424e9-bcc8-49dc-828c-034e27796a0d] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 653b2daf-cf53-4ed2-8dee-b94d0ac31974) to Test(test_queue) at 2015-09-29 17:14:37 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15170
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [6ab424e9-bcc8-49dc-828c-034e27796a0d] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 0.71ms
15171
+ -------------------------------------------------------------------
15172
+ ActiveBatch::WorkUnitsControllerTest: test_should_destroy_work_unit
15173
+ -------------------------------------------------------------------
15174
+ Processing by ActiveBatch::WorkUnitsController#destroy as HTML
15175
+ Parameters: {"id"=>"980190962"}
15176
+ Redirected to http://test.host/activejob_batch/work_units
15177
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
15178
+ -----------------------------------------------------------
15179
+ ActiveBatch::WorkUnitsControllerTest: test_should_get_index
15180
+ -----------------------------------------------------------
15181
+ Processing by ActiveBatch::WorkUnitsController#index as HTML
15182
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/index.html.erb (2.0ms)
15183
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
15184
+ ----------------------------------------------------------------
15185
+ ActiveBatch::WorkUnitsControllerTest: test_should_show_work_unit
15186
+ ----------------------------------------------------------------
15187
+ Processing by ActiveBatch::WorkUnitsController#show as HTML
15188
+ Parameters: {"id"=>"980190962"}
15189
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/show.html.erb (0.8ms)
15190
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
15191
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
15192
+  (0.1ms) begin transaction
15193
+ ---------------------------------------------------------------
15194
+ ActiveBatch::BatchJobTest: test_can_be_enqueued_outside_a_batch
15195
+ ---------------------------------------------------------------
15196
+ [ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] Performing BatchJob from Test(test_queue) with arguments: "test"
15197
+ [ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] ActiveBatch::WorkUnit Load (0.4ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "7e4827b3-f9a0-4936-af10-036e8d295c04"]]
15198
+ [ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "7e4827b3-f9a0-4936-af10-036e8d295c04"]]
15199
+ [ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "7e4827b3-f9a0-4936-af10-036e8d295c04"]]
15200
+ [ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] Performed BatchJob from Test(test_queue) in 11.73ms
15201
+  (0.1ms) rollback transaction
15202
+  (0.1ms) begin transaction
15203
+ Fixture Delete (0.5ms) DELETE FROM "active_batch_batches"
15204
+ Fixture Insert (0.4ms) INSERT INTO "active_batch_batches" ("job_class", "arguments", "created_at", "updated_at", "id") VALUES ('BatchJob', '["test"]', '2015-09-29 17:14:01', '2015-09-29 17:14:01', 980190962)
15205
+ Fixture Delete (0.1ms) DELETE FROM "active_batch_work_units"
15206
+ Fixture Insert (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "status", "created_at", "updated_at", "id") VALUES ('1234', 0, '2015-09-29 17:14:01', '2015-09-29 17:14:01', 980190962)
15207
+  (0.6ms) commit transaction
15208
+  (0.0ms) begin transaction
15209
+ -------------------------------------------------------------
15210
+ ActiveBatch::BatchesControllerTest: test_should_destroy_batch
15211
+ -------------------------------------------------------------
15212
+ ActiveBatch::Batch Load (0.2ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15213
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15214
+ Processing by ActiveBatch::BatchesController#destroy as HTML
15215
+ Parameters: {"id"=>"980190962"}
15216
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15217
+  (0.0ms) SAVEPOINT active_record_1
15218
+ SQL (0.2ms) DELETE FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? [["id", 980190962]]
15219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15220
+ Redirected to http://test.host/activejob_batch/batches
15221
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
15222
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_batches"
15223
+  (0.3ms) rollback transaction
15224
+  (0.0ms) begin transaction
15225
+ ---------------------------------------------------------
15226
+ ActiveBatch::BatchesControllerTest: test_should_get_index
15227
+ ---------------------------------------------------------
15228
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15229
+ Processing by ActiveBatch::BatchesController#index as HTML
15230
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches"
15231
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/index.html.erb (4.0ms)
15232
+ Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.1ms)
15233
+  (0.1ms) rollback transaction
15234
+  (0.0ms) begin transaction
15235
+ -------------------------------------------------------
15236
+ ActiveBatch::BatchesControllerTest: test_should_get_new
15237
+ -------------------------------------------------------
15238
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15239
+ Processing by ActiveBatch::BatchesController#new as HTML
15240
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/_form.html.erb (14.7ms)
15241
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/new.html.erb (18.4ms)
15242
+ Completed 200 OK in 20ms (Views: 19.7ms | ActiveRecord: 0.0ms)
15243
+  (0.1ms) rollback transaction
15244
+  (0.0ms) begin transaction
15245
+ ------------------------------------------------------------
15246
+ ActiveBatch::BatchesControllerTest: test_should_create_batch
15247
+ ------------------------------------------------------------
15248
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15249
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15250
+ Processing by ActiveBatch::BatchesController#create as HTML
15251
+ Parameters: {"batch"=>{"job_class"=>"BatchJob"}}
15252
+  (0.0ms) SAVEPOINT active_record_1
15253
+ SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "created_at", "updated_at") VALUES (?, ?, ?) [["job_class", "BatchJob"], ["created_at", "2015-09-29 17:14:01.931641"], ["updated_at", "2015-09-29 17:14:01.931641"]]
15254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15255
+ Redirected to http://test.host/activejob_batch/batches/980190963
15256
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
15257
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_batches"
15258
+  (0.3ms) rollback transaction
15259
+  (0.0ms) begin transaction
15260
+ ----------------------------------------------------------
15261
+ ActiveBatch::BatchesControllerTest: test_should_show_batch
15262
+ ----------------------------------------------------------
15263
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15264
+ Processing by ActiveBatch::BatchesController#show as HTML
15265
+ Parameters: {"id"=>"980190962"}
15266
+ ActiveBatch::Batch Load (0.0ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15267
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15268
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/show.html.erb (42.1ms)
15269
+ Completed 200 OK in 44ms (Views: 43.3ms | ActiveRecord: 0.2ms)
15270
+  (0.1ms) rollback transaction
15271
+  (0.0ms) begin transaction
15272
+ ----------------------------------------------------------------------------------
15273
+ ActiveBatch::BatchStatusCheckJobTest: test_uses_the_same_queue_than_the_work_units
15274
+ ----------------------------------------------------------------------------------
15275
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15276
+  (0.0ms) SAVEPOINT active_record_1
15277
+ SQL (0.3ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "36"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:01.988867"], ["updated_at", "2015-09-29 17:14:01.988867"]]
15278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15279
+  (0.0ms) SAVEPOINT active_record_1
15280
+ SQL (0.8ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "68"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:01.990760"], ["updated_at", "2015-09-29 17:14:01.990760"]]
15281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15282
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [ca80b531-5690-4d87-bd5f-656ebaf164c8] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15283
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [ca80b531-5690-4d87-bd5f-656ebaf164c8] ActiveBatch::WorkUnit Exists (0.1ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15284
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [ca80b531-5690-4d87-bd5f-656ebaf164c8] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 84d887e9-9f87-4523-8d9e-5493054d512d) to Test(test_queue) at 2015-09-29 17:15:02 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15285
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [ca80b531-5690-4d87-bd5f-656ebaf164c8] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 7.53ms
15286
+  (0.5ms) rollback transaction
15287
+  (0.0ms) begin transaction
15288
+ ---------------------------------------------------------------------------------------
15289
+ ActiveBatch::BatchStatusCheckJobTest: test_reenqueues_itself_later_if_batch_is_not_done
15290
+ ---------------------------------------------------------------------------------------
15291
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15292
+  (0.0ms) SAVEPOINT active_record_1
15293
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "47"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.004239"], ["updated_at", "2015-09-29 17:14:02.004239"]]
15294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15295
+  (0.0ms) SAVEPOINT active_record_1
15296
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "17"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.005775"], ["updated_at", "2015-09-29 17:14:02.005775"]]
15297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15298
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [cfdfea7d-1801-416a-996b-9bc6f45f2555] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15299
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [cfdfea7d-1801-416a-996b-9bc6f45f2555] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15300
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [cfdfea7d-1801-416a-996b-9bc6f45f2555] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 2e41d6fd-4a5d-4b8b-a6f4-3334c36fd38b) to Test(test_queue) at 2015-09-29 17:15:02 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15301
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [cfdfea7d-1801-416a-996b-9bc6f45f2555] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 0.83ms
15302
+  (0.4ms) rollback transaction
15303
+  (0.0ms) begin transaction
15304
+ -------------------------------------------------------------------------------------------
15305
+ ActiveBatch::BatchStatusCheckJobTest: test_does_not_reenqueue_itself_later_if_batch_is_done
15306
+ -------------------------------------------------------------------------------------------
15307
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15308
+  (0.0ms) SAVEPOINT active_record_1
15309
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "3"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.010188"], ["updated_at", "2015-09-29 17:14:02.010188"]]
15310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15311
+  (0.0ms) SAVEPOINT active_record_1
15312
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "8"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.011583"], ["updated_at", "2015-09-29 17:14:02.011583"]]
15313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15314
+  (0.0ms) SAVEPOINT active_record_1
15315
+ SQL (0.1ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 2], ["updated_at", "2015-09-29 17:14:02.012949"], ["id", 980190964]]
15316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15317
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15318
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15319
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] ActiveBatch::WorkUnit Load (0.3ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15320
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486]  (0.1ms) SAVEPOINT active_record_1
15321
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] SQL (0.1ms) UPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:02.019872"], ["id", 980190962]]
15322
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486]  (0.0ms) RELEASE SAVEPOINT active_record_1
15323
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 6.48ms
15324
+  (0.5ms) rollback transaction
15325
+  (0.1ms) begin transaction
15326
+ ------------------------------------------------------------------------------------------------
15327
+ ActiveBatch::BatchStatusCheckJobTest: test_calls_after_batch_with_proper_args_when_batch_is_done
15328
+ ------------------------------------------------------------------------------------------------
15329
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15330
+  (0.0ms) SAVEPOINT active_record_1
15331
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "46"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.023653"], ["updated_at", "2015-09-29 17:14:02.023653"]]
15332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15333
+  (0.0ms) SAVEPOINT active_record_1
15334
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "38"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:02.025292"], ["updated_at", "2015-09-29 17:14:02.025292"]]
15335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15336
+  (0.0ms) SAVEPOINT active_record_1
15337
+ SQL (0.1ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 2], ["updated_at", "2015-09-29 17:14:02.026529"], ["id", 980190964]]
15338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15339
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15340
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15341
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15342
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9]  (0.1ms) SAVEPOINT active_record_1
15343
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] SQL (0.1ms) UPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:02.031269"], ["id", 980190962]]
15344
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9]  (0.0ms) RELEASE SAVEPOINT active_record_1
15345
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 4.53ms
15346
+  (0.4ms) rollback transaction
15347
+  (0.0ms) begin transaction
15348
+ ---------------------------
15349
+ ActiveBatchTest: test_truth
15350
+ ---------------------------
15351
+  (0.0ms) rollback transaction
15352
+  (0.0ms) begin transaction
15353
+ --------------------------------------------------------------------
15354
+ ActiveBatch::JobTest: test_not_done_scope_returns_work_unit_not_done
15355
+ --------------------------------------------------------------------
15356
+  (0.0ms) SAVEPOINT active_record_1
15357
+ SQL (0.3ms) INSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", 2], ["created_at", "2015-09-29 17:14:02.035964"], ["updated_at", "2015-09-29 17:14:02.035964"]]
15358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15359
+  (0.0ms) SAVEPOINT active_record_1
15360
+ SQL (0.3ms) INSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", 1], ["created_at", "2015-09-29 17:14:02.037379"], ["updated_at", "2015-09-29 17:14:02.037379"]]
15361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15362
+  (0.0ms) SAVEPOINT active_record_1
15363
+ SQL (0.1ms) INSERT INTO "active_batch_work_units" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-29 17:14:02.038878"], ["updated_at", "2015-09-29 17:14:02.038878"]]
15364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15365
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15366
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15367
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
15368
+  (0.4ms) rollback transaction
15369
+  (0.0ms) begin transaction
15370
+ -------------------------------------------------------------------
15371
+ ActiveBatch::WorkUnitsControllerTest: test_should_destroy_work_unit
15372
+ -------------------------------------------------------------------
15373
+ ActiveBatch::WorkUnit Load (0.2ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15374
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_work_units"
15375
+ Processing by ActiveBatch::WorkUnitsController#destroy as HTML
15376
+ Parameters: {"id"=>"980190962"}
15377
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15378
+  (0.1ms) SAVEPOINT active_record_1
15379
+ SQL (0.2ms) DELETE FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? [["id", 980190962]]
15380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15381
+ Redirected to http://test.host/activejob_batch/work_units
15382
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
15383
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15384
+  (0.3ms) rollback transaction
15385
+  (0.0ms) begin transaction
15386
+ -----------------------------------------------------------
15387
+ ActiveBatch::WorkUnitsControllerTest: test_should_get_index
15388
+ -----------------------------------------------------------
15389
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15390
+ Processing by ActiveBatch::WorkUnitsController#index as HTML
15391
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units"
15392
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/index.html.erb (2.0ms)
15393
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
15394
+  (0.1ms) rollback transaction
15395
+  (0.0ms) begin transaction
15396
+ ----------------------------------------------------------------
15397
+ ActiveBatch::WorkUnitsControllerTest: test_should_show_work_unit
15398
+ ----------------------------------------------------------------
15399
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15400
+ Processing by ActiveBatch::WorkUnitsController#show as HTML
15401
+ Parameters: {"id"=>"980190962"}
15402
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15403
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/show.html.erb (0.7ms)
15404
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
15405
+  (0.1ms) rollback transaction
15406
+  (0.0ms) begin transaction
15407
+ ---------------------------------------------------------------------------
15408
+ ActiveBatch::BatchSchedulerJobTest: test_uses_same_queue_than_the_Batch_Job
15409
+ ---------------------------------------------------------------------------
15410
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: fce33a17-9059-4ee7-a805-b8b28a4ce862) to Test(test_queue) with arguments: "BatchJob"
15411
+  (0.0ms) rollback transaction
15412
+  (0.0ms) begin transaction
15413
+ ------------------------------------------------------
15414
+ ActiveBatch::BatchSchedulerJobTest: test_creates_batch
15415
+ ------------------------------------------------------
15416
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15417
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15418
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81]  (0.0ms) SAVEPOINT active_record_1
15419
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "9b462246-2124-4e29-bcc3-08f88b09ab81"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:02.066590"], ["updated_at", "2015-09-29 17:14:02.066590"]]
15420
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81]  (0.0ms) RELEASE SAVEPOINT active_record_1
15421
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 3.16ms
15422
+  (0.3ms) rollback transaction
15423
+  (0.0ms) begin transaction
15424
+ ------------------------------------------------------------------------
15425
+ ActiveBatch::BatchSchedulerJobTest: test_work_units_have_enqueued_status
15426
+ ------------------------------------------------------------------------
15427
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15428
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa]  (0.0ms) SAVEPOINT active_record_1
15429
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "87f02ab5-f4b6-488e-a4d3-268ed157cafa"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:02.070495"], ["updated_at", "2015-09-29 17:14:02.070495"]]
15430
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa]  (0.0ms) RELEASE SAVEPOINT active_record_1
15431
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.55ms
15432
+  (0.3ms) rollback transaction
15433
+  (0.0ms) begin transaction
15434
+ ------------------------------------------------------------------------------
15435
+ ActiveBatch::BatchSchedulerJobTest: test_enqueues_work_unit_jobs_and_check_job
15436
+ ------------------------------------------------------------------------------
15437
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15438
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84]  (0.0ms) SAVEPOINT active_record_1
15439
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "17df057b-d89e-4bda-8b7d-af139c966a84"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:02.073911"], ["updated_at", "2015-09-29 17:14:02.073911"]]
15440
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84]  (0.0ms) RELEASE SAVEPOINT active_record_1
15441
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.42ms
15442
+  (0.3ms) rollback transaction
15443
+  (0.1ms) begin transaction
15444
+ -----------------------------------------------------------
15445
+ ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
15446
+ -----------------------------------------------------------
15447
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15448
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15449
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94]  (0.1ms) SAVEPOINT active_record_1
15450
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:02.077750"], ["updated_at", "2015-09-29 17:14:02.077750"]]
15451
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94]  (0.1ms) RELEASE SAVEPOINT active_record_1
15452
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.88ms
15453
+  (0.3ms) rollback transaction
15454
+  (0.0ms) begin transaction
15455
+ -------------------------------------------------------------
15456
+ ActiveBatch::BatchSchedulerJobTest: test_batch_has_work_units
15457
+ -------------------------------------------------------------
15458
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15459
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145]  (0.0ms) SAVEPOINT active_record_1
15460
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "6ed25eff-63ed-416b-8c5c-a7e77954c145"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:02.081592"], ["updated_at", "2015-09-29 17:14:02.081592"]]
15461
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145]  (0.0ms) RELEASE SAVEPOINT active_record_1
15462
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.62ms
15463
+  (0.3ms) rollback transaction
15464
+  (0.0ms) begin transaction
15465
+ ---------------------------------------------------
15466
+ ActiveBatch::BatchedJobTest: test_can_perform_batch
15467
+ ---------------------------------------------------
15468
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: f87a9503-abd7-4110-bf1d-1a28a0087d5c) to Test(test_queue) with arguments: "BatchJob", 1, 2
15469
+  (0.0ms) rollback transaction
15470
+  (0.0ms) begin transaction
15471
+ --------------------------------------------------------------------
15472
+ ActiveBatch::BatchedJobTest: test_can_save_work_result_when_in_batch
15473
+ --------------------------------------------------------------------
15474
+  (0.0ms) SAVEPOINT active_record_1
15475
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?) [["job_id", "5b8cd6b9-8920-42e1-9e7d-abc94bd2e11e"], ["created_at", "2015-09-29 17:14:02.085740"], ["updated_at", "2015-09-29 17:14:02.085740"]]
15476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15477
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "5b8cd6b9-8920-42e1-9e7d-abc94bd2e11e"]]
15478
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "5b8cd6b9-8920-42e1-9e7d-abc94bd2e11e"]]
15479
+  (0.0ms) SAVEPOINT active_record_1
15480
+ SQL (0.2ms) UPDATE "active_batch_work_units" SET "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["work_result", "blah"], ["updated_at", "2015-09-29 17:14:02.087354"], ["id", 980190963]]
15481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15482
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190963]]
15483
+  (0.4ms) rollback transaction
15484
+  (0.0ms) begin transaction
15485
+ ----------------------------------------------------------------------------------
15486
+ ActiveBatch::BatchedJobTest: test_sets_status_to_failed_on_exception_when_in_batch
15487
+ ----------------------------------------------------------------------------------
15488
+  (0.0ms) SAVEPOINT active_record_1
15489
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?) [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"], ["created_at", "2015-09-29 17:14:02.089889"], ["updated_at", "2015-09-29 17:14:02.089889"]]
15490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15491
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] Performing RescueJob from Test(test_queue)
15492
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
15493
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
15494
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1]  (0.0ms) SAVEPOINT active_record_1
15495
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] SQL (0.2ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:02.091604"], ["id", 980190963]]
15496
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1]  (0.0ms) RELEASE SAVEPOINT active_record_1
15497
+ [ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] Performed RescueJob from Test(test_queue) in 1.65ms
15498
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
15499
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
15500
+  (0.0ms) SAVEPOINT active_record_1
15501
+ SQL (0.1ms) UPDATE "active_batch_work_units" SET "status" = ?, "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 3], ["work_result", "StandardError\n/Users/adrien/workspace/active_batch/test/jobs/rescue_job.rb:7:in `perform'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/execution.rb:32:in `block in perform_now'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `block in tag_logger'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `tag_logger'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/execution.rb:31:in `perform_now'\n/Users/adrien/workspace/active_batch/test/lib/active_batch/batched_job_test.rb:16:in `block in <class:BatchedJobTest>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:256:in `time_it'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:104:in `block in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:334:in `on_signal'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:103:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:781:in `run_one_method'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:308:in `run_one_method'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:295:in `each'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:295:in `block in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:334:in `on_signal'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:321:in `with_info_handler'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:294:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `block in __run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `map'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `__run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:129:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:56:in `block in autorun'"], ["updated_at", "2015-09-29 17:14:02.093384"], ["id", 980190963]]
15502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15503
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190963]]
15504
+  (0.4ms) rollback transaction
15505
+  (0.1ms) begin transaction
15506
+ -----------------------------------------------------------------------------
15507
+ ActiveBatch::WithActiveJobArgumentsTest: test_serializes_active_job_arguments
15508
+ -----------------------------------------------------------------------------
15509
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15510
+  (0.1ms) begin transaction
15511
+ ---------------------------------------------------
15512
+ ActiveBatch::BatchedJobTest: test_can_perform_batch
15513
+ ---------------------------------------------------
15514
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: cad36b2b-5b10-43d9-88d2-36c5b3cd0c7f) to Test(test_queue) with arguments: "BatchJob", 1, 2
15515
+  (0.0ms) rollback transaction
15516
+  (0.0ms) begin transaction
15517
+ --------------------------------------------------------------------
15518
+ ActiveBatch::BatchedJobTest: test_can_save_work_result_when_in_batch
15519
+ --------------------------------------------------------------------
15520
+  (0.0ms) SAVEPOINT active_record_1
15521
+ SQL (0.4ms) INSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?) [["job_id", "1b635a34-c604-42eb-9804-66fde8d0f82d"], ["created_at", "2015-09-29 17:14:10.097936"], ["updated_at", "2015-09-29 17:14:10.097936"]]
15522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15523
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "1b635a34-c604-42eb-9804-66fde8d0f82d"]]
15524
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "1b635a34-c604-42eb-9804-66fde8d0f82d"]]
15525
+  (0.0ms) SAVEPOINT active_record_1
15526
+ SQL (1.1ms) UPDATE "active_batch_work_units" SET "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["work_result", "blah"], ["updated_at", "2015-09-29 17:14:10.103913"], ["id", 980190963]]
15527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15528
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190963]]
15529
+  (1.8ms) rollback transaction
15530
+  (0.0ms) begin transaction
15531
+ ----------------------------------------------------------------------------------
15532
+ ActiveBatch::BatchedJobTest: test_sets_status_to_failed_on_exception_when_in_batch
15533
+ ----------------------------------------------------------------------------------
15534
+  (0.0ms) SAVEPOINT active_record_1
15535
+ SQL (0.3ms) INSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?) [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"], ["created_at", "2015-09-29 17:14:10.109578"], ["updated_at", "2015-09-29 17:14:10.109578"]]
15536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15537
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] Performing RescueJob from Test(test_queue)
15538
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
15539
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
15540
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969]  (0.0ms) SAVEPOINT active_record_1
15541
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] SQL (0.3ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:10.111651"], ["id", 980190963]]
15542
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969]  (0.0ms) RELEASE SAVEPOINT active_record_1
15543
+ [ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] Performed RescueJob from Test(test_queue) in 1.86ms
15544
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
15545
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1 [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
15546
+  (0.0ms) SAVEPOINT active_record_1
15547
+ SQL (0.1ms) UPDATE "active_batch_work_units" SET "status" = ?, "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 3], ["work_result", "StandardError\n/Users/adrien/workspace/active_batch/test/jobs/rescue_job.rb:7:in `perform'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/execution.rb:32:in `block in perform_now'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `block in tag_logger'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `tag_logger'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/activejob-4.2.4/lib/active_job/execution.rb:31:in `perform_now'\n/Users/adrien/workspace/active_batch/test/lib/active_batch/batched_job_test.rb:16:in `block in <class:BatchedJobTest>'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:108:in `block (3 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:205:in `capture_exceptions'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:105:in `block (2 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:256:in `time_it'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:104:in `block in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:334:in `on_signal'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:276:in `with_info_handler'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest/test.rb:103:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:781:in `run_one_method'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:308:in `run_one_method'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:296:in `block (2 levels) in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:295:in `each'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:295:in `block in run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:334:in `on_signal'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:321:in `with_info_handler'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:294:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `block in __run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `map'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:155:in `__run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:129:in `run'\n/Users/adrien/.rvm/gems/ruby-2.0.0-p195/gems/minitest-5.8.1/lib/minitest.rb:56:in `block in autorun'"], ["updated_at", "2015-09-29 17:14:10.113528"], ["id", 980190963]]
15548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15549
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190963]]
15550
+  (0.6ms) rollback transaction
15551
+  (0.0ms) begin transaction
15552
+ ---------------------------
15553
+ ActiveBatchTest: test_truth
15554
+ ---------------------------
15555
+  (0.0ms) rollback transaction
15556
+  (0.1ms) begin transaction
15557
+ Fixture Delete (0.3ms) DELETE FROM "active_batch_batches"
15558
+ Fixture Insert (0.1ms) INSERT INTO "active_batch_batches" ("job_class", "arguments", "created_at", "updated_at", "id") VALUES ('BatchJob', '["test"]', '2015-09-29 17:14:10', '2015-09-29 17:14:10', 980190962)
15559
+ Fixture Delete (0.0ms) DELETE FROM "active_batch_work_units"
15560
+ Fixture Insert (0.0ms) INSERT INTO "active_batch_work_units" ("job_id", "status", "created_at", "updated_at", "id") VALUES ('1234', 0, '2015-09-29 17:14:10', '2015-09-29 17:14:10', 980190962)
15561
+  (0.6ms) commit transaction
15562
+  (0.0ms) begin transaction
15563
+ ------------------------------------------------------------------------------------------------
15564
+ ActiveBatch::BatchStatusCheckJobTest: test_calls_after_batch_with_proper_args_when_batch_is_done
15565
+ ------------------------------------------------------------------------------------------------
15566
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15567
+  (0.1ms) SAVEPOINT active_record_1
15568
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "89"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.164238"], ["updated_at", "2015-09-29 17:14:10.164238"]]
15569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15570
+  (0.0ms) SAVEPOINT active_record_1
15571
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "35"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.165881"], ["updated_at", "2015-09-29 17:14:10.165881"]]
15572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15573
+  (0.0ms) SAVEPOINT active_record_1
15574
+ SQL (0.0ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 2], ["updated_at", "2015-09-29 17:14:10.167045"], ["id", 980190964]]
15575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15576
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15577
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] ActiveBatch::WorkUnit Exists (0.1ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15578
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15579
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d]  (0.1ms) SAVEPOINT active_record_1
15580
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] SQL (0.1ms) UPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:10.176390"], ["id", 980190962]]
15581
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d]  (0.0ms) RELEASE SAVEPOINT active_record_1
15582
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 8.76ms
15583
+  (0.6ms) rollback transaction
15584
+  (0.1ms) begin transaction
15585
+ -------------------------------------------------------------------------------------------
15586
+ ActiveBatch::BatchStatusCheckJobTest: test_does_not_reenqueue_itself_later_if_batch_is_done
15587
+ -------------------------------------------------------------------------------------------
15588
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15589
+  (0.0ms) SAVEPOINT active_record_1
15590
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "7"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.180803"], ["updated_at", "2015-09-29 17:14:10.180803"]]
15591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15592
+  (0.0ms) SAVEPOINT active_record_1
15593
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "37"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.182206"], ["updated_at", "2015-09-29 17:14:10.182206"]]
15594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15595
+  (0.0ms) SAVEPOINT active_record_1
15596
+ SQL (0.0ms) UPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ? [["status", 2], ["updated_at", "2015-09-29 17:14:10.183305"], ["id", 980190964]]
15597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15598
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15599
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15600
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190962]]
15601
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8]  (0.0ms) SAVEPOINT active_record_1
15602
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] SQL (0.1ms) UPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ? [["status", 1], ["updated_at", "2015-09-29 17:14:10.187208"], ["id", 980190962]]
15603
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8]  (0.0ms) RELEASE SAVEPOINT active_record_1
15604
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 3.8ms
15605
+  (0.6ms) rollback transaction
15606
+  (0.0ms) begin transaction
15607
+ ----------------------------------------------------------------------------------
15608
+ ActiveBatch::BatchStatusCheckJobTest: test_uses_the_same_queue_than_the_work_units
15609
+ ----------------------------------------------------------------------------------
15610
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15611
+  (0.0ms) SAVEPOINT active_record_1
15612
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "85"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.190276"], ["updated_at", "2015-09-29 17:14:10.190276"]]
15613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15614
+  (0.0ms) SAVEPOINT active_record_1
15615
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "23"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.191653"], ["updated_at", "2015-09-29 17:14:10.191653"]]
15616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15617
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [b6bb8ba4-4924-40ee-9257-d68e04f13178] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15618
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [b6bb8ba4-4924-40ee-9257-d68e04f13178] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15619
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [b6bb8ba4-4924-40ee-9257-d68e04f13178] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: dafe1ae1-284a-4d68-abf2-3021b7886a70) to Test(test_queue) at 2015-09-29 17:15:10 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15620
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [b6bb8ba4-4924-40ee-9257-d68e04f13178] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 1.25ms
15621
+  (0.4ms) rollback transaction
15622
+  (0.0ms) begin transaction
15623
+ ---------------------------------------------------------------------------------------
15624
+ ActiveBatch::BatchStatusCheckJobTest: test_reenqueues_itself_later_if_batch_is_not_done
15625
+ ---------------------------------------------------------------------------------------
15626
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
15627
+  (0.0ms) SAVEPOINT active_record_1
15628
+ SQL (0.1ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 2], ["work_result", "39"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.196557"], ["updated_at", "2015-09-29 17:14:10.196557"]]
15629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15630
+  (0.0ms) SAVEPOINT active_record_1
15631
+ SQL (0.2ms) INSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", 1], ["work_result", "17"], ["active_batch_batches_id", 980190962], ["created_at", "2015-09-29 17:14:10.198068"], ["updated_at", "2015-09-29 17:14:10.198068"]]
15632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15633
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [7f6c83a2-e5eb-40d2-bdbe-05f7d5300b71] Performing ActiveBatch::BatchStatusCheckJob from Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190962
15634
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [7f6c83a2-e5eb-40d2-bdbe-05f7d5300b71] ActiveBatch::WorkUnit Exists (0.0ms) SELECT 1 AS one FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND ("active_batch_work_units"."status" != ?) LIMIT 1 [["active_batch_batches_id", 980190962], ["status", 2]]
15635
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [7f6c83a2-e5eb-40d2-bdbe-05f7d5300b71] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 696508b7-8e57-4e8e-867c-ffc7b325dc30) to Test(test_queue) at 2015-09-29 17:15:10 UTC with arguments: gid://dummy/ActiveBatch::Batch/980190962
15636
+ [ActiveJob] [ActiveBatch::BatchStatusCheckJob] [7f6c83a2-e5eb-40d2-bdbe-05f7d5300b71] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 0.85ms
15637
+  (0.5ms) rollback transaction
15638
+  (0.0ms) begin transaction
15639
+ -------------------------------------------------------------------
15640
+ ActiveBatch::WorkUnitsControllerTest: test_should_destroy_work_unit
15641
+ -------------------------------------------------------------------
15642
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15643
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15644
+ Processing by ActiveBatch::WorkUnitsController#destroy as HTML
15645
+ Parameters: {"id"=>"980190962"}
15646
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15647
+  (0.0ms) SAVEPOINT active_record_1
15648
+ SQL (0.2ms) DELETE FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? [["id", 980190962]]
15649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15650
+ Redirected to http://test.host/activejob_batch/work_units
15651
+ Completed 302 Found in 29ms (ActiveRecord: 0.4ms)
15652
+  (0.0ms) SELECT COUNT(*) FROM "active_batch_work_units"
15653
+  (0.4ms) rollback transaction
15654
+  (0.0ms) begin transaction
15655
+ -----------------------------------------------------------
15656
+ ActiveBatch::WorkUnitsControllerTest: test_should_get_index
15657
+ -----------------------------------------------------------
15658
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15659
+ Processing by ActiveBatch::WorkUnitsController#index as HTML
15660
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units"
15661
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/index.html.erb (2.4ms)
15662
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms)
15663
+  (0.1ms) rollback transaction
15664
+  (0.0ms) begin transaction
15665
+ ----------------------------------------------------------------
15666
+ ActiveBatch::WorkUnitsControllerTest: test_should_show_work_unit
15667
+ ----------------------------------------------------------------
15668
+ ActiveBatch::WorkUnit Load (0.1ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15669
+ Processing by ActiveBatch::WorkUnitsController#show as HTML
15670
+ Parameters: {"id"=>"980190962"}
15671
+ ActiveBatch::WorkUnit Load (0.0ms) SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
15672
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/work_units/show.html.erb (0.8ms)
15673
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
15674
+  (0.1ms) rollback transaction
15675
+  (0.0ms) begin transaction
15676
+ ------------------------------------------------------------------------------
15677
+ ActiveBatch::BatchSchedulerJobTest: test_enqueues_work_unit_jobs_and_check_job
15678
+ ------------------------------------------------------------------------------
15679
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15680
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) SAVEPOINT active_record_1
15681
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] SQL (0.3ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "4c839a9d-ea16-49ee-b4c2-376c34defa34"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:10.275896"], ["updated_at", "2015-09-29 17:14:10.275896"]]
15682
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) RELEASE SAVEPOINT active_record_1
15683
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) SAVEPOINT active_record_1
15684
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "7ef68cdb-d517-461a-85eb-2eeacfe11128"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.278932"], ["updated_at", "2015-09-29 17:14:10.278932"]]
15685
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) RELEASE SAVEPOINT active_record_1
15686
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Enqueued BatchJob (Job ID: 7ef68cdb-d517-461a-85eb-2eeacfe11128) to Test(test_queue) with arguments: "t"
15687
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) SAVEPOINT active_record_1
15688
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "35338f07-5a9c-4801-b82c-9a86acc1de68"], ["arguments", "[\"e\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.281010"], ["updated_at", "2015-09-29 17:14:10.281010"]]
15689
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) RELEASE SAVEPOINT active_record_1
15690
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Enqueued BatchJob (Job ID: 35338f07-5a9c-4801-b82c-9a86acc1de68) to Test(test_queue) with arguments: "e"
15691
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) SAVEPOINT active_record_1
15692
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] SQL (0.0ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "19cf548e-658d-48f5-b26d-6002b95560de"], ["arguments", "[\"s\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.282342"], ["updated_at", "2015-09-29 17:14:10.282342"]]
15693
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) RELEASE SAVEPOINT active_record_1
15694
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Enqueued BatchJob (Job ID: 19cf548e-658d-48f5-b26d-6002b95560de) to Test(test_queue) with arguments: "s"
15695
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) SAVEPOINT active_record_1
15696
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] SQL (0.0ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "f1404b43-11ad-4889-aa77-dc21b21ee515"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.283669"], ["updated_at", "2015-09-29 17:14:10.283669"]]
15697
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34]  (0.0ms) RELEASE SAVEPOINT active_record_1
15698
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Enqueued BatchJob (Job ID: f1404b43-11ad-4889-aa77-dc21b21ee515) to Test(test_queue) with arguments: "t"
15699
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 85e0ae5e-61be-48bd-95b2-094c8996990d) to Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190963
15700
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 9.65ms
15701
+  (0.5ms) rollback transaction
15702
+  (0.0ms) begin transaction
15703
+ -----------------------------------------------------------
15704
+ ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
15705
+ -----------------------------------------------------------
15706
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15707
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15708
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) SAVEPOINT active_record_1
15709
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "108cc120-2644-4c83-b220-13ca5c47d7b4"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:10.287061"], ["updated_at", "2015-09-29 17:14:10.287061"]]
15710
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) RELEASE SAVEPOINT active_record_1
15711
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) SAVEPOINT active_record_1
15712
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "44a70364-bdcf-4e14-b98c-e7f90956243a"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.289677"], ["updated_at", "2015-09-29 17:14:10.289677"]]
15713
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) RELEASE SAVEPOINT active_record_1
15714
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Enqueued BatchJob (Job ID: 44a70364-bdcf-4e14-b98c-e7f90956243a) to Test(test_queue) with arguments: "t"
15715
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) SAVEPOINT active_record_1
15716
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "a8633bd8-65c2-4938-ac4d-9afaad65c636"], ["arguments", "[\"e\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.292014"], ["updated_at", "2015-09-29 17:14:10.292014"]]
15717
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) RELEASE SAVEPOINT active_record_1
15718
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Enqueued BatchJob (Job ID: a8633bd8-65c2-4938-ac4d-9afaad65c636) to Test(test_queue) with arguments: "e"
15719
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) SAVEPOINT active_record_1
15720
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "42dcc0a2-1592-48cc-bb36-76f4080d478a"], ["arguments", "[\"s\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.293718"], ["updated_at", "2015-09-29 17:14:10.293718"]]
15721
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.1ms) RELEASE SAVEPOINT active_record_1
15722
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Enqueued BatchJob (Job ID: 42dcc0a2-1592-48cc-bb36-76f4080d478a) to Test(test_queue) with arguments: "s"
15723
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) SAVEPOINT active_record_1
15724
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "90bd1d0f-ca07-4d94-9763-fc6c023dedd4"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.295854"], ["updated_at", "2015-09-29 17:14:10.295854"]]
15725
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4]  (0.0ms) RELEASE SAVEPOINT active_record_1
15726
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Enqueued BatchJob (Job ID: 90bd1d0f-ca07-4d94-9763-fc6c023dedd4) to Test(test_queue) with arguments: "t"
15727
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: c5ea4ebc-cc5f-431d-ba31-32d67d0c2f91) to Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190963
15728
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 10.78ms
15729
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_batches"
15730
+  (5.1ms) rollback transaction
15731
+  (0.1ms) begin transaction
15732
+ ---------------------------------------------------------------------------
15733
+ ActiveBatch::BatchSchedulerJobTest: test_uses_same_queue_than_the_Batch_Job
15734
+ ---------------------------------------------------------------------------
15735
+ [ActiveJob] Enqueued ActiveBatch::BatchSchedulerJob (Job ID: 08cfc19b-de24-45c2-9ecc-384ab9b0ce03) to Test(test_queue) with arguments: "BatchJob"
15736
+  (0.0ms) rollback transaction
15737
+  (0.0ms) begin transaction
15738
+ -------------------------------------------------------------
15739
+ ActiveBatch::BatchSchedulerJobTest: test_batch_has_work_units
15740
+ -------------------------------------------------------------
15741
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15742
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) SAVEPOINT active_record_1
15743
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "cbf496cb-8ac8-4139-85dd-e33b4feef766"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:10.304800"], ["updated_at", "2015-09-29 17:14:10.304800"]]
15744
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) RELEASE SAVEPOINT active_record_1
15745
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) SAVEPOINT active_record_1
15746
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] SQL (0.3ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "cffd3869-c9fc-499f-98da-f6272969b6df"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.307447"], ["updated_at", "2015-09-29 17:14:10.307447"]]
15747
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) RELEASE SAVEPOINT active_record_1
15748
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Enqueued BatchJob (Job ID: cffd3869-c9fc-499f-98da-f6272969b6df) to Test(test_queue) with arguments: "t"
15749
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) SAVEPOINT active_record_1
15750
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "15483e31-4232-4e8e-a057-a934a2661cfb"], ["arguments", "[\"e\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.309857"], ["updated_at", "2015-09-29 17:14:10.309857"]]
15751
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) RELEASE SAVEPOINT active_record_1
15752
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Enqueued BatchJob (Job ID: 15483e31-4232-4e8e-a057-a934a2661cfb) to Test(test_queue) with arguments: "e"
15753
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) SAVEPOINT active_record_1
15754
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "08fc5485-6598-4810-8eec-5b1641fd47d5"], ["arguments", "[\"s\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.311663"], ["updated_at", "2015-09-29 17:14:10.311663"]]
15755
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) RELEASE SAVEPOINT active_record_1
15756
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Enqueued BatchJob (Job ID: 08fc5485-6598-4810-8eec-5b1641fd47d5) to Test(test_queue) with arguments: "s"
15757
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) SAVEPOINT active_record_1
15758
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "edc929fd-c6d9-4b8e-9aed-a84968ecb305"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.313478"], ["updated_at", "2015-09-29 17:14:10.313478"]]
15759
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766]  (0.0ms) RELEASE SAVEPOINT active_record_1
15760
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Enqueued BatchJob (Job ID: edc929fd-c6d9-4b8e-9aed-a84968ecb305) to Test(test_queue) with arguments: "t"
15761
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 72d20205-c30b-4c92-99de-dc9ab8dde771) to Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190963
15762
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 10.43ms
15763
+ ActiveBatch::Batch Load (0.1ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."job_id" = ? LIMIT 1 [["job_id", "cbf496cb-8ac8-4139-85dd-e33b4feef766"]]
15764
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? [["active_batch_batches_id", 980190963]]
15765
+  (2.0ms) rollback transaction
15766
+  (0.0ms) begin transaction
15767
+ ------------------------------------------------------------------------
15768
+ ActiveBatch::BatchSchedulerJobTest: test_work_units_have_enqueued_status
15769
+ ------------------------------------------------------------------------
15770
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15771
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) SAVEPOINT active_record_1
15772
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "512122f3-38fe-4e3d-9e22-f2354f03ef5a"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:10.319298"], ["updated_at", "2015-09-29 17:14:10.319298"]]
15773
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15774
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) SAVEPOINT active_record_1
15775
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "a4e3e3e2-77ea-4afe-897a-b3d2f99a8bce"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.321839"], ["updated_at", "2015-09-29 17:14:10.321839"]]
15776
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15777
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Enqueued BatchJob (Job ID: a4e3e3e2-77ea-4afe-897a-b3d2f99a8bce) to Test(test_queue) with arguments: "t"
15778
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) SAVEPOINT active_record_1
15779
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "7ffd03a5-c36d-43c2-ba20-0515cc2dca24"], ["arguments", "[\"e\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.324066"], ["updated_at", "2015-09-29 17:14:10.324066"]]
15780
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15781
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Enqueued BatchJob (Job ID: 7ffd03a5-c36d-43c2-ba20-0515cc2dca24) to Test(test_queue) with arguments: "e"
15782
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) SAVEPOINT active_record_1
15783
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] SQL (0.0ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "823984d1-47c1-4226-8148-dc6e049667bf"], ["arguments", "[\"s\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.325438"], ["updated_at", "2015-09-29 17:14:10.325438"]]
15784
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15785
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Enqueued BatchJob (Job ID: 823984d1-47c1-4226-8148-dc6e049667bf) to Test(test_queue) with arguments: "s"
15786
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) SAVEPOINT active_record_1
15787
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "c3c2eded-dac0-46b3-803b-129221f2015b"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.326884"], ["updated_at", "2015-09-29 17:14:10.326884"]]
15788
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a]  (0.0ms) RELEASE SAVEPOINT active_record_1
15789
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Enqueued BatchJob (Job ID: c3c2eded-dac0-46b3-803b-129221f2015b) to Test(test_queue) with arguments: "t"
15790
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: 41547b18-92d3-4faf-8eba-dd9b95026840) to Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190963
15791
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 9.37ms
15792
+ ActiveBatch::Batch Load (0.0ms) SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."job_id" = ? LIMIT 1 [["job_id", "512122f3-38fe-4e3d-9e22-f2354f03ef5a"]]
15793
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ? AND "active_batch_work_units"."status" = ? [["active_batch_batches_id", 980190963], ["status", 0]]
15794
+  (0.6ms) rollback transaction
15795
+  (0.0ms) begin transaction
15796
+ ------------------------------------------------------
15797
+ ActiveBatch::BatchSchedulerJobTest: test_creates_batch
15798
+ ------------------------------------------------------
15799
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15800
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Performing ActiveBatch::BatchSchedulerJob from Test(test_queue) with arguments: "BatchJob", "test"
15801
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) SAVEPOINT active_record_1
15802
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] SQL (0.2ms) INSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_class", "BatchJob"], ["job_id", "53a23388-d9f0-4283-a14c-e8914f1c8856"], ["arguments", "[\"test\"]"], ["created_at", "2015-09-29 17:14:10.331576"], ["updated_at", "2015-09-29 17:14:10.331576"]]
15803
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) RELEASE SAVEPOINT active_record_1
15804
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) SAVEPOINT active_record_1
15805
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] SQL (0.2ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "85e94233-954d-46b8-9db3-b671fb7c9af8"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.333935"], ["updated_at", "2015-09-29 17:14:10.333935"]]
15806
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) RELEASE SAVEPOINT active_record_1
15807
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Enqueued BatchJob (Job ID: 85e94233-954d-46b8-9db3-b671fb7c9af8) to Test(test_queue) with arguments: "t"
15808
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) SAVEPOINT active_record_1
15809
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "c7a9316e-66c8-47e2-8fcd-2550c5eaae97"], ["arguments", "[\"e\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.336050"], ["updated_at", "2015-09-29 17:14:10.336050"]]
15810
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) RELEASE SAVEPOINT active_record_1
15811
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Enqueued BatchJob (Job ID: c7a9316e-66c8-47e2-8fcd-2550c5eaae97) to Test(test_queue) with arguments: "e"
15812
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) SAVEPOINT active_record_1
15813
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] SQL (0.0ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "734ee09f-8730-49a4-8c39-75c71bce3ce8"], ["arguments", "[\"s\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.337425"], ["updated_at", "2015-09-29 17:14:10.337425"]]
15814
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) RELEASE SAVEPOINT active_record_1
15815
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Enqueued BatchJob (Job ID: 734ee09f-8730-49a4-8c39-75c71bce3ce8) to Test(test_queue) with arguments: "s"
15816
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) SAVEPOINT active_record_1
15817
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] SQL (0.1ms) INSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["job_id", "82320c57-4c01-433d-8120-101e2355bd95"], ["arguments", "[\"t\"]"], ["active_batch_batches_id", 980190963], ["created_at", "2015-09-29 17:14:10.338873"], ["updated_at", "2015-09-29 17:14:10.338873"]]
15818
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856]  (0.0ms) RELEASE SAVEPOINT active_record_1
15819
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Enqueued BatchJob (Job ID: 82320c57-4c01-433d-8120-101e2355bd95) to Test(test_queue) with arguments: "t"
15820
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Enqueued ActiveBatch::BatchStatusCheckJob (Job ID: e22e8cf5-4d83-49eb-8a3a-7b57e7f40a9c) to Test(test_queue) with arguments: gid://dummy/ActiveBatch::Batch/980190963
15821
+ [ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 9.08ms
15822
+  (0.1ms) SELECT COUNT(*) FROM "active_batch_work_units"
15823
+  (0.5ms) rollback transaction
15824
+  (0.0ms) begin transaction
15825
+ -----------------------------------------------------------------------------
15826
+ ActiveBatch::WithActiveJobArgumentsTest: test_serializes_active_job_arguments
15827
+ -----------------------------------------------------------------------------
15828
+ ------------------------------------------------------------
15829
+ ActiveBatch::BatchesControllerTest: test_should_create_batch
15830
+ ------------------------------------------------------------
15831
+ Processing by ActiveBatch::BatchesController#create as HTML
15832
+ Parameters: {"batch"=>{"job_class"=>"BatchJob"}}
15833
+ Redirected to http://test.host/activejob_batch/batches/980190963
15834
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
15835
+ ----------------------------------------------------------
15836
+ ActiveBatch::BatchesControllerTest: test_should_show_batch
15837
+ ----------------------------------------------------------
15838
+ Processing by ActiveBatch::BatchesController#show as HTML
15839
+ Parameters: {"id"=>"980190962"}
15840
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/show.html.erb (1.4ms)
15841
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
15842
+ ---------------------------------------------------------
15843
+ ActiveBatch::BatchesControllerTest: test_should_get_index
15844
+ ---------------------------------------------------------
15845
+ Processing by ActiveBatch::BatchesController#index as HTML
15846
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/index.html.erb (1.5ms)
15847
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)
15848
+ -------------------------------------------------------
15849
+ ActiveBatch::BatchesControllerTest: test_should_get_new
15850
+ -------------------------------------------------------
15851
+ Processing by ActiveBatch::BatchesController#new as HTML
15852
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/_form.html.erb (13.0ms)
15853
+ Rendered /Users/adrien/workspace/active_batch/app/views/active_batch/batches/new.html.erb (16.6ms)
15854
+ Completed 200 OK in 18ms (Views: 17.8ms | ActiveRecord: 0.0ms)
15855
+ -------------------------------------------------------------
15856
+ ActiveBatch::BatchesControllerTest: test_should_destroy_batch
15857
+ -------------------------------------------------------------
15858
+ Processing by ActiveBatch::BatchesController#destroy as HTML
15859
+ Parameters: {"id"=>"980190962"}
15860
+ Redirected to http://test.host/activejob_batch/batches
15861
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
15862
+ ---------------------------------------------------------------
15863
+ ActiveBatch::BatchJobTest: test_can_be_enqueued_outside_a_batch
15864
+ ---------------------------------------------------------------
15865
+ [ActiveJob] [BatchJob] [8fbbb148-3990-4ddf-86aa-4d4e6eaa771d] Performing BatchJob from Test(test_queue) with arguments: "test"
15866
+ [ActiveJob] [BatchJob] [8fbbb148-3990-4ddf-86aa-4d4e6eaa771d] Performed BatchJob from Test(test_queue) in 0.66ms
15867
+ --------------------------------------------------------------------
15868
+ ActiveBatch::JobTest: test_not_done_scope_returns_work_unit_not_done
15869
+ --------------------------------------------------------------------
@@ -5,7 +5,6 @@ module ActiveBatch
5
5
 
6
6
  test 'can save work result when in batch' do
7
7
  @batched_job = BatchJob.new
8
- @batched_job.in_batch = true
9
8
  @work_unit = WorkUnit.create(job_id: @batched_job.job_id)
10
9
  @batched_job.save_result('blah')
11
10
  assert_equal 'blah', @work_unit.reload.work_result
@@ -13,7 +12,6 @@ module ActiveBatch
13
12
 
14
13
  test 'sets status to failed on exception when in batch' do
15
14
  @rescue_job = RescueJob.new
16
- @rescue_job.in_batch = true
17
15
  @work_unit = WorkUnit.create(job_id: @rescue_job.job_id)
18
16
  @rescue_job.perform_now rescue nil
19
17
  assert @work_unit.reload.failed?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - adrien