simplews 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simplews/notifier.rb +8 -5
- metadata +2 -2
data/lib/simplews/notifier.rb
CHANGED
@@ -49,12 +49,15 @@ class SimpleWS::Jobs::Notifier
|
|
49
49
|
def process
|
50
50
|
@jobs.each do |job_id, email|
|
51
51
|
if driver.done job_id
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
begin
|
53
|
+
if driver.error job_id
|
54
|
+
error(job_id, email, driver.messages(job_id).last)
|
55
|
+
else
|
56
|
+
success(job_id, email)
|
57
|
+
end
|
58
|
+
ensure
|
59
|
+
delete_job(job_id)
|
56
60
|
end
|
57
|
-
delete_job(job_id)
|
58
61
|
end
|
59
62
|
end
|
60
63
|
end
|