wco_email 0.1.1.24 → 0.1.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/wco_email_tasks.rake +5 -2
- 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: 10d682e880850ef7136b49cea54bb6ec459103320b16a6d3754c4b11f038e6c1
|
4
|
+
data.tar.gz: c1555643d033e6eae3e67a69ef8c2256680edbc3673cbc117d746c2e89fcfa8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee4e9c8e6859c7279566b4aa1b475697e7ebf0414f70f3dd9f39d5df94b973ab17ede0560f1fc1c829a8050ee53ab926524671d2a342bb4af0e9c28700d46981
|
7
|
+
data.tar.gz: ec2793fdf59131a44e0bacfa0422ba1ae897d495abb57186e7af086340d72bd894081e725cc9a9c50489626daddda9d96022fedf09e797847a791217ac4ffeb3
|
@@ -146,7 +146,9 @@ namespace :wco_email do
|
|
146
146
|
schs = WcoEmail::EmailAction.active.where({ :perform_at.lte => Time.now })
|
147
147
|
print "[#{schs.length}]" if schs.length != 0
|
148
148
|
schs.each do |sch|
|
149
|
+
|
149
150
|
sch.send_and_roll
|
151
|
+
|
150
152
|
print '^'
|
151
153
|
sleep 1
|
152
154
|
end
|
@@ -158,10 +160,11 @@ namespace :wco_email do
|
|
158
160
|
|
159
161
|
desc 'send contexts'
|
160
162
|
task send_contexts: :environment do
|
163
|
+
puts! "Starting wco_email:run_email_actions..."
|
161
164
|
while true do
|
162
165
|
|
163
166
|
ctxs = WcoEmail::Context.scheduled.notsent
|
164
|
-
print "
|
167
|
+
print "[#{ctxs.length}]" if ctxs.length != 0
|
165
168
|
ctxs.map do |ctx|
|
166
169
|
|
167
170
|
unsub = WcoEmail::Unsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.email_template_id }).first
|
@@ -186,8 +189,8 @@ namespace :wco_email do
|
|
186
189
|
sleep 1
|
187
190
|
end
|
188
191
|
|
189
|
-
sleep 15
|
190
192
|
print '.'
|
193
|
+
sleep 15
|
191
194
|
|
192
195
|
end
|
193
196
|
end
|