Data dodania Pytanie
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
2016-06-07 16:06 Spree - How to get the currently logged admin user »
I am working with a Delayed Job that, after its completion, sends an email to the admin user that requested it. So, to do this, I need to know who is ...
(0) odpowiedzi
2016-06-02 20:06 Email not being sent to all users with deliver_later »
I am iterating over an array of subscriber ids to send each subscriber an email, but for some reason not all subscribers are getting the email. Here...
(0) odpowiedzi
2016-06-02 17:06 Bulk insert using ActiveJob and Sidekiq »
I would like to create a bulk insert of jobs, just like that: Sidekiq::Client.push_bulk('class' => MyWorker, 'args' => [...]) but using ActiveJo...
(1) odpowiedzi
2016-06-01 00:06 How to migrate .delay tasks from Sidekiq to Active Job »
Given an existing rails app with background processes managed by Sidekiq. How can I migrate calls such as: Model.delay.some_action() From Sideki...
(2) odpowiedzi
2016-05-23 21:05 Rails Active Job: perform_later not executing in background »
I have a lengthy task that needs to run in the background in my Rails 4.2.6 app. Unfortunately, the job is not being sent to the background using Acti...
(1) odpowiedzi
2016-05-21 12:05 Delaying Mail with ActiveJobs won Rails 4.2 »
Looking at ActiveJob to delay mailer tasks (using delayed_jobs, delayed_jobs_active_record) and I have 2 questions about: ActiveJob's ActionMailer's...
(1) odpowiedzi
2016-05-18 16:05 ActiveJob queue adapter ignored? »
user_controller.rb class UsersController def create MyJob.perform_later User.create(...) end end my_job.rb class MyJob < ActiveJob:...
(0) odpowiedzi
2016-05-17 18:05 rspec rails testing: how can I force ActiveJob job's to run inline for certain tests? »
I would like my background jobs to run inline for certain marked tests. I can do it by wrapping the test with perform_enqueued do but I'd like to jus...
(0) odpowiedzi
2016-05-12 12:05 Use of delay in ActiveJobs »
I'm trying to move my rails app's background processing library from DelayedJob to SideKiq. I went through the documentation for ActiveJobs and for Si...
(0) odpowiedzi
2016-05-12 09:05 ActionMailer not sending emails enqueued in Fake_sqs »
I'm working on a Rails 4 app that sends out emails, say for new registrations and such, and I'm trying to set up SQS to use deliver_later to add them ...
(1) odpowiedzi
2016-04-30 02:04 Is there a way to determine whether an ActiveJob is being performed on a Resque worker or within the application? »
I have an Job in my rails app that extends from ActiveJob::Base, and there are two ways that it is called: ResqueScheduler on a daily basis, where i...
(2) odpowiedzi
2016-04-29 15:04 ActiveJob with Resque plugins »
Is there a way to use Resque plugins, such as resque-loner, with ActiveJob and Resque as backend for it? ...
(0) odpowiedzi
2016-04-26 18:04 Sidekiq won't execute job »
This is my first time using sidekiq to perform scheduled actions within Rails 4. I created a perform method to find hashtaggable_ids that are empty an...
(1) odpowiedzi
2016-04-26 14:04 I get a "Pending Error" whenever I click on Pay using Payola-Payment Gem (A gem made for Stripe) in my Rails 4.2.1 application »
Using Payola-Payments Gem to handle Stripe Payments, it's necessary to set Background Worker for your transaction. After setting up Background Worker ...
(0) odpowiedzi
2016-04-15 01:04 Is there an equivalent of ApplicationController but for Active Job? »
I'm using ActiveJob in my Rails app and trying to add some generic functionality that should be shared by all of my jobs (exception handling to be exa...
(1) odpowiedzi
2016-04-11 19:04 How to debug Rails connection pool usage? »
I'm running into issues with Sidekiq workers. ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (wait...
(1) odpowiedzi
2016-04-10 22:04 use ActiveJob's AsyncAdapter in Rails 4.2 »
Rails 5 ships with the handy AsyncAdapter for ActiveJob. Is there a way to use this queue adapter already in Rails 4.2? Update: I created very quickl...
(0) odpowiedzi
2016-04-06 17:04 Resque job is processed but not doing anything »
I'm trying to run a job in the background using resque and after following the docs and a couple of tutorials I am stuck. Running the resque.log it sa...
(1) odpowiedzi
2016-03-30 19:03 Using Sucker Punch with Active Job, Is there a way to cancel a queued job? »
So I have MyJob.perform_in(60, @user), Which will perform my job in 60 seconds. I want to cancel this Job if this line of code is ran again replacin...
(0) odpowiedzi
2016-03-28 14:03 redirect_url is missing in email instructions sent to the user for password reset »
I am trying to build api urls for password reset via. devise_token_auth gem. As per the usage mentioned here, the POST request for /api/v1/auth/passwo...
(0) odpowiedzi
2016-03-17 10:03 Jobs aren't performed. Ruby on Rails »
I want to write test in order to check if jobs are performed. It looks as below: test/jobs/send_remember_email_job_test.rb test "remember method was...
(1) odpowiedzi
2016-03-17 09:03 Active job error »
I try to run some work in background with Rails 4.2.6 and I got this error: uninitialized constant Delayed::Job app/controllers/pipls_controller....
(0) odpowiedzi
2016-03-14 19:03 Record progress for long running ActiveJob »
Based on this question How to reference active delayed_job within the actual job I'm using Delayed::Job with an additional progress text column to rec...
(0) odpowiedzi
2016-03-11 17:03 Issue after changing sidekiq job type to ActiveJob subclass »
I had a class that initially just included Sidekiq::Worker, during some refactoring I made a bonehead move and changed it to a ActiveJob subclass and ...
(1) odpowiedzi