kimurai-dashboard 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kimurai/dashboard/base.rb +2 -2
- data/lib/kimurai/dashboard/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: 58150ded11d2b495f52d1395b5393168ec5148a721d4e0d555eb05fe1469b80e
|
4
|
+
data.tar.gz: ebf7784a35e9b8572838c28b0416fb6d7abb9591c3230733788b06cdf33c4826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec30794bd24c81af83310cb82721030d518864536118e18d6f940b34210c00dc8b911c7e2eed7eeb74fb7b9120f7d7a4afa57991d434e0cd1d17d396aeb94cd6
|
7
|
+
data.tar.gz: ff60554d8c16e794497bd775923f4e4a8c2cab46634e7dbff5022df5e5fe74f76c90eba330dd8499476f67a318cb30d1800bc8efafb192a6884413429a1d9c20
|
@@ -7,7 +7,7 @@ module Kimurai
|
|
7
7
|
alias_method :original_crawl!, :crawl!
|
8
8
|
end
|
9
9
|
|
10
|
-
def self.crawl!(
|
10
|
+
def self.crawl!(exception_on_fail: true)
|
11
11
|
logger.error "Spider: already running: #{name}" and return false if running?
|
12
12
|
|
13
13
|
spider = Dashboard::Spider.find_or_create(name: name)
|
@@ -39,7 +39,7 @@ module Kimurai
|
|
39
39
|
loop { sleep 0.5 and updater.call and sleep 1.5 }
|
40
40
|
end
|
41
41
|
|
42
|
-
final_info, error = original_crawl!(
|
42
|
+
final_info, error = original_crawl!(exception_on_fail: false)
|
43
43
|
if error
|
44
44
|
exception_on_fail ? raise(error) : [final_info, error]
|
45
45
|
else
|