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 +4 -4
- data/app/jobs/active_batch/batch_scheduler_job.rb +0 -1
- data/lib/active_batch/batched_job.rb +8 -6
- data/lib/active_batch/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +890 -0
- data/test/lib/active_batch/batched_job_test.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d440d86d0bd420d8e48f7db815c8a190e2641aed
|
4
|
+
data.tar.gz: 16e06ae73bcbc2a847040797f7fc40ea118f6688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/active_batch/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14981
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14982
|
+
---------------------------
|
14983
|
+
ActiveBatchTest: test_truth
|
14984
|
+
---------------------------
|
14985
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
14986
|
+
[1m[35m (0.0ms)[0m begin transaction
|
14987
|
+
--------------------------------------------------------------------
|
14988
|
+
ActiveBatch::JobTest: test_not_done_scope_returns_work_unit_not_done
|
14989
|
+
--------------------------------------------------------------------
|
14990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
14991
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14993
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
14994
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", 1], ["created_at", "2015-09-29 17:13:37.053716"], ["updated_at", "2015-09-29 17:13:37.053716"]]
|
14995
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
14996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
14997
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14999
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
|
15000
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?)[0m [["status", 2]]
|
15001
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
|
15002
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
15003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15004
|
+
------------------------------------------------------
|
15005
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_batch
|
15006
|
+
------------------------------------------------------
|
15007
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units"[0m
|
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] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15010
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [b931e3c5-7617-48f5-bd80-f2f181e3b992] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
15014
|
+
[1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15020
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15022
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [a6f6fc35-28d9-445c-95a5-ad95a5a2cb5a] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.79ms
|
15023
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
15024
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15025
|
+
-----------------------------------------------------------
|
15026
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
|
15027
|
+
-----------------------------------------------------------
|
15028
|
+
[1m[35m (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15031
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15033
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [ff3f73e2-68ab-49ba-a21a-19699d345402] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.38ms
|
15034
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
15035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
15041
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15047
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cb9846b1-0bd1-4029-92c5-ac3748fb2647] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
15051
|
+
[1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15057
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15059
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [76f883b0-2b4b-4c54-bfc0-be94a3e1aad9] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.46ms
|
15060
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15061
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15062
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "active_batch_batches"
|
15063
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
15064
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "active_batch_work_units"
|
15065
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
15066
|
+
[1m[35m (1.0ms)[0m commit transaction
|
15067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15068
|
+
----------------------------------------------------------
|
15069
|
+
ActiveBatch::BatchesControllerTest: test_should_show_batch
|
15070
|
+
----------------------------------------------------------
|
15071
|
+
[1m[35mActiveBatch::Batch Load (0.2ms)[0m 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
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15075
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15080
|
+
-------------------------------------------------------------
|
15081
|
+
ActiveBatch::BatchesControllerTest: test_should_destroy_batch
|
15082
|
+
-------------------------------------------------------------
|
15083
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15084
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "active_batch_batches"
|
15085
|
+
Processing by ActiveBatch::BatchesController#destroy as HTML
|
15086
|
+
Parameters: {"id"=>"980190962"}
|
15087
|
+
[1m[36mActiveBatch::Batch Load (0.0ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15088
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15089
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ?[0m [["id", 980190962]]
|
15090
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15091
|
+
Redirected to http://test.host/activejob_batch/batches
|
15092
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
15093
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "active_batch_batches"[0m
|
15094
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15095
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15096
|
+
---------------------------------------------------------
|
15097
|
+
ActiveBatch::BatchesControllerTest: test_should_get_index
|
15098
|
+
---------------------------------------------------------
|
15099
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m 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
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15105
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15106
|
+
-------------------------------------------------------
|
15107
|
+
ActiveBatch::BatchesControllerTest: test_should_get_new
|
15108
|
+
-------------------------------------------------------
|
15109
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15116
|
+
------------------------------------------------------------
|
15117
|
+
ActiveBatch::BatchesControllerTest: test_should_create_batch
|
15118
|
+
------------------------------------------------------------
|
15119
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15120
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "active_batch_batches"
|
15121
|
+
Processing by ActiveBatch::BatchesController#create as HTML
|
15122
|
+
Parameters: {"batch"=>{"job_class"=>"BatchJob"}}
|
15123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15124
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15126
|
+
Redirected to http://test.host/activejob_batch/batches/980190963
|
15127
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
15128
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "active_batch_batches"
|
15129
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
15130
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15192
|
+
[1m[35m (0.1ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.4ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "7e4827b3-f9a0-4936-af10-036e8d295c04"]]
|
15198
|
+
[ActiveJob] [BatchJob] [7e4827b3-f9a0-4936-af10-036e8d295c04] [1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15203
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "active_batch_batches"
|
15204
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
15205
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "active_batch_work_units"
|
15206
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
15207
|
+
[1m[35m (0.6ms)[0m commit transaction
|
15208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15209
|
+
-------------------------------------------------------------
|
15210
|
+
ActiveBatch::BatchesControllerTest: test_should_destroy_batch
|
15211
|
+
-------------------------------------------------------------
|
15212
|
+
[1m[35mActiveBatch::Batch Load (0.2ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15213
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_batches"[0m
|
15214
|
+
Processing by ActiveBatch::BatchesController#destroy as HTML
|
15215
|
+
Parameters: {"id"=>"980190962"}
|
15216
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15218
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? [["id", 980190962]]
|
15219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15220
|
+
Redirected to http://test.host/activejob_batch/batches
|
15221
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
15222
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "active_batch_batches"
|
15223
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
15224
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15225
|
+
---------------------------------------------------------
|
15226
|
+
ActiveBatch::BatchesControllerTest: test_should_get_index
|
15227
|
+
---------------------------------------------------------
|
15228
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15229
|
+
Processing by ActiveBatch::BatchesController#index as HTML
|
15230
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15234
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15235
|
+
-------------------------------------------------------
|
15236
|
+
ActiveBatch::BatchesControllerTest: test_should_get_new
|
15237
|
+
-------------------------------------------------------
|
15238
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15244
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15245
|
+
------------------------------------------------------------
|
15246
|
+
ActiveBatch::BatchesControllerTest: test_should_create_batch
|
15247
|
+
------------------------------------------------------------
|
15248
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15249
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_batches"[0m
|
15250
|
+
Processing by ActiveBatch::BatchesController#create as HTML
|
15251
|
+
Parameters: {"batch"=>{"job_class"=>"BatchJob"}}
|
15252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15253
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["job_class", "BatchJob"], ["created_at", "2015-09-29 17:14:01.931641"], ["updated_at", "2015-09-29 17:14:01.931641"]]
|
15254
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "active_batch_batches"[0m
|
15258
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15260
|
+
----------------------------------------------------------
|
15261
|
+
ActiveBatch::BatchesControllerTest: test_should_show_batch
|
15262
|
+
----------------------------------------------------------
|
15263
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m 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
|
+
[1m[36mActiveBatch::Batch Load (0.0ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15267
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15272
|
+
----------------------------------------------------------------------------------
|
15273
|
+
ActiveBatch::BatchStatusCheckJobTest: test_uses_the_same_queue_than_the_work_units
|
15274
|
+
----------------------------------------------------------------------------------
|
15275
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15277
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15279
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15280
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35mActiveBatch::WorkUnit Exists (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
15287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15288
|
+
---------------------------------------------------------------------------------------
|
15289
|
+
ActiveBatch::BatchStatusCheckJobTest: test_reenqueues_itself_later_if_batch_is_not_done
|
15290
|
+
---------------------------------------------------------------------------------------
|
15291
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15292
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15293
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15296
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35mActiveBatch::WorkUnit Exists (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
15303
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15304
|
+
-------------------------------------------------------------------------------------------
|
15305
|
+
ActiveBatch::BatchStatusCheckJobTest: test_does_not_reenqueue_itself_later_if_batch_is_done
|
15306
|
+
-------------------------------------------------------------------------------------------
|
15307
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15309
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15312
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15315
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["status", 2], ["updated_at", "2015-09-29 17:14:02.012949"], ["id", 980190964]]
|
15316
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Exists (0.0ms)[0m [1mSELECT 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[0m [["active_batch_batches_id", 980190962], ["status", 2]]
|
15319
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] [1m[35mActiveBatch::WorkUnit Load (0.3ms)[0m 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] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15321
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15323
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [924905b4-69b1-44ed-8d73-9d16decc8486] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 6.48ms
|
15324
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
15325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15326
|
+
------------------------------------------------------------------------------------------------
|
15327
|
+
ActiveBatch::BatchStatusCheckJobTest: test_calls_after_batch_with_proper_args_when_batch_is_done
|
15328
|
+
------------------------------------------------------------------------------------------------
|
15329
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15330
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15331
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15334
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15337
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35mActiveBatch::WorkUnit Exists (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ?[0m [["active_batch_batches_id", 980190962]]
|
15342
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15343
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] [1m[36mSQL (0.1ms)[0m [1mUPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ?[0m [["status", 1], ["updated_at", "2015-09-29 17:14:02.031269"], ["id", 980190962]]
|
15344
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [0200137d-f9f1-45b5-8914-1f1fac1fd9f9] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
15347
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15348
|
+
---------------------------
|
15349
|
+
ActiveBatchTest: test_truth
|
15350
|
+
---------------------------
|
15351
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
15352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15353
|
+
--------------------------------------------------------------------
|
15354
|
+
ActiveBatch::JobTest: test_not_done_scope_returns_work_unit_not_done
|
15355
|
+
--------------------------------------------------------------------
|
15356
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15357
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15359
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15360
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", 1], ["created_at", "2015-09-29 17:14:02.037379"], ["updated_at", "2015-09-29 17:14:02.037379"]]
|
15361
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15362
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15363
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15365
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
|
15366
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?)[0m [["status", 2]]
|
15367
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE ("active_batch_work_units"."status" != ?) [["status", 2]]
|
15368
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
15369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15370
|
+
-------------------------------------------------------------------
|
15371
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_destroy_work_unit
|
15372
|
+
-------------------------------------------------------------------
|
15373
|
+
[1m[36mActiveBatch::WorkUnit Load (0.2ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15374
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "active_batch_work_units"
|
15375
|
+
Processing by ActiveBatch::WorkUnitsController#destroy as HTML
|
15376
|
+
Parameters: {"id"=>"980190962"}
|
15377
|
+
[1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15378
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15379
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ?[0m [["id", 980190962]]
|
15380
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units"[0m
|
15384
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15385
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15386
|
+
-----------------------------------------------------------
|
15387
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_get_index
|
15388
|
+
-----------------------------------------------------------
|
15389
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15396
|
+
----------------------------------------------------------------
|
15397
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_show_work_unit
|
15398
|
+
----------------------------------------------------------------
|
15399
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
15412
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15413
|
+
------------------------------------------------------
|
15414
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_batch
|
15415
|
+
------------------------------------------------------
|
15416
|
+
[1m[35m (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15419
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15421
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [9b462246-2124-4e29-bcc3-08f88b09ab81] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 3.16ms
|
15422
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15423
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15429
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [87f02ab5-f4b6-488e-a4d3-268ed157cafa] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
15433
|
+
[1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15439
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15441
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [17df057b-d89e-4bda-8b7d-af139c966a84] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.42ms
|
15442
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15444
|
+
-----------------------------------------------------------
|
15445
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
|
15446
|
+
-----------------------------------------------------------
|
15447
|
+
[1m[35m (0.1ms)[0m 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] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15450
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15452
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [f4aaec45-3a3d-4a78-a62e-9cb9ad7a4a94] Performed ActiveBatch::BatchSchedulerJob from Test(test_queue) in 2.88ms
|
15453
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
15454
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15460
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [6ed25eff-63ed-416b-8c5c-a7e77954c145] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
15464
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
15470
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15471
|
+
--------------------------------------------------------------------
|
15472
|
+
ActiveBatch::BatchedJobTest: test_can_save_work_result_when_in_batch
|
15473
|
+
--------------------------------------------------------------------
|
15474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15475
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15477
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "5b8cd6b9-8920-42e1-9e7d-abc94bd2e11e"]]
|
15479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15480
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "active_batch_work_units" SET "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["work_result", "blah"], ["updated_at", "2015-09-29 17:14:02.087354"], ["id", 980190963]]
|
15481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15482
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
15483
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
15484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15485
|
+
----------------------------------------------------------------------------------
|
15486
|
+
ActiveBatch::BatchedJobTest: test_sets_status_to_failed_on_exception_when_in_batch
|
15487
|
+
----------------------------------------------------------------------------------
|
15488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15489
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
|
15493
|
+
[ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] [1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15495
|
+
[ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15497
|
+
[ActiveJob] [RescueJob] [f5e3ef46-6ff1-42cf-9012-925c91ccf1e1] Performed RescueJob from Test(test_queue) in 1.65ms
|
15498
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "f5e3ef46-6ff1-42cf-9012-925c91ccf1e1"]]
|
15500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15501
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "active_batch_work_units" SET "status" = ?, "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15503
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
15504
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
15505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15506
|
+
-----------------------------------------------------------------------------
|
15507
|
+
ActiveBatch::WithActiveJobArgumentsTest: test_serializes_active_job_arguments
|
15508
|
+
-----------------------------------------------------------------------------
|
15509
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15510
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
15516
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15517
|
+
--------------------------------------------------------------------
|
15518
|
+
ActiveBatch::BatchedJobTest: test_can_save_work_result_when_in_batch
|
15519
|
+
--------------------------------------------------------------------
|
15520
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15521
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15523
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "1b635a34-c604-42eb-9804-66fde8d0f82d"]]
|
15525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15526
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "active_batch_work_units" SET "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["work_result", "blah"], ["updated_at", "2015-09-29 17:14:10.103913"], ["id", 980190963]]
|
15527
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15528
|
+
[1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
15529
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
15530
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15531
|
+
----------------------------------------------------------------------------------
|
15532
|
+
ActiveBatch::BatchedJobTest: test_sets_status_to_failed_on_exception_when_in_batch
|
15533
|
+
----------------------------------------------------------------------------------
|
15534
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15535
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
|
15539
|
+
[ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] [1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15541
|
+
[ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] [1m[35mSQL (0.3ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15543
|
+
[ActiveJob] [RescueJob] [39bea6fd-9414-4cbc-a489-a3922fdcb969] Performed RescueJob from Test(test_queue) in 1.86ms
|
15544
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."job_id" = ? LIMIT 1[0m [["job_id", "39bea6fd-9414-4cbc-a489-a3922fdcb969"]]
|
15546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15547
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "active_batch_work_units" SET "status" = ?, "work_result" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15549
|
+
[1m[36mActiveBatch::WorkUnit Load (0.0ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
15550
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
15551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15552
|
+
---------------------------
|
15553
|
+
ActiveBatchTest: test_truth
|
15554
|
+
---------------------------
|
15555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
15556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15557
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "active_batch_batches"
|
15558
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
15559
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "active_batch_work_units"
|
15560
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
15561
|
+
[1m[35m (0.6ms)[0m commit transaction
|
15562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15563
|
+
------------------------------------------------------------------------------------------------
|
15564
|
+
ActiveBatch::BatchStatusCheckJobTest: test_calls_after_batch_with_proper_args_when_batch_is_done
|
15565
|
+
------------------------------------------------------------------------------------------------
|
15566
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15567
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15568
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15571
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15574
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35mActiveBatch::WorkUnit Exists (0.1ms)[0m 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] [1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ?[0m [["active_batch_batches_id", 980190962]]
|
15579
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15580
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] [1m[36mSQL (0.1ms)[0m [1mUPDATE "active_batch_batches" SET "status" = ?, "updated_at" = ? WHERE "active_batch_batches"."id" = ?[0m [["status", 1], ["updated_at", "2015-09-29 17:14:10.176390"], ["id", 980190962]]
|
15581
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [65b74e9b-a8a4-4e0d-8127-43707c61ff3d] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
15584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15585
|
+
-------------------------------------------------------------------------------------------
|
15586
|
+
ActiveBatch::BatchStatusCheckJobTest: test_does_not_reenqueue_itself_later_if_batch_is_done
|
15587
|
+
-------------------------------------------------------------------------------------------
|
15588
|
+
[1m[36mActiveBatch::Batch Load (0.1ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15589
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15590
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15593
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15595
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15596
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "active_batch_work_units" SET "status" = ?, "updated_at" = ? WHERE "active_batch_work_units"."id" = ?[0m [["status", 2], ["updated_at", "2015-09-29 17:14:10.183305"], ["id", 980190964]]
|
15597
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Exists (0.0ms)[0m [1mSELECT 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[0m [["active_batch_batches_id", 980190962], ["status", 2]]
|
15600
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] [1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15602
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15604
|
+
[ActiveJob] [ActiveBatch::BatchStatusCheckJob] [f8a2b78f-ad06-492f-b5ae-ca7d5377eea8] Performed ActiveBatch::BatchStatusCheckJob from Test(test_queue) in 3.8ms
|
15605
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
15606
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15607
|
+
----------------------------------------------------------------------------------
|
15608
|
+
ActiveBatch::BatchStatusCheckJobTest: test_uses_the_same_queue_than_the_work_units
|
15609
|
+
----------------------------------------------------------------------------------
|
15610
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15612
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15615
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Exists (0.0ms)[0m [1mSELECT 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[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
15622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15623
|
+
---------------------------------------------------------------------------------------
|
15624
|
+
ActiveBatch::BatchStatusCheckJobTest: test_reenqueues_itself_later_if_batch_is_not_done
|
15625
|
+
---------------------------------------------------------------------------------------
|
15626
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."id" = ? LIMIT 1 [["id", 980190962]]
|
15627
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15628
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15630
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15631
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("status", "work_result", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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] [1m[36mActiveBatch::WorkUnit Exists (0.0ms)[0m [1mSELECT 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[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
15638
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15639
|
+
-------------------------------------------------------------------
|
15640
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_destroy_work_unit
|
15641
|
+
-------------------------------------------------------------------
|
15642
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
|
15643
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units"[0m
|
15644
|
+
Processing by ActiveBatch::WorkUnitsController#destroy as HTML
|
15645
|
+
Parameters: {"id"=>"980190962"}
|
15646
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m SELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1 [["id", 980190962]]
|
15647
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15648
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? [["id", 980190962]]
|
15649
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15650
|
+
Redirected to http://test.host/activejob_batch/work_units
|
15651
|
+
Completed 302 Found in 29ms (ActiveRecord: 0.4ms)
|
15652
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "active_batch_work_units"
|
15653
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
15654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15655
|
+
-----------------------------------------------------------
|
15656
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_get_index
|
15657
|
+
-----------------------------------------------------------
|
15658
|
+
[1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15659
|
+
Processing by ActiveBatch::WorkUnitsController#index as HTML
|
15660
|
+
[1m[35mActiveBatch::WorkUnit Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15664
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15665
|
+
----------------------------------------------------------------
|
15666
|
+
ActiveBatch::WorkUnitsControllerTest: test_should_show_work_unit
|
15667
|
+
----------------------------------------------------------------
|
15668
|
+
[1m[36mActiveBatch::WorkUnit Load (0.1ms)[0m [1mSELECT "active_batch_work_units".* FROM "active_batch_work_units" WHERE "active_batch_work_units"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
15669
|
+
Processing by ActiveBatch::WorkUnitsController#show as HTML
|
15670
|
+
Parameters: {"id"=>"980190962"}
|
15671
|
+
[1m[35mActiveBatch::WorkUnit Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15675
|
+
[1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15681
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[35mSQL (0.3ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15683
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15684
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15688
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15692
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15696
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [4c839a9d-ea16-49ee-b4c2-376c34defa34] [1m[35mSQL (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
15702
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15703
|
+
-----------------------------------------------------------
|
15704
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_work_units
|
15705
|
+
-----------------------------------------------------------
|
15706
|
+
[1m[35m (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15709
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15711
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15712
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15716
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15720
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15724
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [108cc120-2644-4c83-b220-13ca5c47d7b4] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "active_batch_batches"
|
15730
|
+
[1m[36m (5.1ms)[0m [1mrollback transaction[0m
|
15731
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
15737
|
+
[1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15743
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15745
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15746
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15750
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15754
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15758
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [cbf496cb-8ac8-4139-85dd-e33b4feef766] [1m[35mSQL (0.1ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mActiveBatch::Batch Load (0.1ms)[0m SELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."job_id" = ? LIMIT 1 [["job_id", "cbf496cb-8ac8-4139-85dd-e33b4feef766"]]
|
15764
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units" WHERE "active_batch_work_units"."active_batch_batches_id" = ?[0m [["active_batch_batches_id", 980190963]]
|
15765
|
+
[1m[35m (2.0ms)[0m rollback transaction
|
15766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15772
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15774
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15775
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15779
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15783
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[35mSQL (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15787
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [512122f3-38fe-4e3d-9e22-f2354f03ef5a] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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
|
+
[1m[36mActiveBatch::Batch Load (0.0ms)[0m [1mSELECT "active_batch_batches".* FROM "active_batch_batches" WHERE "active_batch_batches"."job_id" = ? LIMIT 1[0m [["job_id", "512122f3-38fe-4e3d-9e22-f2354f03ef5a"]]
|
15793
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
15795
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15796
|
+
------------------------------------------------------
|
15797
|
+
ActiveBatch::BatchSchedulerJobTest: test_creates_batch
|
15798
|
+
------------------------------------------------------
|
15799
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units"[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15802
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "active_batch_batches" ("job_class", "job_id", "arguments", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15804
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15805
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[35mSQL (0.2ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15809
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15813
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[35mSQL (0.0ms)[0m 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] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15817
|
+
[ActiveJob] [ActiveBatch::BatchSchedulerJob] [53a23388-d9f0-4283-a14c-e8914f1c8856] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "active_batch_work_units" ("job_id", "arguments", "active_batch_batches_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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] [1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "active_batch_work_units"[0m
|
15823
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
15824
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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?
|