Data dodania Pytanie
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
2016-11-23 13:11 How to achieve sequential processing in Rails? »
I have a task which has to be performed in sequential manner. It's mosty a database writing. The problem is that I have hard time to achieve it in Ra...
(1) odpowiedzi
2016-11-19 06:11 Rails 5 Active Job and Sidekiq not sending mailer »
So I am very new to sidekiq and activejob, I know that i dont need to background job a mailer that being sent on an account creation, however I really...
(1) odpowiedzi
2016-11-14 21:11 ActiveJob inline queue adapter for specific jobs »
Is there any way to set ActiveJob queue adapter to inline for specific background jobs? In my case I'd like to run some background jobs in tests to ...
(0) odpowiedzi
2016-11-11 19:11 Rails ActiveJob: write values to cookies in a perfrom_later sidekiq job »
So I have a job inside a controller method, which I want to write different values to cookies. class AController < ApplicationController def cre...
(0) odpowiedzi
2016-11-10 15:11 Rails change logger level for a specific job »
I need to debug a job on my production data. I have enhanced my ActiveJobs to support a dry_run mode, and I'd like to temporarily change the logger le...
(0) odpowiedzi
2016-11-10 01:11 Cucumber - perform ActiveJob `perform_later` jobs immediately »
I have many jobs that are calling other nested jobs using perform_later. However, during some tests on Cucumber, I'd like to execute those jobs immedi...
(0) odpowiedzi
2016-11-07 15:11 Rails ActiveJob Dry Runs »
I need to enable some "dry-run" option for some of my ActiveJobs. For my specific case, I need to run "chase" jobs for users that have not replied to...
(0) odpowiedzi
2016-11-04 21:11 access current_page? in ApplicationJob »
Do I have access to current_page? method in ApplicationJob? I tried to use it and the job didn't work anymore. def perform(message) if current_...
(1) odpowiedzi
2016-10-21 18:10 Rails 4.2 Asynchronous Emails With Attachments From Multipart Form »
I'm implementing an idea-submission feature on our web app. Users fill-in a multipart form which includes a file_field used to send a picture. Upon ...
(0) odpowiedzi
2016-10-20 12:10 Start job from another job »
Here is what I'm trying to achieve: As a user, I can book a spot for a class. If the class is already full, I'll be on the waiting list. When a new sp...
(1) odpowiedzi
2016-10-18 13:10 Sidekiq logs show JobWrapper instead of Job class name »
I have a Rails application that runs some background jobs via ActiveJob and Sidekiq. The sidekiq logs in both the terminal and the log file show the f...
(2) odpowiedzi
2016-10-14 00:10 List queued tasks with ActiveJob AsyncAdapter »
Is there a way I can see how many (maybe even inspect each job?) jobs are there remaining in the queue? ...
(1) odpowiedzi
2016-10-12 12:10 Dequeue active job with Active job in Rails »
I could enqueue jobs with perform_later but it's not dequeued at all. Also I set WelcomeEmailJob.set(wait: 1.seconds) It's not launched. tail -f log/...
(1) odpowiedzi
2016-10-11 12:10 Rails activejob with Sidekiq is spawning multiple jobs on perform_later »
I have an fairly simple Rails 5 app for monitoring sites speeds. It sends jobs off to an external page speed testing service and periodically checks t...
(1) odpowiedzi
2016-10-03 20:10 How can I test an Active Job method with mocks in RSpec? »
Given this Active Job method that has a lot of overhead in one of the methods it calls. In this case, it's the foo.generate that makes a big CSV file....
(1) odpowiedzi
2016-10-03 15:10 Sidekiq + ActionJob with ActionCable in production mode »
My stack Rails 5, ActionCable, ActiveJob, Sidekiq 2.2 and Redis. In development mode all work correct. In production with Sidekiq and Redis ActiveJob ...
(0) odpowiedzi
2016-10-03 14:10 Rails change ActiveJob adapter for a single job »
I have some scheduled tasks that run jobs with a real queue service. Now, I want to be able to run those tasks manually from a dashboard, wait for it...
(0) odpowiedzi
2016-09-30 05:09 Rails: Setting up Shoryuken, Active Job and Amazon SQS »
As a relative newcomer to AWS, it has been a little bit of curve getting Shoryuken gem (with Active Job and Active Record) to work based on the setup ...
(1) odpowiedzi
2016-09-28 16:09 How can I avoid deadlocks on my database when using ActiveJob in Rails? »
I haven't had a lot of experience with deadlocking issues in the past, but the more I try to work with ActiveJob and concurrently processing those job...
(1) odpowiedzi
2016-09-27 10:09 How to start Delayed Job with Ubuntu? »
I use Delayed Job as a queuing backend for Active Job on my Rails 5 app but I have no idea how to start the worker on Ubuntu 14.04 after startup. Shou...
(1) odpowiedzi
2016-09-24 16:09 Deliver later not working in the test environment in Rails 5 »
Basically, with the test config set up exactly how it worked in Rails 4 (delivery method set as test etc), aside from deprecated options which I have ...
(0) odpowiedzi
2016-09-15 18:09 Rails ActiveJob with Resque »
I'm trying to set a job to be performed in 1 hour using Resque. Using basically this command from the documentation: CleanupJob.set(wait: 1.week).perf...
(0) odpowiedzi
2016-09-03 01:09 How do I change attributes of a model after a set time »
I have a timer class in my application set to expire 24 hours after creation. Is there a way to run expire_if_running 24 hours after creation date, o...
(2) odpowiedzi
2016-08-30 05:08 Schedule a background job which occurs once in every two weeks »
I have to schedule a background job in my rails app which, runs in a Saturday every two weeks. The needs to be deployed on heroku. So please suggest s...
(1) odpowiedzi
2016-08-20 17:08 Using Sidekiq for Active Job and getting ActiveJob::DeserializationError »
I'm trying to use Sidekiq to run the below job. The job performs fine when not queued (perform_now) but fails when called as (perform_later), which...
(2) odpowiedzi