Data dodania Pytanie
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
2016-12-19 19:12 ActiveJob: Accessible instance variables between callbacks »
I have the following snippet within my job: before_enqueue do |job| # do something @car = create_car end before_perform do |job| # do somethi...
(0) odpowiedzi
2016-12-16 08:12 ActiveJob could not find record in `test` environment »
This issue only exists in test environment. Everything runs fine in development environment. I am facing a strange issue after recently upgrading to ...
(2) odpowiedzi
2016-12-15 22:12 Encoding error using wicked_pdf and rails ActiveJob »
I am using wicked-pdf to simplify generating pdf invoices in my Rails 5 application. I have two actions making use of the pdf functionality of wicked-...
(1) odpowiedzi
2016-12-12 21:12 Should jobs within jobs use perform_later or perform »
I'm calling ExampleJob.perform_later in an action. This job is in turn calling two other jobs (see below). Should these as well have the method perfo...
(1) odpowiedzi
2016-12-10 14:12 Disable logging for column in activerecord/activejob 4.2 »
is there any way to disable logging for certain columns in ActiveRecord/ActiveJob? I'm using delayed_job to queue mailing jobs with attachments, but ...
(0) odpowiedzi
2016-12-07 04:12 How to test that ActiveJob is enqueued? »
I have a create action that calls an ActiveJob if the record is successfully saved. def create @object = Object.new(importer_params) respond_to ...
(1) odpowiedzi
2016-12-02 01:12 Rails 4 ActionMailer deliver_later method not working if given extended wait period »
I have a Rails application that is hosted on Heroku that has a feature to send delayed emails. So the deliver_later! method for ActionMailer is able ...
(0) odpowiedzi
2016-11-30 18:11 ActiveJob::SerializationError - Unsupported argument type: Time / DateTime »
I am using Rails 5 and ActiveJob to process background tasks. I am trying to pass a object serialized with as_json to my job but I am receiving the f...
(1) odpowiedzi
2016-11-30 16:11 Disable ruby on rails job for test »
I'm writing controller test with rspec and after action completed, my job supposed to send email to the admin user. But I'd like to disable this job f...
(2) odpowiedzi
2016-11-25 22:11 How can I make an ActiveJob wait for other instances of that job? »
I want a job to refresh a database view on certain actions. The job can get called multiple times in short order. I want it to execute the task only t...
(0) odpowiedzi