Data dodania Pytanie
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
2016-08-18 18:08 Rails ActiveJob Background Job Keeps Pinging Mailchimp Repeatedly »
I have a rails app (v4.2) I'm developing and when a user registers for the site, I'd like to sign them up to my Mailchimp mailing list. I've implemen...
(1) odpowiedzi
2016-08-16 18:08 Getting ActiveJob and Sidekiq working with ActionCable for Chat Room »
so I have been following the tutorial by DHH on implementing a basic chat room. The implementation works well enough for me, until I try and integrat...
(1) odpowiedzi
2016-08-01 20:08 Rails: How to check if an email is already enqueued »
How to check that an email is already enqueued, Im using active job: ofert_approved_notifier = Notifier.ofert_approved(@ofert.user, @ofert) if ofe...
(1) odpowiedzi
2016-07-30 17:07 Storing current optional route scope before calling deliver_later on rails mailer »
Rails 4.2 Ruby 2.3 I have two optional routing scopes relating to locale information. They are set in a before_action in the application_controller ...
(1) odpowiedzi
2016-07-27 19:07 ActiveJob::SerializationError Unsupported argument type: BigDecimal »
/home/vignesh/.rvm/gems/ruby-2.2.2/gems/activejob-4.2.5.1/lib/active_job/arguments.rb:69:in serialize_argument' /home/vignesh/.rvm/gems/ruby-2.2.2/gem...
(0) odpowiedzi
2016-07-23 18:07 Rails and Que jobs »
Before I use sidekiq but now I decided to move to que and store everything in Postgresql. Because I don't need redis high-perfomance features I wanted...
(2) odpowiedzi
2016-07-19 23:07 ActiveJob cannot schedule jobs in the future, although Sidekiq is set as queue adapter »
I have an ActiveJob job which I would like to run sometime in the future. I'm using this template with Sidekiq integrated. Sidekiq web UI is up and ru...
(0) odpowiedzi
2016-07-15 20:07 sucker_punch and ActiveJob Rspec testing perform and perform_in »
I'm having issues with testing a job that I have created. The job looks like this: def SendEmailJob < ActiveJob::Base include SuckerPunch::Job ...
(0) odpowiedzi
2016-07-14 10:07 Stub ActiveJob with Rspec »
I have an active job SubscribeUserToMailingListJob that updates my Mailchimp list everytime a user is created using an after_commit callback. When I...
(1) odpowiedzi
2016-07-11 22:07 Rails Async Active Job doesn't execute code, while inline does »
Does the :async queue adapter actually do anything? :inline, which is what is default in Rails 4, processes jobs built with ActiveJob, uh... inline, ...
(1) odpowiedzi