Displaying 20 results from an estimated 8000 matches similar to: "smtp timeout failures"
2008 May 03
2
backgroundrb / actionmailer / sendmail
Hello,
I''m trying to send emails from a backgroundrb worker and the email doesn''t
send. I get no log messages in the sendmail log or the system log, nothing
in the backgroundrb logs at all, nothing in the production log.
Below is my code for each component
worker:
class QuizReviewerWorker < BackgrounDRb::MetaWorker
set_worker_name :quiz_review_sender
def create(args =
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like
ActionView cant find my template. same code works as a rake task.
here my worker:
class StatusMailWorker < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2007 Feb 20
1
"Text is not a module"
Hello all,
After upgrading to Rails 1.2.2, I''m getting a strange error when one of my
workers is invoked. The worker is responsible for monitoring a folder
(using directory_watcher) and emailing a specific user when a file is
dropped there, but it''s bombing immediately upon instantiation (or maybe
when trying to instantiate ActionMailer?) with the error "Text is not a
2006 Jul 14
4
Using BackgrounDRb to replace nested loops?
In response to my Rails Weenie post today[1], someone mentioned that
I try BackgrounDRb to help take the strain off my application.
1: http://rails.techno-weenie.net/question/2006/7/13/nested-loops-
best-way-to-send-messages-to-blog-subscribers
I''ve just tried to install and use BackgrounDRb with my app, but I''m
afraid that I''m not too versed in running processes
2006 Jun 30
2
Need to send email from a worker
Hello,
Can someone suggest the simplest way to send email from a worker? At
completion, I need to send the results of it''s work to a recipient.
Thanks,
Doug Turner
skype: dduuggllaa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060629/94d9fb64/attachment.html
2008 Jan 15
1
actionmailer the background
I have bdrb successfully set up and running in a local project. It''s
doing two things:
1) processing large csv files and using ActiveRecord to insert
2) sending large batches of emails using ActionMailer
In development both work well. I see my ActionMailer emails in the
log (though it''s the development.log -- odd?)
On the production server csv processing works well, but
2006 Aug 07
1
:load_rails
if CONFIG[''load_rails'']
ActiveRecord::Base.allow_concurrency = true
ActiveRecord::Base.establish_connection(YAML.load(ERB.new(IO.read
("#{RAILS_ROOT}/#{CONFIG[''database_yml'']}")).result)[CONFIG[''environment'']])
end
if i read the code right, this option doesnt really load rails. wouldnt it
be better (for those who rely on the
2006 Aug 12
1
Multiple args
Hi
It seems the following code do not transfer multiple arguments to the
worker instance:
controller:
=======
# recipients = Hash
# mailing = Mailing model instance
session[:job_key] = MiddleMan.new_worker( :class => :mail_queue_worker,
:args => { :recipients
=> recipients, :mailing => mailing },
2006 Aug 24
1
ActionMailer doesn''t work in backgroundrb
I am pretty confident that mailers do not work in backgroundrb. Can
anyone confirm this? Because when I try to do
Notifier.deliver_some_method I get an error saying it cant find the
templates for my email. The funny thing is that when I run script/
runner Notifier.deliver_some_method it works just fine. Any ideas?
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
O: 800-341-6826
M:
2007 Jul 11
3
Problem with scheduled task mysteriously stopping
Hi there,
I have a scheduled task which I started from Rails, set to run every
5 minutes, it takes probably about 20-30 seconds to execute (it''s
aggregating some feeds). It ran for about 5 hours and then
mysteriously stopped -- the logs show no errors.
This kind of sucks because it''s like a silent failure, has anyone
else had this problem?
--simon
--
2006 Jun 16
2
Need to call C++ processing beast from backgroudrb
Hello,
Bravo Ezra for Backgroundrb! What an elegant piece of engineering. I
envision many folks like myself looking at our CPU hogging executables and
finally seeing a clean path to the Web.
I was wondering if any folks have a good strategy for calling out to a C++
(or any other compiled) executable from a worker. Is the only option to call
system() from a worker? That feels a bit unsatisfying.
2007 Apr 06
2
Best way to start a worker
I have installed backgroundrb. I can start it. I have read everything I
can get my hands on, and have read the list for a few months. I have
written a worker, and am ready to start.
This worker reads a queue, and processes it (sends queued emails). Sends 10,
sleeps for a minute, sends 10 until done - very straightforward.
My question is, what would be the best way to run this? I have
2007 Jan 18
1
multithreading in rails
Hi,
I am having a few problems with actionmailer, mainly taking to long to
send emails.
One solution I have come up with is using thread''s, pretty new to this
ruby stuff, so if anyone has any suggestions about threads and
actionmailer, please let me know
thanks
tom
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2009 Jan 05
1
packet_worker_runner error
Hi,
I still have the following error while loading backgroundrb :
/opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/
packet-0.1.14/lib/packet/packet_master.rb:116:in `exec'': No such file
or directory - packet_worker_runner 14:11:maintenance_worker:64:/home/
antz/declix.com/production/lib/workers (Errno::ENOENT)
from
2007 Nov 09
3
Why the switch to SMTP
Can anyone explain why BackgrounDRb is switching form DRb to SMTP
protocol? That seems like a lot of overhead to add to the messaging
back and forth?
Orion
2006 Sep 09
2
actionmailer HELP
Hi,
I want to receive emails with actionmailer.And I try to do this example:
http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer
I am working on windows and I couldn''t set up Actionmailer for windows.
How can I configure actionmailer for windows? I am glad,if anybody can
help me
Regards...
--
Posted via http://www.ruby-forum.com/.
2008 Jan 29
4
Setting up release-1.0.1
Hello,
I am unable to get the backgroundrb server to run.
Initially I got:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in
`load_missing_constant'': uninitialized constant
BackgrounDRb::MasterProxy (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
2006 Jul 27
3
timer service
hi everyone,
I have this case where I need to check some records in the database of a
specific data condition every 5 seconds and do some business logic if
this scenario is true.
Problem is there doesn''t seem to be any timer service in the rails
framework. Anyone have a general idea of how to attack this problem?
thanks,
-dan
--
Posted via http://www.ruby-forum.com/.
2006 Jan 04
4
Multiple emails from one SMTP connection?
Hi all. I''m running a nightly job that is creating a CSV file and
sending to member via SMTP. I got the following error after about 20
emails or so: Net::SMTPServerBusy Too many connections from IP...
Is there a way (using ActionMailer) to open a connection and send
multiple emails. Or could I make sure the connection is closed before
opening another? The only other option is to send