rails-cloud-tasks 0.0.4.rc1 → 0.0.4rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_cloud_tasks/rack/jobs.rb +6 -1
- data/lib/rails_cloud_tasks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febc18d459ee7372959661d7fdf6361700deeb6777663049f1ec3c3cadd9519a
|
4
|
+
data.tar.gz: c5f01e5ab5f4c42d923de94e6e94a04cb36d7e3c46905eec51f74f5f77689869
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa9a92c2aa4bb52b64d327b86d18b0fa421f487f396858ad2a03c5735441ecd5402b2da7923c30938962c2d743bb93ce366bb26db04f79c5b8951d5f9d96abac
|
7
|
+
data.tar.gz: c882b97485494659e62ddca4855f64899b1629e27ae1714f861c754d8e78dbadbfde69bff0d9487dd47da62c88422acdf46cf1250efefe4e50c06f4bb9394d5b
|
@@ -14,7 +14,12 @@ module RailsCloudTasks
|
|
14
14
|
|
15
15
|
request = ::Rack::Request.new(env)
|
16
16
|
job_args = extract_args(request)
|
17
|
-
|
17
|
+
|
18
|
+
if job_args
|
19
|
+
job_class.perform_now(job_args)
|
20
|
+
else
|
21
|
+
job_class.perform_now
|
22
|
+
end
|
18
23
|
|
19
24
|
response(200, {})
|
20
25
|
rescue Rack::InvalidPayloadError => e
|