Displaying 20 results from an estimated 100000 matches similar to: "Queue management"
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 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
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
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 * *
2011 May 18
0
Time based configuration in God
Hi,
I am using resque, resque-scheduler gems in my rails app. To monitor the
working of resque workers, I am using God tool. I want to add such a god
configuration, which will monitor the time of job running in the resque
worker. If process execution exceeds the time limit, then it should restart
the worker.
I read post at http://god.rubyforge.org/. However, couldn''t peek the right
2012 Aug 31
0
Ruby on rails Developer-Golden CO
Hi
We are looking for a strong Ruby on Rails developer in Golden, CO. Post
your resumes to *pradeept at hrgiants.com* or call me at *510 870 2315. PDT*
Description:
Join our agile team of Ruby on Rails developers building wireless home
automation services in Golden, Colorado. We''re developing with leading-edge
technologies for a global market, and are looking for bright, capable web
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
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
2013 Jan 16
6
Highload project on RoR
I need advice about What is the best practice to scale RoR project ?
My current stack is:
- Ruby 1.9.3
- RoR 3.2.8
- Redis DB for caching and some hot data
- PostgreSQL
- Resque for background jobs
I am expecting a highload for my project for several month. And I need to
change my architecture.
Primarily, I want to change my backend architecture. I read about highload
2011 Apr 27
1
'bignum too big to convert into long' while migration in rails
While i run rake db:migrate i got below error ,let me know any one .
Please it is urgent to me.
D:\raj\tweasier>rake db:migrate --trace
(in D:/raj/tweasier)
DEPRECATION WARNING: Rake tasks in
vendor/plugins/open_flash_chart_2/tasks, vend
or/plugins/resque/tasks, and vendor/plugins/resque/tasks are deprecated.
Use lib
/tasks instead. (called from
2013 May 28
5
Storing Rails controller callback data in session
http://stackoverflow.com/questions/16770090/storing-rails-controller-callback-data-in-session
The idea is:
- Perform some time consuming action in background.
- Have the results from that action be propagated back to the controller
using a callback.
- Store the result in an in memory session store.
- Have the result in session be used and available from that point
onward.
2011 Nov 21
0
How to use two different sets of mailer templates for two different Devise models?
I''m using Resque to send Devise emails. To do so I set:
devise.rb
config.mailer = "Mailers::Devise::DeviseMailer"
But I have 2 devise models -- User and Client. I want to send
different devise mailer templates for each.
devise.rb says "The first four configuration values can also be set
straight in your models.", and config.mailer is one of those first
four, but
2012 Sep 18
3
Nginx + Phusion Passenger 3 problem with "504 Gateway time-out"
Hi,
I have a Rails 3.2 app. There is a specific request that takes a long
time to execute. The context is, the user uploads a pdf, and then we
have some processing through carrierwave + rmagick that generate a
jpeg from the first page of the document. Everything works in dev mode
using both webrick and thin. The problem happens on the prod
environment with Nginx + Passenger.
The request takes a
2013 Jun 30
1
Sidekiq on Heroku
Hi
I want to use Sidekiq to run some jobs in the background. The jobs will be
created by the whenever gem (or similar) which creates a Sidekiq worker at
a specific time. This worker will in turn create a few hundred Sidekiq jobs.
So, I''m using Heroku and wonder if I need to use a separate worker dyno for
these jobs? Or can I use, for example, Unicorn to run Sidekiq "inside"
2009 Nov 28
1
user management in ROR
Hi,
I am newbie for ROR and designing user management system, Which
includes all features including register , Profile of user , Profile
view of user, Inbox,Mails, .Please suugest some useful code links for
the same . and if you have any code for the same please help me. I
only create user registration system, Thanks in advance.
--
You received this message because you are subscribed to the
2013 Aug 27
2
trying to create asset management app having trouble with edit page
i trying to create an asset management app. i am working through the
ruby on rails 4.0 guide by Michael Hartl but in his guide it shows edit
page for authenticated users i do not needthis function as the app will
be deployed to an intranet. i have tried to adapt the edit portion in
the above mentioned guide but it is not working. i am a newbie to this
so any help with websites to look at or other
2010 Jun 02
0
Multiple threads writing to the same Starling queue doesn't work?
Hi guys,
I can''t find a clear answer to this: is it possible/correct to have
several threads write to the same Starling queue at the "same time"?
It doesn''t seem reliable according to my tests - but maybe I am doing
something wrong.
If I do:
def test_starling
FooWorker.asynch_foo_test(:my_id => ''foo'')
temp = []
for i in 1..1000
temp
2011 Sep 27
0
422 Error when using JMeter for load testing
I have a Rails 3.1 application that I am trying to use JMeter to load
test. Our site is targeted around collecting information so users
sign-up and then walk through a question and answer workflow and after
answering a few questions, they are rewarded with some useful
information. My JMeter test is configured to walk through sign-up and
then the full Q&A workflow.
Environment details:
2013 Jun 03
1
sidekiq: push background results to front
Rails 3.2.11
Sidekiq latest
My app continues background jobs that generate texts as the output.
class ProcessText
include Sidekiq::Worker
def perform(name, count)
puts "executing..."
@feed = Feed.first
@feed.process # here it returns String results!
end
end
What I want is basically how to send (or push?) the result texts to a
particular web