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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eeeff73b4c3b9fda39e0c8f4b12c64002c55e89
4
- data.tar.gz: f26dc2c97e4311e54e8a62becc788498099e6d44
3
+ metadata.gz: e3c0c80e8b0b2ebd22e02a571b7688b13d3cc23d
4
+ data.tar.gz: 723d1a492e3baa01fae0fa8825b1e8fa581e85da
5
5
  SHA512:
6
- metadata.gz: 17fab72b105fe4dfb1e172ad5efd7007c7fbb92e8aa073f147e9533042a6ccaa750a88065c7942dd171312cf88fd158e62eb53f11c4b12818f01e742076a42b9
7
- data.tar.gz: ca10915c8ecd445d2d81e34394e445ada1ec4a00ebcfdbdc04610bbcf0d1608dbe02e554e32c3983bf0f4305fb08cddf47f9fddd3bafb695621d0efe6019c930
6
+ metadata.gz: 656bb7dd04557c465fe180b724137cbf275be654cd895864828e868b0dbb1a2d2bf52e4c2bf4aae326f4f3d14ae6814029be09091611cfc46d967402202555ba
7
+ data.tar.gz: b37b45bc6a96f28cf6731abf9af02a7c4af0be031f92ae8195b94045d137e5a6942c731c482281d17f7e791ea6ae967e8835b33468bf7cfb590b10d3fd97debe
@@ -1,6 +1,7 @@
1
1
  module AsyncRequest
2
2
  class JobProcessor
3
3
  include Sidekiq::Worker
4
+ sidekiq_options queue: AsyncRequest.config[:queue], retry: AsyncRequest.config[:retry]
4
5
 
5
6
  def perform(id)
6
7
  job = Job.find(id)
@@ -1,3 +1,3 @@
1
1
  module AsyncRequest
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
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
@@ -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
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5274
5274
   (0.1ms) ROLLBACK
