Data dodania Pytanie
2017-05-03 18:05 Calling methods in ActiveJob perform »
I'm getting a No Method Error when calling my job. I don't know why. This is the actual error: NoMethodError: undefined method `get_customers' for # ...
(1) odpowiedzi
2017-05-02 13:05 How to perform a background job now? »
I want to execute this on background Product.all.map { |product| product.save } When I save the product will call a callback to create a new record...
(1) odpowiedzi
2017-04-30 20:04 RSpec double as ActiveJob argument »
I need to test a class that submits an ActiveJob using perform_later with RSpec doubles as arguments My class does at some point def register_event!...
(0) odpowiedzi
2017-04-29 08:04 Delayed job not entering into the main jobs queue after the mentioned delayed time lapses while using Resque-scheduler and redis »
I need to perform a job wherein each time an order is created it is assigned to a vendor and if the vendor does not accept the order and updates the s...
(0) odpowiedzi
2017-04-19 23:04 Schedule an ActiveJob in Rails »
I'm doing a weather API which will get, process and save data from another API. In order to get the daily updates (request URL info, get the JSON/XML ...
(3) odpowiedzi
2017-04-15 20:04 ActiveJob: Generate sitemap in response to content generation »
In my Rails 4.2 app, I'm using sitemap_generator gem to generate sitemaps. And use Heroku scheduler to execute the rake task. I think it'd be better i...
(0) odpowiedzi
2017-04-14 17:04 Rails ActiveJob - how to stop job from being enqueued in before_enqueue »
I am running Rails 4.2.8 and I want to make my job only run under certain conditions. Currently I am doing that check in the code that is calling the...
(1) odpowiedzi
2017-04-04 13:04 Getting retry count insite ActiveJob backed by DelayedJob adapter »
I would like to send an email message on each job retry. Here is the sample job: class RetryTestJob < ActiveJob::Base queue_as :default def p...
(0) odpowiedzi
2017-03-27 00:03 How to see Bullet logs in Sidekiq worker? »
Is there any way of seeing Bullet logs while the work is processed in Sidekiq worker? When I perform N+1 query in Sidekiq worker (through ActiveJob qu...
(0) odpowiedzi
2017-03-26 13:03 Sidekiq worker for deleting items »
I created two tables (models), first for Items, second for Item pictures (Item and ItemPicture) - (belongs_to relation). It can happen that picture ma...
(0) odpowiedzi
2017-03-24 01:03 Rspec: test if method was called on an object inside a job? »
I made a job to call a method if ended_at was less than today. For some reason I keep getting failures even if I throw a binding pry right at the mome...
(1) odpowiedzi
2017-03-21 09:03 Rails set(wait: 2.minutes) method for active job does not works »
Creating an background job with the resque_scheduler gem on Redis server. class Estamps::OrderAssignment < ActiveRecord::Base after_save :enqu...
(0) odpowiedzi
2017-03-21 01:03 Sidekiq: How to get a job to fire once on (re)deployment? »
I have a few jobs that query some external APIs. I have two types of jobs. One job to gather a large amount of data. And another to keep the data u...
(1) odpowiedzi
2017-03-19 20:03 Rails 5 Render view/partial with Active Job with presenter »
I'm new to Rails and i've been trying out Active Job and Action Cable and also Presenter and I've searched all over the place but not being able to fi...
(1) odpowiedzi
2017-03-15 19:03 ActiveJob: start a job automatically when starting server »
For example I have a job that I want recurrence every 1 hour. Here is my code: class NewsletterJob < ApplicationJob queue_as :default after_p...
(1) odpowiedzi
2017-03-15 18:03 Sidekiq jobs aren't firing in development mode, only in production »
Edit: I was just told by our team that docker is not even used for production. So it seems the issue is limited to Docker and not the environments tha...
(1) odpowiedzi
2017-03-10 20:03 Send email before destroy User, Rails 5 »
I'm trying to hook a mailer before my User object is destroyed. I am using Sidekiq to send emails but this error comes out when the User is destroyed...
(1) odpowiedzi
2017-03-07 13:03 Resque scheduler Active Job on Redis Server enqueued but not running »
I have a rails app where an order is assigned to a vendor and the vendor has to accept the order within the next 15 minutes (for test purpose, I am ke...
(0) odpowiedzi
2017-02-28 13:02 Making posts inactive after a date and time »
I've to make posts inactive after a given date and time by the user who creates these posts. I've added a boolean field "published" to make a post act...
(2) odpowiedzi
2017-02-28 09:02 Rails active job run daily at specific time according to time zone »
I have an Active job that is scheduled every day at 3 AM.The application is a SAAS each sub-domain has different time zone. What i'm asking is how to ...
(1) odpowiedzi
2017-02-26 15:02 Get total number of jobs in Rails Active Jobs? »
I am working on some performance metrics code and I would like to hook on enqueue/start instrumentation points and report stats about total number of ...
(0) odpowiedzi
2017-02-18 16:02 Sidekiq active job , how to run one job at a time? (non-concurrent run) »
so, i have this job where it is able to be requested multiple times. however, when i run sidekiq, i want the jobs to be run one job at a time, in a qu...
(1) odpowiedzi
2017-02-18 14:02 Sidekiq Active job function perform_later not working »
so this is my first time working with an active job. I chose the sidekiq adapter , and currently i am having this issue. I want to queue up my jobs ...
(1) odpowiedzi
2017-02-17 16:02 External web service for sending background emails in rails »
I've used this instructions and sent "Welcome" mail to my signed up user. But this makes the user wait for 5-8 seconds because the server is trying to...
(1) odpowiedzi
2017-02-11 04:02 Rails4: Use two types of background job engines in one RoR application »
As far as I know Rails provides active job for the background job interface. We could use Delayed Job, Resque, Sidekiq. For now, I use Sidekiq and e...
(0) odpowiedzi
2017-02-09 22:02 How to use ActiveJob in combination with accepts_nested_attributes_for »
Given the following example model: class Foo < ActiveRecord::Base has_many :foobars has_many :bars, through: :foobars accepts_nested_attribu...
(0) odpowiedzi
2017-02-02 17:02 What might cause scheduled Rails Active Jobs to disappear? »
I have a suspicion that some our active jobs are disappearing but I don't know why. Below is one I have found the evidence for it's disappearance, but...
(2) odpowiedzi
2017-01-30 10:01 active job in rails 4 »
I am looking forward to active job for active record for rails 4. I search related to it. I found gem 'delayed_job_active_record' . But this supports ...
(1) odpowiedzi
2017-01-28 10:01 ActiveJob issue implementing Delayed_job »
For my personal website build with Rails 5, I'm trying to implement a job for sending a contact form. I'm using the delayed_job_active_record gem. I ...
(0) odpowiedzi
2017-01-16 06:01 When are versions NOT processing using carrierwave_direct? »
I have just switched from carrierwave_backgrounder to carrierwave_direct. I have carrierwave_direct set up and functioning. That is, the main file i...
(0) odpowiedzi
2017-01-05 23:01 Sidekiq + ActiveJob callbacks run too fast »
I use Sidekiq with ActiveJob and its callbacks. At the beginning I'd like to say that my problem sounds very similar to this one: https://github.com/m...
(0) odpowiedzi
2017-01-02 23:01 Error while queueing an email with Sidekiq »
When sending an email with sidekiq as a queue using deliver_later. I'm getting this error: ActiveJob::DeserializationError: Error while trying to...
(1) odpowiedzi
2017-01-02 12:01 ActiveJob spec doesn't work with ActionController::Parameters »
My test: describe TasksCsvsController do describe '#index' do let(:params) { {'clients' => {'id' => ['1', '2', '3']}} } before do ...
(0) odpowiedzi
2016-12-20 19:12 In Rails is there a way to group a series of active jobs executing in parallel and be notified when they all complete? »
In Rails is there a way to group a series of ActiveJobs executing in parallel on different instances of the same queue, and be notified when they all ...
(0) odpowiedzi
2016-12-20 05:12 How to extend ActiveJob to access delayed_job's failure/error hooks? »
I'm using rails ActiveJob's delayed_job adaptor, but would like to still be able to access delayed_job's error and failure hooks to trigger notificati...
(0) odpowiedzi