Comments (7)
- Since you mentioned the .env file I imagine you're talking about development mode?
- Is there anything that looks suspicious in the console log when you add the job or shortly after?
- Did you name the queue in your worker class? If so you need to add it to the queue list in
config/sidekiq.yml
.
You might want to paste your worker code too.
from orats.
- Yes, development mode.
- Nothing suspicious in the console.
- I haven't named the queue, the job goes to the default queue.
I tried to dispatch the job using Worker.new.perfom() and it works, but it blocks the application until the work is finished. That's why I think that maybe it's a worker configuration problem in puma.
My worker:
class VideoUploaderWorker
include Sidekiq::Worker
def perform(file)
upload = Vimeo::Advanced::Upload.new( "xxx", "xxx",:token => "xxx", :secret => "xxx")
@video_id = upload.upload(file, file.size, file.original_filename)
p @video_id
end
end
The worker receives an uploaded file object and use the vimeo api to upload the video directly to vimeo. Like I said, the code works if I use .new.perform instead of perform_async.
In my controller I use:
file = params[:file_data]
VideoUploaderWorker.perform_async(file)
Another thing, in my sidekiq dashboard, in the top always says 'idle'. Is that normal?
Thanks for you help.
from orats.
@pacuna, I'm in the middle of making some pretty big changes to orats and I think I may have stumbled on what's causing your issue.
Can you do me a favor and login to your server and run these commands:
redis-cli
If your redis server is password protected then add -a yourpassword
to the above command.
You should be at an interactive prompt with redis, then enter this and include the output here: KEYS *
from orats.
I'm getting a lot of this:
1) "encuestas-utfsm::cache:account:388"
2) "encuestas-utfsm::cache:account:66"
3) "encuestas-utfsm::cache:account:140"
4) "encuestas-utfsm::cache:account:243"
5) "encuestas-utfsm::cache:account:286"
6) "encuestas-utfsm::cache:account:63"
7) "encuestas-utfsm::cache:account:458"
8) "encuestas-utfsm::cache:account:264"
9) "encuestas-utfsm::cache:account:318"
10) "encuestas-utfsm::cache:account:255"
11) "schedule"
12) "fa3d964cd0c606ab60c4114ac9f144df"
13) "encuestas-utfsm::cache:account:390"
...
encuestas-utfsm is my orats project
from orats.
Did you change the name space to cache
in the config/initializers/sidekiq.rb
file? There should be a bunch of encuestas-utfsm::sidekiq_development
keys if you're running in development unless you changed it.
Changing it shouldn't matter tho, just curious.
Also have you tried making a non-orats app with the same sidekiq setup? If not I'd appreciate if you could just rails new
a simple app and add sidekiq to it along with your worker class, then see what happens.
from orats.
I haven't touch the sidekiq config. I've checked the full output of KEYS * and there is some entries with this:
326) "encuestas-utfsm::sidekiq_development:processes"
But just a few in between a lot of the cache entries.
I'm going to try that and see what happens.
Thanks!
from orats.
Going to close this as it's approaching 2015 without a definitive answer.
If it comes up again, please open a new ticket.
from orats.
Related Issues (20)
- deploy on gcp HOT 1
- Update rails to 5.0.2 HOT 2
- I can't get rspec to run HOT 2
- Updating gemfile, but the gem being installed is not changed HOT 4
- Logging configuration dumps everything to STDOUT for test environment HOT 4
- uninitialized constant Orats::Commands::New::FileUtils HOT 4
- Community question: do you think Capybara and Selenium should be included by default? HOT 3
- Would Lograge for STDOUT logging be most appropriate? HOT 4
- Unable to run base application HOT 7
- New Rails app - Puma config not found HOT 2
- Created a new project and psql connection fails HOT 1
- Add additional templates HOT 2
- Postgres and redis volumes should be localised to app HOT 1
- Webpacker support HOT 2
- Error with initializer file content_security_policy HOT 3
- Replace redis-rails with the Rails 5.2 Redis cache store HOT 1
- stuck with circle ci
- Base App Template produces an error HOT 2
- undefined method `timeout=' for Rack::Timeout:Class (NoMethodError) HOT 3
- Is this project still actively maintained? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orats.