Displaying 12 results from an estimated 12 matches for "sidekiq".
Did you mean:
hideki
2013 Jun 30
1
Sidekiq on Heroku
Hi
I want to use Sidekiq to run some jobs in the background. The jobs will be
created by the whenever gem (or similar) which creates a Sidekiq worker at
a specific time. This worker will in turn create a few hundred Sidekiq jobs.
So, I''m using Heroku and wonder if I need to use a separate worker dyno for
these...
2013 Jun 03
1
sidekiq: push background results to front
Rails 3.2.11
Sidekiq latest
My app continues background jobs that generate texts as the output.
class ProcessText
include Sidekiq::Worker
def perform(name, count)
puts "executing..."
@feed = Feed.first
@feed.process # here it returns String results!
end
end
What I...
2017 Oct 13
2
sidekiq receives SIGHUP when started via ssh -t
Hi,
I have a couple of ideas how to fix it, but I'm trying to figure out
what's going on first. I mainly start this program (sidekiq) on Debian
systems, and it might be my first time running it under CentOS, so my
conjecture is that it has to do with differences between
distributions...
Now then, when I run it this way:
ssh user at example.com '. ~/.bash_profile && rvm 2.3.1 at gemset1 && cd
path/to/site &a...
2013 Jul 09
0
How to move create method into worker(sidekiq)?
how to move create method into worker(sidekiq)?
photos_controller.rb
def create
@project = Project.find(params[:project_id])
@photo = @project.photos.build(params[:photo])
@photo.user = current_user
if @photo.save
redirect_to image_upload_project_path(@project)
endend
--
You received this message because you are s...
2017 Oct 16
0
sidekiq receives SIGHUP when started via ssh -t
Hi,
I was able to narrow it down to this ruby script:
#!/usr/bin/env ruby
Process.daemon
while true
sleep 1
end
And I can reproduce it on one particular CentOS server, on the other
CentOS server it works as on Ubuntu. The CentOS server where I can
reproduce the issue is supposed to have vanilla CentOS, but probably
not exactly.
So, when I run it this way on CentOS 7:
ssh user at
2013 May 25
1
Silent Failure when starting Unicorn on Heroku
...from /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `load''
from /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `<main>''
Process exited with status 1
State changed from starting to crashed
Procfile:
web: bundle exec unicorn start -p $PORT -c ./config/unicorn.rb
sidekiq: bundle exec sidekiq -c 10
unicorn.rb:
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
before_fork do |server, worker|
Signal.trap ''TERM'' do
puts ''Unicorn master intercepting TERM and sending mys...
2012 Sep 18
3
Nginx + Phusion Passenger 3 problem with "504 Gateway time-out"
Hi,
I have a Rails 3.2 app. There is a specific request that takes a long
time to execute. The context is, the user uploads a pdf, and then we
have some processing through carrierwave + rmagick that generate a
jpeg from the first page of the document. Everything works in dev mode
using both webrick and thin. The problem happens on the prod
environment with Nginx + Passenger.
The request takes a
2013 Jan 20
20
ActiveRecord::Persistence.increment! requires a row lock to ensure isolated updates
The method is here:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L288.
The method takes the in-memory attribute value and increments it by the
specified amount. A safer approach (from an isolation standpoint) would be
to let the database determine the value. Instead of telling the database
what value to persist in the database, the SQL can written
2017 Sep 07
1
Redis db permission issue while running GitLab in Kubernetes with Gluster
...e setup on machines
(CentOS) external to Kubernetes cluster (running on RancherOS host). Issue
is that when GitLab tries starting up, the login page doesn't load. It's a
fresh setup and not something that stopped working now.
root at gitlab-2797053212-ph4j8:/var/log/gitlab/gitlab# tail -50 sidekiq.log
...
2017-09-07T11:53:03.099Z 547 TID-1fdf1k ERROR: Error fetching job: ERR
Error running script (call to
f_7b91ed9f4cba40689cea7172d1fd3e08b2efd8c9): @user_script:7:
@user_script: 7: -MISCONF Redis is configured to save RDB snapshots,
but is currently not able to persist on disk. Commands that...
2013 Jul 16
0
Which object have my association extension method?
...tion:
http://stackoverflow.com/questions/17461273/where-does-association-extension-sit-in/17664817?noredirect=1#17664817
I have an association extension method like the following:
class Bundle < ActiveRecord::Base
has_many :items do
def foo
end
end
I was trying to use delayed job/sidekiq delay() method like the following:
b.items.delay.foo
But I can''t. You see, when delay is called, association evaluated
immediately to an array of records. That array does not have the
association extension methods.
So I tried to see if b.items.proxy_association, has my extension meth...
2013 Jul 18
0
url_helpers in /lib
Hi, I''m trying to generate some static feeds using a script in /lib that I
will later call from a sidekiq worker and I need to access the URL helpers
from my library, how can I do it?
What I tried so far is including Rails.application.routes.url_helpers in my
class but it doesn''t seem to work. I''ve also tried to follow this blog
post http://hawkins.io/2012/03/generating_urls_whenev...
2017 Sep 08
1
Redis db permission issue while running GitLab in Kubernetes with Gluster
...al to Kubernetes cluster (running on RancherOS
>> host). Issue is that when GitLab tries starting up, the login page doesn't
>> load. It's a fresh setup and not something that stopped working now.
>>
>> root at gitlab-2797053212-ph4j8:/var/log/gitlab/gitlab# tail -50 sidekiq.log
>> ...
>> 2017-09-07T11:53:03.099Z 547 TID-1fdf1k ERROR: Error fetching job: ERR Error running script (call to f_7b91ed9f4cba40689cea7172d1fd3e08b2efd8c9): @user_script:7: @user_script: 7: -MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on di...