Data dodania Pytanie
2017-12-06 00:12 Rails Background Jobs running twice »
I am using Rufus Scheduler to trigger the background jobs that need to run every 1 hour. scheduler = Rufus::Scheduler.singleton scheduler.every '1h'...
(3) odpowiedzi
2017-11-30 11:11 How to create time intervals between specific publications in rails? »
I try to build a recipes web app. It is a kind of “game”. Each user have the possibility to like a recipe. At first, this one appears empty. And t...
(2) odpowiedzi
2017-11-20 19:11 Using delayed job to process a method in background »
Rails 5.1 I have the following in my gemfile gem 'delayed_job' gem 'delayed_job_active_record' gem 'daemons' I installed/updated the gems Then I...
(1) odpowiedzi
2017-11-17 14:11 Rails serialization error for async geocoding with ahoy gem using mongoid »
I have a Rails 5 app, running both a postgresql DB for application data and MongoDB (mongoid) for analytics, generated by the fantastic ahoy gem. Eve...
(1) odpowiedzi
2017-11-08 19:11 Rails - how to use ActionDispatch::Integration::Session in ActiveJob »
In Rails' console app is defined as [1] pry(main)> app => #<ActionDispatch::Integration::Session:0x000000189028e8 Now, I have a simple job...
(1) odpowiedzi
2017-10-30 10:10 Rails 4.2.5 - ActiveJob using deliver_now even after specifying deliver_later »
I plan to send mails asynchronously in Rails 4.2.5 using ActionMailer#deliver_later. The AppMailer file uses 'mail' to send across the mail & I ...
(1) odpowiedzi
2017-10-26 23:10 Rails 5.1 ActiveJob on Puma development not performing specific enqueued job »
I'm running Rails 5.1.4 server (Puma v. 3.10.0 in single mode), but having an issue with a specific ActionJob that get's enqueued correctly but often ...
(1) odpowiedzi
2017-10-19 20:10 rubyzip extracts empty file in activejob »
I have a function in my activejob that extracts a specific file from a zip file. Following code extracted empty file. def extract_file(from, name) ...
(1) odpowiedzi
2017-10-19 16:10 deliver_later not working good in rails tasks »
I'm using tasks to complete background jobs. For example my remove_badges.rake file in lib/tasks : desc "Remove expired badges rake task" task :remov...
(0) odpowiedzi
2017-10-16 11:10 ActiveJob: Full strack trace despite rescue_from block »
I have a vanilla Rails app that consists just of a simple Post model with a title and a content attribute. I took the ActiveJob exception example fro...
(1) odpowiedzi
2017-09-28 16:09 How do I create a task in Rails to run one time in the future? »
I have a subscription-based site that allows unregistered users to download files if they give me their email. I want the following workflow. User g...
(2) odpowiedzi
2017-09-14 23:09 Integrate sidekiq uniqe jobs with activerejob »
I would like to enforce uniqueness of a sidekiq job using sidekiq unique jobs and activejob. On the documentation for sidekiq unique jobs it says Us...
(0) odpowiedzi
2017-08-26 21:08 What is the recommended maximum size for a Sidekiq job payload? »
What would be the recommended maximum size for a job payload? As a specific example, is a HTML document comprised of 500kb to 1Mb of text too large t...
(1) odpowiedzi
2017-08-25 20:08 How I can access the ActiveRecord Job after enqueuing a job »
I want to access my ActiveRecord job item after enqueueing a task job = MyCustomJob.perform_later Job is a MyCustomJob, but how I can access it wi...
(1) odpowiedzi
2017-08-23 11:08 How to test slack integration in Rails + Active Job »
I am using Rails Active Job to queue the slack notification. The scheduler is sidekiq. Everything is working fine but did not get any idea how to writ...
(0) odpowiedzi
2017-08-03 04:08 performing activejob in rails with action cable »
i just wanna using rails active job to make a queue job for my actioncable channel, but unfortunately it doesn't work :( this is my activejob rails s...
(0) odpowiedzi
2017-07-25 15:07 Advantages when using ActiveJob with Sidekiq compare with Sidekiq alone »
I'm reading some tutorials online that tell us using ActiveJob with Sidekiq. But I don't know why we should do that. I see that Sidekiq has all featur...
(1) odpowiedzi
2017-07-17 17:07 ActiveJob using delayed_job does not create delayed_jobs row in test »
Under Rails 4.2.3, I have setup ActiveJob to use delayed_job for its backend in all environments: environment.rb require File.expand_path('../boot',...
(0) odpowiedzi
2017-07-11 13:07 Rails ActiveJob Start From Controller »
I have some custom code that calls some backend systems and updates the database remotely. I have an ActiveJob that performs the task: ## Runs join c...
(2) odpowiedzi
2017-07-07 18:07 How to get job execution time from sidekiq? »
I'd like to know execution time every time I run my jobs. Seems like there is a gem sidekiq-statistic that does what I want and even has GUI, but unfo...
(3) odpowiedzi
2017-06-29 03:06 Scheduling forever running ActiveJob in config.after_initialize block Rails5 »
I have a demo.rb inside config/initializers. require 'rufus-scheduler' if defined?(Rails::Server) Rails.application.config.after_initialize do ...
(0) odpowiedzi
2017-06-22 17:06 Rails concurrency and activejobs »
Here are some questions I have on ActiveJobs: Say I've queued up n number of jobs on a job queue on sidekiq via ActiveJobs. On my EC2, I've set puma...
(1) odpowiedzi
2017-06-13 23:06 Using ActiveJob, perform_now seems to have different results than perform_later »
I'm using ActiveJob with SideKiq and with the code below I'm getting differing results when using perform_later than perform_now. When using perform_...
(0) odpowiedzi
2017-06-02 10:06 Testing jobs that reschedule themselves until an action is done »
Suppose I want to send my users periodic reminders (emails) of their TODOs. I want to keep sending those emails as long as they have not done it (and ...
(0) odpowiedzi
2017-05-30 15:05 In what format is ActiveJob :at key »
I am trying to understand in what format :at for ActiveJob is, so I can use assert_enqueued_with with :at parameter. Currently I've got this test wh...
(2) odpowiedzi
2017-05-23 21:05 active_recrod_delayed_job is being ignored »
i have used `active_record_delayed_job' before without problem. i added to Gemfile gem 'delayed_job_active_record' rails g delayed_job:active_rec...
(0) odpowiedzi
2017-05-22 10:05 Rails 5 - run background job for each user »
I have sidekiq configured to work with activejob, and a job that i would like to get to run once a day for each user, ideally the solution would allow...
(1) odpowiedzi
2017-05-18 10:05 How can I inspect a queue in ActiveJobs? »
Before enqueueing a job I would like to inspect the queue and see if a job already exists in the queue with the exact same arguments and in that case ...
(1) odpowiedzi
2017-05-17 05:05 How can I test `perform_now` job in Rails »
Recently on my current project, I noticed that on our integration test, there are many assert_enqueued_jobs 1 code are commented out, then I ask other...
(1) odpowiedzi
2017-05-15 18:05 nomethod error in ActiveJob »
I am getting the following error after running bundle exec rake jobs:work FAILED (0 prior attempts) with NoMethodError: undefined method `post_it...
(1) odpowiedzi
2017-05-15 14:05 How to use jobs in a rails application »
I currently maintain a small Rails application which does in particular include tasks which currently being executed manually using rake. I would how...
(1) odpowiedzi
2017-05-12 02:05 Create a background task that is always running »
I have a telegram bot made only in ruby , to execute the bot I have a binary file that run my ruby files. The most important part is listen for new me...
(1) odpowiedzi
2017-05-05 18:05 How to get delayed job to log the actual job name with ActiveJob? »
I'm using ActiveJob with DelayedJob and in both the WebUI and the delayed job logs it shows the job name as JobWrapper. This makes it hard to see what...
(0) odpowiedzi
2017-05-05 18:05 Rails ActiveJob SQS and record still not exists when executing the Job »
I am using SQS as a backend for my ActiveJobs. I have a very simple job that is sent to the queue in a after_create callback of my Model: after_cre...
(1) odpowiedzi
2017-05-04 16:05 Testing ActiveJobs Workers »
I am using rails5 and activejobs and I am trying to enqueue a job after a specific time(2 hours). Im currently testing the Background jobs and I am us...
(0) odpowiedzi