Displaying 20 results from an estimated 2000 matches similar to: "Storing Rails controller callback data in session"
2013 Nov 22
4
Delayed JOB ISSUE
Hi all
I am using delayed jobs to send sms I am using
"http://github.com/tobi/delayed_job/tree/master". In my other website my
delayed job is working fine. Recently I have took one new domain in the
same server which I have my other app''s which are working fine. Now the
issue is after taking new domain and running the old app with new domain
delayed job is not working
2009 Nov 26
1
Can the http response and the controller/action finish be separated?
Hi all,
I have a situation where a very simple request can trigger a time-
consuming operation, but the requesting page doesn''t need the result
of the lengthy computation. In the standard controller action of
handling the http request, it appears that ack''ing the request is
closely coupled with completing the request. Can this be altered in
order to separate these two actions
2011 Jul 19
2
ActiveRecord::Base.establish_connection in development and production envs
Hi, guys!
Background:
I''ve resque workers in my application. These workers do several jobs
that associated with DB. In development environment, I''ve no need to
provide some additional configuration for db, they are use development
database. But then I switching to production env, I set
ActiveRecord::Base.establish_connection with my production DB
parameters.
Problem:
When
2010 Jun 16
2
how to call a function after 10 minutes or second?
Hi all,
I have a problem.
I want to call some function after every 10 minutes. But I don''t it.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this
2012 Jun 08
7
filter children with acts_as_tree
Hello Experts,
I have a tree of categories in this category object there is a property
called type.
the root categories have no type but the children have. so how I can get
all the roots with filled in children that have category type = ''B'' for
instance.
I tried to run Category.roots then delete children With a category not
equal to ''B'' but this causes a major
1999 Jul 05
1
smbtar/smbclient and backups of NT
I've looked at samba archives (mailing lists), I've looked at altavista,
and deja.com. No help.
I want to do a backup of NT machine using smbclient. I call it like:
# smbclient //MACHINE/Share Pass -U Administrator -E -c tarmode full -D usr
-d0 -Tc test.tar
It starts fine, but after some time thing like this happen:
...
Error reading file \usr\mail\Vanja\Attach\att11.eml. Got 0 bytes
2012 May 22
3
[RESQUE]Question about queues
I run Resque with x ''general'' queues. With ''general'' I mean a queue that
may run every type of Worker. Or in the Rake command: COUNT=x QUEUE=*
rake resque:work
When a worker runs a job of a specific class, it may not run another job
of the same class simultaniously. This job has to wait until the
previous job has finished before it may start.
BTW The reason
2011 Jan 24
1
passing multiple arguments in resque scheduler
Hi,
I have implemented resque scheduler in my application by looking at
example here https://github.com/bvandenbos/resque-scheduler. I have
configured resque_schedule.yml file, and in that I can pass arguments
to the resque job. My requirement is to pass more than one arguments
to the queueing resque job. If we consider the example given,
clear_leaderboards_contributors:
cron: "30 6 * *
2012 Apr 10
2
how to use cronjob
hey everyone i want to send mails by scheduling the time
dynamically.lets say in a single table i have all the employee logs
who came at different timings.they are from different locations and
departments. i want to send mails to different mails ids according to
there location to there HR. can i do this with cron job.
thanks in advance
--
You received this message because you are subscribed to
2011 Jan 15
4
Best practices for email delivery in production
In pre Rails 3 world I was using ar_sendmail to queue up emails. Then
I would setup a cron job every few minutes to deliver the emails. But
that doesn''t work perfectly in Rails 3. What is the best way to
deliver emails in production environment in Rails 3?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2011 Jul 13
1
puppet-dashboard delayed workers
Hello
I have just installed puppet dashboard from git.
everything seems to load ok except it seems as though background tasks
are not being run.
According to the code README:
running: # env CPUS=4 RAILS_ENV=production /.../script/delayed_job -p
dashboard -n $CPUS -m start
will start the worker.
however it seems as though it is not running (or if it is how can I check?)
and the back ground
2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer:
UserMailer.delay.msg_notification(record)
In user_mailer.rb
class UserMailer < ActionMailer::Base
...
def msg_notification(record)
mail(
:to => "#{record.user.email}",
:subject => "Notification"
)
end
..
end
But this errors with:
NoMethodError (undefined method `delay'' for
2011 Apr 18
2
Problem with resque; parent process doesn't die
I am facing problem in resque process. I have following implementation:
/config/resque_schedule.yml
add_jobs_to_queue:
cron: "15 * * * *"
class: FooJob
description: "Find results from class Bar and put on queue"
/app/jobs/foo_job.rb
class FooJob
@queue = :normal
def self.perform
Bar.add_jobs
end
end
app/models/bar.rb
class Bar
def self.add_jobs
2006 Sep 04
2
"include" versus "extend" - what's the difference
Hi,
Just wondering when one would use "include" over "extend"? Both seem to
bring in methods to the class no?
The context is I''m just trying to understand why both are used with the
acts_as_audited plugin:
Full extract from plugin (used within here):
==================================================
# Copyright (c) 2006 Brandon Keepers
#
# Permission is hereby
2010 Aug 02
0
delayed)_job gem installation issue
here is my environment.rb
config.gem ''collectiveidea-delayed_job'', :source => ''http://
gems.github.com''
>>gem list | grep coll
collectiveidea-delayed_job (1.8.2)
The gem infact got installed via rake gems:install. but now when I
start my app, it doesn''t recognize the gem being installed. Please
help.
script/generate delayed_job
2010 May 12
3
Best Gem For Threaded Comment Storage?
Dear List,
Given that I am developing a rails 2.3.5 site,
When it comes to storing threaded comments in a blog or forum,
Then which plugin/gem should be considered "State of the Art"?
I''m starting with these URLs:
http://github.com/rails/acts_as_tree
http://github.com/rails/acts_as_nested_set
http://github.com/collectiveidea/awesome_nested_set
2012 Nov 05
3
Announce: Puppet Dashboard 1.2.13 Available
Puppet Dashboard 1.2.13 is a maintenance and bugfix release of Puppet Dashboard.
This release is available for download at:
https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.13.tar.gz
Debian packages are available at
https://apt.puppetlabs.com
RPM packages are available at
https://yum.puppetlabs.com
See the Verifying Puppet Download section at:
2012 Mar 06
1
Issue with pe-dashboard-workers
I''ve almost gotten PE running --
Based on tips from a recent Webinar, I''ve started on a minimal RHEL 6
system, and have installed the PE 2.03 packages. Once I set up /etc/
hosts (DNS will come later), I started the PE services. Given past
problems (possibly just me), I was pleasantly surprised that the
puppet-enterprise-updater script was so accommodating as I remembered
which
2012 Jul 06
2
ActionMailer::Base.deliveries returns array with duplicated elements in production env
Hello, I am testing for email sending from my app and I have a scenario
that passes in test env but not in production. When I make dump of
ActionMailer::Base.deliveries I saw that it returns array with duplicated
elements in production env but not in test env. I am using sqlite3 for test
env and mysql for production. Also I use delayed_job. Does anyone had the
same issue? Thanks in advance :)
2012 Nov 19
6
puppet-dashboard - rake API not working
Hello all,
I am quite new to the puppet arena, but I am really impressed with puppet
as a tool and the possibilities it gives you with regards to managing many
systems.
I am running dashboard 1.2.14 and am trying to query via the rake API:
http://docs.puppetlabs.com/dashboard/manual/1.2/rake_api.html
when I do, I get the following error:
<snip>
# sudo -u puppet-dashboard rake -f