resque

How do I clear stuck/stale Resque workers?

和自甴很熟 提交于 2019-11-27 04:56:09
问题 As you can see from the attached image, I've got a couple of workers that seem to be stuck. Those processes shouldn't take longer than a couple of seconds. I'm not sure why they won't clear or how to manually remove them. I'm on Heroku using Resque with Redis-to-Go and HireFire to automatically scale workers. 回答1: None of these solutions worked for me, I would still see this in redis-web: 0 out of 10 Workers Working Finally, this worked for me to clear all the workers: Resque.workers.each {|w

Rails Resque workers fail with PGError: server closed the connection unexpectedly

不羁岁月 提交于 2019-11-27 00:23:25
问题 I have site running rails application and resque workers running in production mode, on Ubuntu 9.10, Rails 2.3.4, ruby-ee 2010.01, PostgreSQL 8.4.2 Workers constantly raised errors: PGError: server closed the connection unexpectedly. My best guess is that master resque process establishes connection to db (e.g. authlogic does that when use User.acts_as_authentic), while loading rails app classes, and that connection becomes corrupted in fork()ed process (on exit?), so next forked children get

How to deploy resque workers in production?

霸气de小男生 提交于 2019-11-26 23:53:12
问题 The GitHub guys recently released their background processing app which uses Redis: http://github.com/defunkt/resque http://github.com/blog/542-introducing-resque I have it working locally, but I'm struggling to get it working in production. Has anyone got a: Capistrano recipe to deploy workers (control number of workers, restarting them, etc) Deployed workers to separate machine(s) from where the main app is running, what settings were needed here? gotten redis to survive a reboot on the

Node.js workers/background processes

送分小仙女□ 提交于 2019-11-26 18:55:43
问题 How can I create and use background jobs in node.js? I've come across two libs (node-resque and node-worker) but would like to know if there's something more used. 回答1: I did some research on this and I would do it like this. Setup beanstalkd Install beanstalkd. Another message queue, BUT this one supports DELAYED PUTS. If you compile from source it is going to be a little harder because it depends on libevent(like memcached). But then again, I don't think you have to compile it from source,

Resque vs Sidekiq? [closed]

社会主义新天地 提交于 2019-11-26 17:56:00
问题 I am currently using Resque for my background process but recently I heard a lot of huff-buff about sidekiq . Could anybody compare/differentiate? In particular I would like to know is there a way to monitor programmatically whether a job is completed in sidekiq 回答1: Resque: Pros: does not require thread safety (works with pretty much any gem out there); has no interpreter preference (you can use any ruby); Resque currently supports MRI 2.3.0 or later loads of plugins. Cons runs a process per