writefully 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/writefully/version.rb +1 -1
- data/lib/writefully/workers/base_worker.rb +1 -1
- data/lib/writefully/workers/handyman.rb +0 -7
- 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: 8580c8cc43be8e2a3afe18254dc391b57ccb1479
|
4
|
+
data.tar.gz: cfbbb50acd8d980ee5cc01877410e57ccfe9f597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c56d89bbf8cafd6f05913095b30de39dad10ca675d75c6af98021a45e7d455029e376aa1169f2773f53e74e4346aa81669eb10d1379b349760a5e7489625d2
|
7
|
+
data.tar.gz: e1370d730615c87584f8a7b96e55fae416481fc0017101d80f8bd9bb217b4d07dd09c6426c6769aeb431f890e478469f914ed39f91c622836a3473d9d0fa2a1e
|
data/lib/writefully/version.rb
CHANGED
@@ -17,7 +17,7 @@ module Writefully
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def actor_died(actor, reason)
|
20
|
-
Writefully.logger.error "An error occured #{reason.message}"
|
20
|
+
Writefully.logger.error "An error occured #{reason.class} #{reason.message}"
|
21
21
|
on_death(actor, reason) if self.respond_to?(:on_death)
|
22
22
|
end
|
23
23
|
end
|
@@ -32,13 +32,6 @@ module Writefully
|
|
32
32
|
@synchronizer.terminate
|
33
33
|
end
|
34
34
|
|
35
|
-
def on_death actor, reason
|
36
|
-
if site
|
37
|
-
Writefully.redis.with { |c| s.sadd "site:#{site.id}:errors", reason.message }
|
38
|
-
site.update_attributes(processing: false, healty: false)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
35
|
end
|
43
36
|
end
|
44
37
|
end
|