Data dodania Pytanie
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
2016-07-09 02:07 delayed_paperclip not running in the background »
I am using the latest versions of both Paperclip (v5.0.0) and Delayed_Paperclip (v3) on Rails 4.2 Everything is working fine except Delayed_Papercli...
(0) odpowiedzi
2016-07-07 14:07 How to run rails background jobs in a sequential manner? »
I am calling a background job from my controller to fetch around 1000 entries from the database and work on it. However I want to call this job for ev...
(0) odpowiedzi
2016-07-07 05:07 Resque jobs can't connect to outside hosts »
In my Rails app, I've got ActiveJob setup to work with Resque. I've created the this job to send iOS push notifications with the grocer gem: class Se...
(1) odpowiedzi
2016-07-05 20:07 Queueing in Delayed_Job with ActiveJobs »
In a controller, I have a post request by an authenticated user firing an ActiveJob. RunReportsJob.perform_later(param1, param2, param3) It works ...
(1) odpowiedzi
2016-07-04 09:07 Scheduling with Clockwork/Delayed_Job/ActiveJob to run every 5 minutes (round) »
I am reading some sensor values and I want to schedule recurring jobs in order to repeat every :00, :10, :15, :20, :25, :30, :35 etc. I am using clo...
(0) odpowiedzi
2016-07-01 16:07 Custom ActiveJob Class for ActionMailer »
In my rails application I'm using ActionMailer to send emails in the background with the help of ActiveJob. The problem is that sometimes I'm receivin...
(0) odpowiedzi
2016-07-01 16:07 Get current status of a delayed job in Sidekiq (through Active Job?) »
I use rails 4.2.5 and Sidekiq for background processing. There is an API which an application can call. I now have this code: def start_item(name, ...
(1) odpowiedzi
2016-06-23 22:06 How to enqueue a job within a job dynamically in Rails? »
I've a job, and when the job is run, at the very bottom of it, and I want to enqueue the same job again to run after 1 hour, but with different argume...
(2) odpowiedzi
2016-06-23 14:06 Rails Sidekiq Queue size not working »
I have a Rails app with 2 jobs (ImportCsvJob and ProcessCsvJob). So that I can visibly hint in the app that there are still jobs in the queue I have t...
(2) odpowiedzi
2016-06-23 10:06 Active Job connection refused error »
This is the error message I get: Job ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper (id=26) FAILED (0 prior attempts) with DRb::DRbConnError...
(0) odpowiedzi
2016-06-20 20:06 How to use ActiveJob (Resque Adapter) with Rails no ActiveRecord (using Mongoid) »
I've been using Mongoid Adapter with Rails for an app. So I basically set the project up to not use ActiveRecord (since I'll also be deploying this to...
(0) odpowiedzi
2016-06-17 03:06 ActiveJob deliver_later not sending »
I have the following method: UserMailer.comment_alert(@comment, user, type).deliver_later Which oddly shows up with the param deliver_now in the ra...
(1) odpowiedzi
2016-06-15 23:06 How to run Que jobs »
I have installed the que gem and I would like to run the tasks I'm scheduling with active job, so far I have added in config/application.rb config.ac...
(0) odpowiedzi
2016-06-15 09:06 Testing job queueing in Rails + Minitest + Sidekiq »
This my test file: require "test_helper" include ActiveJob::TestHelper ActiveJob::Base.queue_adapter = :test describe "A provider requests premium ...
(0) odpowiedzi