5275
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
5276
+  (105.9ms) DROP DATABASE IF EXISTS "dummy_test"
5277
+  (287.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
5278
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
5279
+  (8.9ms) 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
+  (4.0ms) CREATE INDEX "index_async_request_jobs_on_status" ON "async_request_jobs" USING btree ("status")
5281
+  (4.1ms) CREATE UNIQUE INDEX "index_async_request_jobs_on_uid" ON "async_request_jobs" USING btree ("uid")
5282
+  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
5283
+  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5284
+  (0.3ms) SELECT version FROM "schema_migrations"
5285
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160411190611')
5286
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5287
+  (0.4ms) ALTER TABLE "async_request_jobs" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
5288
+  (2.4ms) 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
+  (2.7ms) select table_name from information_schema.views where table_schema = 'dummy_test'
5296
+  (12.5ms) TRUNCATE TABLE "public"."async_request_jobs" RESTART IDENTITY CASCADE;
5297
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "async_request_jobs" ENABLE TRIGGER ALL
5298
+  (0.2ms) BEGIN
5299
+  (0.1ms) SAVEPOINT active_record_1
5300
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5301
+  (0.1ms) SAVEPOINT active_record_1
5302
+  (0.2ms) SAVEPOINT active_record_2
5303
+ SQL (0.6ms) 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", "8df81762-84e8-4673-bac3-560226f5982b"], ["created_at", "2018-02-15 20:34:49.035402"], ["updated_at", "2018-02-15 20:34:49.035402"]]
5304
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5305
+ AsyncRequest::Job Load (0.3ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "8df81762-84e8-4673-bac3-560226f5982b"]]
5306
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 1]]
5307
+  (0.1ms) SAVEPOINT active_record_2
5308
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5310
+  (0.1ms) SAVEPOINT active_record_2
5311
+ SQL (0.3ms) UPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5 [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.051335"], ["id", 1]]
5312
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5313
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "8df81762-84e8-4673-bac3-560226f5982b"]]
5314
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5315
+  (0.1ms) ROLLBACK
5316
+  (0.1ms) BEGIN
5317
+  (0.1ms) SAVEPOINT active_record_1
5318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5319
+  (0.1ms) SAVEPOINT active_record_1
5320
+  (0.1ms) SAVEPOINT active_record_2
5321
+ SQL (0.3ms) 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", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"], ["created_at", "2018-02-15 20:34:49.057526"], ["updated_at", "2018-02-15 20:34:49.057526"]]
5322
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5323
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"]]
5324
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 2]]
5325
+  (0.1ms) SAVEPOINT active_record_2
5326
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5328
+  (0.1ms) SAVEPOINT active_record_2
5329
+ SQL (0.3ms) UPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5 [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.064176"], ["id", 2]]
5330
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5331
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "e1db4cd9-efa6-44ea-973c-0d31f3dd3205"]]
5332
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5333
+  (0.2ms) ROLLBACK
5334
+  (0.1ms) BEGIN
5335
+  (0.1ms) SAVEPOINT active_record_1
5336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5337
+  (0.1ms) SAVEPOINT active_record_1
5338
+  (0.2ms) SAVEPOINT active_record_2
5339
+ SQL (0.3ms) 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", "e28c0c1a-7abc-46bc-a2c6-4b3b9e77fe01"], ["created_at", "2018-02-15 20:34:49.070928"], ["updated_at", "2018-02-15 20:34:49.070928"]]
5340
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5341
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "e28c0c1a-7abc-46bc-a2c6-4b3b9e77fe01"]]
5342
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."id" = $1 LIMIT 1 [["id", 3]]
5343
+  (0.1ms) SAVEPOINT active_record_2
5344
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5346
+  (0.1ms) SAVEPOINT active_record_2
5347
+ SQL (0.3ms) UPDATE "async_request_jobs" SET "status" = $1, "status_code" = $2, "response" = $3, "updated_at" = $4 WHERE "async_request_jobs"."id" = $5 [["status", 2], ["status_code", 200], ["response", "{\"status\":\"success\"}"], ["updated_at", "2018-02-15 20:34:49.077909"], ["id", 3]]
5348
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5349
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5350
+  (0.1ms) ROLLBACK
5351
+  (0.1ms) BEGIN
5352
+  (0.1ms) SAVEPOINT active_record_1
5353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5354
+  (0.1ms) SAVEPOINT active_record_1
5355
+  (0.1ms) SAVEPOINT active_record_2
5356
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5358
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "396e266f-4547-4d54-a7a5-97b74d71c8db"]]
5359
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5360
+  (0.1ms) ROLLBACK
5361
+  (0.1ms) BEGIN
5362
+  (0.1ms) SAVEPOINT active_record_1
5363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5364
+  (0.1ms) SAVEPOINT active_record_1
5365
+  (0.1ms) SAVEPOINT active_record_2
5366
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5368
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "367d09d4-0923-451a-a4f4-ab43b46a82c2"]]
5369
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5370
+  (0.1ms) ROLLBACK
5371
+  (0.1ms) BEGIN
5372
+  (0.1ms) SAVEPOINT active_record_1
5373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5374
+  (0.1ms) SAVEPOINT active_record_1
5375
+  (0.3ms) SELECT COUNT(*) FROM "async_request_jobs"
5376
+  (0.1ms) SAVEPOINT active_record_2
5377
+ SQL (0.3ms) 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", "900ea3b6-707d-4520-b992-39001132018a"], ["created_at", "2018-02-15 20:34:49.102317"], ["updated_at", "2018-02-15 20:34:49.102317"]]
5378
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5379
+  (0.2ms) SELECT COUNT(*) FROM "async_request_jobs"
5380
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5381
+  (0.1ms) ROLLBACK
5382
+  (0.1ms) BEGIN
5383
+  (0.1ms) SAVEPOINT active_record_1
5384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5385
+  (0.1ms) SAVEPOINT active_record_1
5386
+  (0.1ms) SAVEPOINT active_record_2
5387
+ SQL (0.2ms) 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", "621b0b71-d93e-457b-8f19-fe4ceba3812f"], ["created_at", "2018-02-15 20:34:49.108332"], ["updated_at", "2018-02-15 20:34:49.108332"]]
5388
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5389
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "621b0b71-d93e-457b-8f19-fe4ceba3812f"]]
5390
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5391
+  (0.1ms) ROLLBACK
5392
+  (0.1ms) BEGIN
5393
+  (0.1ms) SAVEPOINT active_record_1
5394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5395
+  (0.1ms) SAVEPOINT active_record_1
5396
+  (0.2ms) SAVEPOINT active_record_2
5397
+ SQL (0.2ms) 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", "a125b8b3-fa30-40a4-accb-fbf80038f666"], ["created_at", "2018-02-15 20:34:49.114960"], ["updated_at", "2018-02-15 20:34:49.114960"]]
5398
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5399
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "a125b8b3-fa30-40a4-accb-fbf80038f666"]]
5400
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5401
+  (0.1ms) ROLLBACK
5402
+  (0.1ms) BEGIN
5403
+  (0.1ms) SAVEPOINT active_record_1
5404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5405
+  (0.1ms) SAVEPOINT active_record_1
5406
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5407
+  (0.1ms) ROLLBACK
5408
+  (0.1ms) BEGIN
5409
+  (0.1ms) SAVEPOINT active_record_1
5410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5411
+  (0.1ms) SAVEPOINT active_record_1
5412
+  (0.1ms) SAVEPOINT active_record_2
5413
+ SQL (0.2ms) INSERT 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" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5415
+ Processing by AsyncRequest::JobsController#show as HTML
5416
+ Parameters: {"id"=>"consequatur"}
5417
+ AsyncRequest::Job Load (0.3ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "consequatur"]]
5418
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
5419
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
5420
+  (0.1ms) ROLLBACK
5421
+  (0.1ms) BEGIN
5422
+  (0.1ms) SAVEPOINT active_record_1
5423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5424
+  (0.1ms) SAVEPOINT active_record_1
5425
+  (0.2ms) SAVEPOINT active_record_2
5426
+ SQL (0.3ms) INSERT 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" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5428
+ Processing by AsyncRequest::JobsController#show as HTML
5429
+ Parameters: {"id"=>"ipsa"}
5430
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "ipsa"]]
5431
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
5432
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
5433
+  (0.1ms) ROLLBACK
5434
+  (0.1ms) BEGIN
5435
+  (0.1ms) SAVEPOINT active_record_1
5436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5437
+  (0.1ms) SAVEPOINT active_record_1
5438
+  (0.1ms) SAVEPOINT active_record_2
5439
+ SQL (0.3ms) INSERT 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" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_2
5441
+ Processing by AsyncRequest::JobsController#show as HTML
5442
+ Parameters: {"id"=>"et"}
5443
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "et"]]
5444
+ Completed 202 Accepted in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
5445
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
5446
+  (0.1ms) ROLLBACK
5447
+  (0.1ms) BEGIN
5448
+  (0.1ms) SAVEPOINT active_record_1
5449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5450
+  (0.1ms) SAVEPOINT active_record_1
5451
+  (0.1ms) SAVEPOINT active_record_2
5452
+ SQL (0.3ms) INSERT 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" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_2
5454
+ Processing by AsyncRequest::JobsController#show as HTML
5455
+ Parameters: {"id"=>"aut"}
5456
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "aut"]]
5457
+ Completed 202 Accepted in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
5458
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5459
+  (0.1ms) ROLLBACK
5460
+  (0.1ms) BEGIN
5461
+  (0.1ms) SAVEPOINT active_record_1
5462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5463
+  (0.1ms) SAVEPOINT active_record_1
5464
+  (0.2ms) SAVEPOINT active_record_2
5465
+ SQL (0.3ms) INSERT 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" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_2
5467
+ Processing by AsyncRequest::JobsController#show as HTML
5468
+ Parameters: {"id"=>"similiqueABC"}
5469
+ AsyncRequest::Job Load (0.2ms) SELECT "async_request_jobs".* FROM "async_request_jobs" WHERE "async_request_jobs"."uid" = $1 LIMIT 1 [["uid", "similiqueABC"]]
5470
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
5471
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
5472
+  (0.1ms) ROLLBACK
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.6
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-07 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails