search for: resqu

Displaying 20 results from an estimated 24 matches for "resqu".

Did you mean: requ
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 jo...
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 ex...
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_j...
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 Aug 29
0
Why is #verify_active_connections! :nodoc: ?
...ceptions with applications that sometimes see very little usage. However, from my searching in this (and the Ruby on Rails: Talk) list(s), I''m also under the impression that someone using ActiveRecord without rails might have to call this manually. In my case, I''m setting up a resque (https://github.com/defunkt/resque) system and might have my worker(s) use ActiveRecord but _not_ the full rails environment. I might have a worker go long stretches without any action, giving me stale connections in my connection pool. To avoid any problems, I found a gem, resque-ensure-conn...
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 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 re...
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 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 c:/Ruby186/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/t asks/rails.rb:10) RESQUE CONF {"production_private"=>"localhost:9878", "auth"=>{"username"=>"tweas i...
2011 Jan 10
2
Problem with multiple requires in Ruby DSL
...stumped on this one, which may or may not be related to the DSL. When trying to have a resource have a simple dependency on two things at once, it simply fails, and I''m stumped as to why. The error message is: Parameter require failed: No title provided and "[ Exec[git-/usr/local/ resque-runner], Rvm_install[1.9.2-p136]]" is not a valid resource reference My definition looks like this: define :bundle_install, :rvm do rvm_exec "bundle-#{@name}", :command => "bundle install --without production", :ruby => @rvm, :pat...
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 Apr 25
4
Why doesn't SIGTERM quit gracefully?
Hi, I''m wondering why SIGINT and SIGTERM both were chosen for the quick shutdown? I agree with SIGINT but not with SIGTERM. A lot of unix tools send SIGTERM as default (kill, runit among some) and it seems to be the standard way of telling a process to quit gracefully but not among Ruby people (there are a few other ruby processes behaving the same way). I just think it''s weird
2004 Nov 14
3
Running Photoshop on a relatively old PC
For several months I've been thinking about moving to Linux operating system. This would resque our old machine which is getting left behind when it comes to hardware (and it would also put fun back into computing). The problem is that if I convert the only machine our family has to Linux, it would mean that an important program, Photoshop, which we use everyday has to be abandoned. This can...
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_connect...
2012 Dec 04
0
Empty test suite is run after every rake task
...:version => "2.0.0" gem "SyslogLogger", :require => "syslog_logger"#, :version => "1.4.0" gem ''rest-client'', :require => ''rest_client'' gem "daemons" gem "sinatra", "1.1.4" gem "resque", "1.13.0" gem "resque-scheduler", :require => ''resque_scheduler'' gem "unicorn" gem "multi_json" gem "geokit", :path => ''vendor/cache/git/geokit'' # :git => "git://github.com/seboslaw/geokit-...
2012 Apr 02
10
Pessimistic locking locks the entire table?
Hi guys, I must be missing something obvious with pessimistic locking. Here is what I do (Rails 2.3, mySQL): In my Foo model: def test Foo.transaction do lock = UpdateLockForFoo.find_by_foo_id(self.id, :lock => true) sleep 30 end end For each Foo model, I have an UpdateLockForFoo. This "lock" needs to be acquired before doing any changes to Foo. I believe it works,
2010 Oct 19
0
Queue management
Is there any good alternative to resque to management of queue considering cpu memory and usage to increase or decrease background jobs ? -- 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/Ez6...
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...
2012 Aug 31
0
Ruby on rails Developer-Golden CO
...oking for bright, capable web developers with front-end, back-end, or full stack experience. If you have a background in web development or Ruby on Rails development we would like to talk with you. You will be working with: * Rails * SASS, HAML, SLIM * JQuery * RSpec/Cucumber * RabbitMQ * Resque * Mobile apps (Android, iPhone) * MySQL/NoSQL * Z-Wave wireless devices * Video streaming * Linux -- Pradeep Technical Recruiter HR GIANTS http://www.hrgiants.c... <http://www.hrgiants.com/> pradeept-Hx8oqYkUaItWk0Htik3J/w@public.gmane.org Tel : 1-510-870-2315 Fax: 1-415-367-2525...
2012 May 09
5
Unicorn doesn't play nice with Capistrano deployment?
I am having issues when using unicorn with a Capistrano deployment. >From what I have been able to understand Capistrano uses a scheme in wich every release is deployed inside the releases directory under a unique name and if the transaction was successful, creates a symlink named current that will point to that release. So I end up with a deployment directory such as: