Data dodania Pytanie
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
2016-03-11 07:03 How to avoid race condition in a rails model that records payments and running balance? »
I have a simple model, Payments, which has two fields amount and running_balance. When a new payment record is created, we look for the running_balanc...
(1) odpowiedzi
2016-03-04 04:03 How to make an active job in ruby on rails to read json file then transfer data to database »
I'm newbie here. I have problem, I build a web use Ruby on Rails. I want to get data from json file and then insert into database. data in json file c...
(1) odpowiedzi
2016-02-24 15:02 Priority custom job delayed_job (ActiveJob) »
I have some custom delayed_jobs that I would like to prioritise. Unfortunately, I couldn't find any documentation. ActiveJob delegates the priority to...
(0) odpowiedzi
2016-02-23 22:02 ActiveJob with Resque: enqueuing jobs with uninteded arguments »
Trying to implement some kind of cancel job functionality. In order to destroy a job with Resque, one needs the specific arguments passed to it. It ap...
(0) odpowiedzi
2016-02-20 16:02 Run job to check if mail is sent or not »
I am sending mail through sidekiq. Now I have to run a job which will check if the mail is sent or not, because I have to call a method on successful...
(2) odpowiedzi
2016-02-20 02:02 Sidekiq Not Processing Jobs on Staging Server »
In my local env, jobs are enqueued and scheduled and then being 'processed'. Excellent However, in the staging environment, they go either scheduled ...
(0) odpowiedzi
2016-02-10 03:02 DRY in ActiveJob::Base »
I need to use sanitization in Jobs, so i wrote method def sanitized_sql_statement(query) ActiveRecord::Base.send( :sanitize_sql_array, ...
(1) odpowiedzi
2016-02-07 02:02 How to set different loggers for each ActiveJob »
I have a few ActiveJobs (http://guides.rubyonrails.org/active_job_basics.html#queues) For example: app/jobs/dogs_job.rb app/jobs/cats_job.rb app/job...
(0) odpowiedzi
2016-02-06 06:02 How to handle 'record does not exist' errors and prevent background jobs from attempting retries? »
A Rails app has a background job that calls a service object as below class ObjectUpdateJob < ActiveJob::Base queue_as :default def perform(o...
(2) odpowiedzi
2016-02-04 14:02 ActiveJob queueing backend for processing users accounts updates »
My rails app has User model, which has several account types (associated models), like InvestementAccount (many), ManagedAccount (many), BalanceAccoun...
(0) odpowiedzi
2016-02-02 16:02 How to access ActiveJob Logger at rescue_from block? »
If I log inside the perform() I get a pretty output: def perform(*args) begin MyActivity.run(*args) rescue StandardError => e ...
(1) odpowiedzi
2016-01-29 16:01 Mandrill SMTP giving EOFError: end of file reached errors »
We use Mandrill to send transactional email from our Rails application (on Heroku). # config/environments/production.rb config.action_mailer.deliver...
(1) odpowiedzi
2016-01-26 22:01 Active Job - How to cancel a scheduled Action Mailer job? »
I am using Delayed Job as my queuing backend for Active Job. I have not set up any custom jobs and plan on using Action Mailer to send out scheduled e...
(1) odpowiedzi
2016-01-24 11:01 Concurrent HTTP requests in a background job (sidekiq)? »
I want to check 50k RSS feeds for updates. Right now it takes a -looong- time, so I began looking into gems that do parallel HTTP requests like typho...
(2) odpowiedzi
2016-01-23 19:01 Delay between two jobs »
I'm trying to implement a newsletter but I have to use an API that allows no more than one message/second. I tried to do it in my Rails API with Acti...
(0) odpowiedzi
2016-01-15 17:01 Rendering HTML from a job onto a page in Rails 5 »
I am looking to create a job that renders a partial asynchronously once I gather selected resources from a backend database. I am doing this because t...
(0) odpowiedzi