Questions tagged [delayed-job]

A Ruby library to queue and defer processing of slow methods like sending email and image resizing.

Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background.

It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks. Amongst those tasks are: •sending massive newsletters •image resizing •http downloads •updating smart collections •updating solr, our search server, after product changes •batch imports •spam checks

1613 questions
0
votes
2 answers

delayed_job_mongoid is not writing data in backend

I have mongoid model class RequestResponse include Mongoid::Document field :body, type: String field :job_id, type: Fixnum field :completed, type: Boolean end and according to rails cast I have a class in my lib folder class MyJob <…
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
0
votes
1 answer

Delayed Job Capistrano task without restarting each time

How is this possible? I am currently using Capistrano recipe that comes with delayed_job This is what I have: # Delayed Job recipes require "delayed/recipes" set :rails_env, "production" # added for delayed job after "deploy:stop", …
sites
  • 21,417
  • 17
  • 87
  • 146
0
votes
2 answers

Delayed job failing with no method error after upgrading the ruby

Heroku upgraded my ruby version. Old: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] New: ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] After that delayed job is not working in heroku. It is failing. {undefined method…
Thaha kp
  • 3,689
  • 1
  • 26
  • 25
0
votes
2 answers

Heroku timeout while getting data from external resource

I am new to Heroku I have an application which sends request to an external resource and get response this response can take more than 30 seconds may be 1 to 3 minutes. And I got error H-12 I can not use delay_job because my next step is totally…
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
0
votes
1 answer

Persisting thread in delayed_job

So I have a rails app where I want my delayed job process to communicate with an SMPP server. But the problem occurs when I try to send the messages. My thread that I created in an initializer (delayed_job.rb): if $0.ends_with?('/delayed_job') …
0
votes
1 answer

Delayed_job is no longer logging

For some reason, my Rails app is no longer logging my DelayedJob gem's activity, either to a separate log (delayed_job.log) or to the main Rails development log. I am also using the Workless gem, should this be relevant. It used to say things like…
CodeBiker
  • 2,985
  • 2
  • 33
  • 36
0
votes
3 answers

Rails problem with Delayed_Job and Active Record

I'm using Delayed_Job to grab a Twitter user's data from the API, but it's not saving it in the model for some reason! Please help! (code below) class BandJob < Struct.new(:band_id, :band_username) #parameter def perform require 'json' …
Michael Waxman
  • 1,815
  • 3
  • 18
  • 32
0
votes
2 answers

Joining separate log to main Rails development log

This is the reverse of the question I have seen several times elsewhere, in which someone wants to see how to create an another, separate Rails log from the main development log. For some reason, my Rails app is logging my DelayedJob gem's activity…
0
votes
1 answer

Gem not initializing when running job from worker?

I am using the Mandrill api gem to send scheduled emails with the delayed jobs gem. When the delayed job is executed by the worker the job is crashing at the line which creates the mandrill message with the following error: DailyMailJob failed with…
startupsmith
  • 5,554
  • 10
  • 50
  • 71
0
votes
1 answer

Works on localhost but fails on Heroku

I am using a delayed_jobs to run a task in the background. I am starting a task using ajax, the worker gets some uuid and writes to cache the status of the task and the result. then I use another ajax to poll every second and see if I got a…
borod108
  • 766
  • 1
  • 6
  • 16
0
votes
1 answer

DelayedJob with acts_as_ferret in production mode

I get the following error when I run my task via DelayedJob: closed stream /usr/lib/ruby/1.8/drb/drb.rb:961:in `select' /usr/lib/ruby/1.8/drb/drb.rb:961:in `alive?' /usr/lib/ruby/1.8/drb/drb.rb:1211:in `alive?' /usr/lib/ruby/1.8/drb/drb.rb:1168:in…
Gautam Rege
  • 697
  • 6
  • 12
0
votes
1 answer

Delayed Job custom job types with Whenever gem

I have been using clockwork to run custom delayed jobs after every 6 minutes. I am planning on trying whenever gem instead of clockwork. Does any one have an idea how should I go about doing this with whenever gem: …
Smoke
  • 1,052
  • 1
  • 10
  • 24
0
votes
2 answers

Rails mysql fetching old values

We are trying to implement sharding for our production environment. The problem we are facing is we have delayed jobs which is taking care of some background processing. If we update a model and put an entry in our delayed job for procession in…
0
votes
0 answers

How to make JQuery css to be drawn without delay?

I'm facing a wired issue. Using bootstrap, I coded some layouts similar to this:
Some short text
Some LONG text
displayed on
multiple…
MaxAuray
  • 513
  • 1
  • 4
  • 18
0
votes
1 answer

Rails - Roo "file does not exist" error when using Delayed Job

I'm using the Roo gem to import Excel files, CSV files, etc. The code works great a) on my local box with or without Delayed Job, and b) on Heroku without Delayed Job. Unfortunately when running on Heroku it fails if I'm using Delayed Job. Here are…
bcb
  • 939
  • 1
  • 8
  • 18
1 2 3
99
100