async_request 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/workers/async_request/job_processor.rb +1 -0
- data/lib/async_request/version.rb +1 -1
- data/lib/async_request.rb +21 -0
- data/spec/dummy/log/test.log +198 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c0c80e8b0b2ebd22e02a571b7688b13d3cc23d
|
4
|
+
data.tar.gz: 723d1a492e3baa01fae0fa8825b1e8fa581e85da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656bb7dd04557c465fe180b724137cbf275be654cd895864828e868b0dbb1a2d2bf52e4c2bf4aae326f4f3d14ae6814029be09091611cfc46d967402202555ba
|
7
|
+
data.tar.gz: b37b45bc6a96f28cf6731abf9af02a7c4af0be031f92ae8195b94045d137e5a6942c731c482281d17f7e791ea6ae967e8835b33468bf7cfb590b10d3fd97debe
|
data/lib/async_request.rb
CHANGED
@@ -1,4 +1,25 @@
|
|
1
1
|
require 'async_request/engine'
|
2
2
|
|
3
3
|
module AsyncRequest
|
4
|
+
@config = {
|
5
|
+
queue: 'default',
|
6
|
+
retry: false
|
7
|
+
}
|
8
|
+
|
9
|
+
def self.configure
|
10
|
+
yield self
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.queue=(queue)
|
14
|
+
@config[:queue] = queue
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.retry=(retry_times)
|
18
|
+
raise ArgumentError unless [true, false].include?(retry_times) || retry_times.is_a?(Integer)
|
19
|
+
@config[:retry] = retry_times
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.config
|
23
|
+
@config
|
24
|
+
end
|
4
25
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -5272,3 +5272,201 @@ Processing by AsyncRequest::JobsController#show as HTML
|
|
5272
5272
|
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
5273
5273
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5274
5274
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5275
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5276
|
+
[1m[36m (105.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
5277
|
+
[1m[35m (287.9ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode'
|
5278
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
5279
|
+
[1m[35m (8.9ms)[0m CREATE TABLE "async_request_jobs" ("id" serial primary key, "worker" character varying, "status" integer, "status_code" integer, "response" text, "uid" character varying, "params" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
5280
|
+
[1m[36m (4.0ms)[0m [1mCREATE INDEX "index_async_request_jobs_on_status" ON "async_request_jobs" USING btree ("status")[0m
|
5281
|
+
[1m[35m (4.1ms)[0m CREATE UNIQUE INDEX "index_async_request_jobs_on_uid" ON "async_request_jobs" USING btree ("uid")
|
5282
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
5283
|
+
[1m[35m (4.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5284
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5285
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160411190611')
|
5286
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5287
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "async_request_jobs" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
5288
|
+
[1m[35m (2.4ms)[0m SELECT schemaname || '.' || tablename
|
5289
|
+
FROM pg_tables
|
5290
|
+
WHERE
|
5291
|
+
tablename !~ '_prt_' AND
|
5292
|
+
tablename <> 'schema_migrations' AND
|
5293
|
+
schemaname = ANY (current_schemas(false))
|
5294
|
+
|
5295
|
+
[1m[36m (2.7ms)[0m [1mselect table_name from information_schema.views where table_schema = 'dummy_test'[0m
|
5296
|
+
[1m[35m (12.5ms)[0m TRUNCATE TABLE "public"."async_request_jobs" RESTART IDENTITY CASCADE;
|
5297
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "async_request_jobs" ENABLE TRIGGER ALL[0m
|
5298
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5299
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5300
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5301
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5302
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_2
|
5303
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- :a: a\n- 3\n- a\n"], ["status", 0], ["uid", "8df81762-84e8-4673-bac3-560226f5982b"], ["created_at", "2018-02-15 20:34:49.035402"], ["updated_at", "2018-02-15 20:34:49.035402"]]
|
5304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5305
|
+
[1m[36mAsyncRequest::Job Load (0.3ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "8df81762-84e8-4673-bac3-560226f5982b"]]
|
5306
|
+
[1m[35mAsyncRequest::Job Load (0.2ms)[0m SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 1]]
|
5307
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
5308
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "async_request_jobs" SET "status" = $1, "updated_at" = $2 WHERE "async_request_jobs"."id" = $3 [["status", 1], ["updated_at", "2018-02-15 20:34:49.047701"], ["id", 1]]
|
5309
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
5310
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5311
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5[0m [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.051335"], ["id", 1]]
|
5312
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5313
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "8df81762-84e8-4673-bac3-560226f5982b"]]
|
5314
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5315
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5316
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5317
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5318
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5319
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5320
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5321
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- :a: a\n- 3\n- a\n"], ["status", 0], ["uid", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"], ["created_at", "2018-02-15 20:34:49.057526"], ["updated_at", "2018-02-15 20:34:49.057526"]]
|
5322
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5323
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"]]
|
5324
|
+
[1m[35mAsyncRequest::Job Load (0.2ms)[0m SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 2]]
|
5325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
5326
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "async_request_jobs" SET "status" = $1, "updated_at" = $2 WHERE "async_request_jobs"."id" = $3 [["status", 1], ["updated_at", "2018-02-15 20:34:49.061310"], ["id", 2]]
|
5327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
5328
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5329
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5[0m [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.064176"], ["id", 2]]
|
5330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5331
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"]]
|
5332
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5333
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5334
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5336
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5337
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5338
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_2
|
5339
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- :a: a\n- 3\n- a\n"], ["status", 0], ["uid", "e28c0c1a-7abc-46bc-a2c6-4b3b9e77fe01"], ["created_at", "2018-02-15 20:34:49.070928"], ["updated_at", "2018-02-15 20:34:49.070928"]]
|
5340
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5341
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "e28c0c1a-7abc-46bc-a2c6-4b3b9e77fe01"]]
|
5342
|
+
[1m[35mAsyncRequest::Job Load (0.2ms)[0m SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 3]]
|
5343
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
5344
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "async_request_jobs" SET "status" = $1, "updated_at" = $2 WHERE "async_request_jobs"."id" = $3 [["status", 1], ["updated_at", "2018-02-15 20:34:49.075016"], ["id", 3]]
|
5345
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
5346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5347
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5[0m [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.077909"], ["id", 3]]
|
5348
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5349
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5350
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5351
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5353
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5354
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5355
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
5356
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["worker", "Test"], ["params", "---\n- a\n"], ["status", 0], ["uid", "396e266f-4547-4d54-a7a5-97b74d71c8db"], ["created_at", "2018-02-15 20:34:49.087144"], ["updated_at", "2018-02-15 20:34:49.087144"]]
|
5357
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
5358
|
+
[1m[35mAsyncRequest::Job Load (0.2ms)[0m SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "396e266f-4547-4d54-a7a5-97b74d71c8db"]]
|
5359
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5360
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5361
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5362
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5363
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5365
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
|
5366
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["worker", "Test"], ["params", "---\n- :a: a\n- 3\n- a\n"], ["status", 0], ["uid", "367d09d4-0923-451a-a4f4-ab43b46a82c2"], ["created_at", "2018-02-15 20:34:49.093353"], ["updated_at", "2018-02-15 20:34:49.093353"]]
|
5367
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
5368
|
+
[1m[35mAsyncRequest::Job Load (0.2ms)[0m SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "367d09d4-0923-451a-a4f4-ab43b46a82c2"]]
|
5369
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5370
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5371
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5372
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5373
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5374
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5375
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "async_request_jobs"[0m
|
5376
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5377
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- a\n"], ["status", 0], ["uid", "900ea3b6-707d-4520-b992-39001132018a"], ["created_at", "2018-02-15 20:34:49.102317"], ["updated_at", "2018-02-15 20:34:49.102317"]]
|
5378
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5379
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "async_request_jobs"[0m
|
5380
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5381
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5382
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5383
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5384
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5385
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5387
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- a\n"], ["status", 0], ["uid", "621b0b71-d93e-457b-8f19-fe4ceba3812f"], ["created_at", "2018-02-15 20:34:49.108332"], ["updated_at", "2018-02-15 20:34:49.108332"]]
|
5388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5389
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "621b0b71-d93e-457b-8f19-fe4ceba3812f"]]
|
5390
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5391
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5392
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5393
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5394
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5395
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5396
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_2
|
5397
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "params", "status", "uid", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["worker", "Test"], ["params", "---\n- a\n"], ["status", 0], ["uid", "a125b8b3-fa30-40a4-accb-fbf80038f666"], ["created_at", "2018-02-15 20:34:49.114960"], ["updated_at", "2018-02-15 20:34:49.114960"]]
|
5398
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5399
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "a125b8b3-fa30-40a4-accb-fbf80038f666"]]
|
5400
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5401
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5402
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5403
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5404
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5406
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5407
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5408
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5409
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5410
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5411
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5412
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5413
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "status_code", "response", "uid", "params", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["worker", "commodi"], ["status_code", 200], ["response", "{\"a\":\"quaerat\",\"b\":\"sit\",\"c\":\"ipsam\"}"], ["uid", "consequatur"], ["params", "---\n- sit\n- :a: a\n"], ["status", 2], ["created_at", "2018-02-15 20:34:49.127472"], ["updated_at", "2018-02-15 20:34:49.127472"]]
|
5414
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5415
|
+
Processing by AsyncRequest::JobsController#show as HTML
|
5416
|
+
Parameters: {"id"=>"consequatur"}
|
5417
|
+
[1m[36mAsyncRequest::Job Load (0.3ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "consequatur"]]
|
5418
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
5419
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5420
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5421
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5422
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5423
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5424
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5425
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_2
|
5426
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "status_code", "response", "uid", "params", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["worker", "sunt"], ["status_code", 200], ["response", "{\"a\":\"omnis\",\"b\":\"sit\",\"c\":\"assumenda\"}"], ["uid", "ipsa"], ["params", "---\n- sit\n- :a: a\n"], ["status", 2], ["created_at", "2018-02-15 20:34:49.139890"], ["updated_at", "2018-02-15 20:34:49.139890"]]
|
5427
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5428
|
+
Processing by AsyncRequest::JobsController#show as HTML
|
5429
|
+
Parameters: {"id"=>"ipsa"}
|
5430
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "ipsa"]]
|
5431
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
5432
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5433
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5434
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5436
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5438
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5439
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "status_code", "response", "uid", "params", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["worker", "et"], ["status_code", 200], ["response", "{\"a\":\"praesentium\",\"b\":\"quasi\",\"c\":\"mollitia\"}"], ["uid", "et"], ["params", "---\n- sit\n- :a: a\n"], ["status", 0], ["created_at", "2018-02-15 20:34:49.151442"], ["updated_at", "2018-02-15 20:34:49.151442"]]
|
5440
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
|
5441
|
+
Processing by AsyncRequest::JobsController#show as HTML
|
5442
|
+
Parameters: {"id"=>"et"}
|
5443
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "et"]]
|
5444
|
+
Completed 202 Accepted in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
5445
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5446
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5447
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5448
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5449
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5450
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5451
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
5452
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "status_code", "response", "uid", "params", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["worker", "magni"], ["status_code", 200], ["response", "{\"a\":\"maxime\",\"b\":\"saepe\",\"c\":\"aut\"}"], ["uid", "aut"], ["params", "---\n- sit\n- :a: a\n"], ["status", 1], ["created_at", "2018-02-15 20:34:49.162538"], ["updated_at", "2018-02-15 20:34:49.162538"]]
|
5453
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_2
|
5454
|
+
Processing by AsyncRequest::JobsController#show as HTML
|
5455
|
+
Parameters: {"id"=>"aut"}
|
5456
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "aut"]]
|
5457
|
+
Completed 202 Accepted in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
5458
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5459
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5460
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5462
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5464
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_2
|
5465
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "async_request_jobs" ("worker", "status_code", "response", "uid", "params", "status", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["worker", "perspiciatis"], ["status_code", 200], ["response", "{\"a\":\"qui\",\"b\":\"veniam\",\"c\":\"est\"}"], ["uid", "similique"], ["params", "---\n- sit\n- :a: a\n"], ["status", 0], ["created_at", "2018-02-15 20:34:49.173864"], ["updated_at", "2018-02-15 20:34:49.173864"]]
|
5466
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_2
|
5467
|
+
Processing by AsyncRequest::JobsController#show as HTML
|
5468
|
+
Parameters: {"id"=>"similiqueABC"}
|
5469
|
+
[1m[36mAsyncRequest::Job Load (0.2ms)[0m [1mSELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1[0m [["uid", "similiqueABC"]]
|
5470
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
5471
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5472
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async_request
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias De Santi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|