Data dodania Pytanie
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
2017-05-03 18:05 Calling methods in ActiveJob perform »
I'm getting a No Method Error when calling my job. I don't know why. This is the actual error: NoMethodError: undefined method `get_customers' for # ...
(1) odpowiedzi
2017-05-02 13:05 How to perform a background job now? »
I want to execute this on background Product.all.map { |product| product.save } When I save the product will call a callback to create a new record...
(1) odpowiedzi
2017-04-30 20:04 RSpec double as ActiveJob argument »
I need to test a class that submits an ActiveJob using perform_later with RSpec doubles as arguments My class does at some point def register_event!...
(0) odpowiedzi
2017-04-29 08:04 Delayed job not entering into the main jobs queue after the mentioned delayed time lapses while using Resque-scheduler and redis »
I need to perform a job wherein each time an order is created it is assigned to a vendor and if the vendor does not accept the order and updates the s...
(0) odpowiedzi
2017-04-19 23:04 Schedule an ActiveJob in Rails »
I'm doing a weather API which will get, process and save data from another API. In order to get the daily updates (request URL info, get the JSON/XML ...
(3) odpowiedzi
2017-04-15 20:04 ActiveJob: Generate sitemap in response to content generation »
In my Rails 4.2 app, I'm using sitemap_generator gem to generate sitemaps. And use Heroku scheduler to execute the rake task. I think it'd be better i...
(0) odpowiedzi
2017-04-14 17:04 Rails ActiveJob - how to stop job from being enqueued in before_enqueue »
I am running Rails 4.2.8 and I want to make my job only run under certain conditions. Currently I am doing that check in the code that is calling the...
(1) odpowiedzi
2017-04-04 13:04 Getting retry count insite ActiveJob backed by DelayedJob adapter »
I would like to send an email message on each job retry. Here is the sample job: class RetryTestJob < ActiveJob::Base queue_as :default def p...
(0) odpowiedzi
2017-03-27 00:03 How to see Bullet logs in Sidekiq worker? »
Is there any way of seeing Bullet logs while the work is processed in Sidekiq worker? When I perform N+1 query in Sidekiq worker (through ActiveJob qu...
(0) odpowiedzi
2017-03-26 13:03 Sidekiq worker for deleting items »
I created two tables (models), first for Items, second for Item pictures (Item and ItemPicture) - (belongs_to relation). It can happen that picture ma...
(0) odpowiedzi