Comments (4)
I thought I fixed this this morning. Are you using the latest master?
On Sep 8, 2016, at 15:06, Tanner Donovan [email protected] wrote:
Issue with assignment of default context in personal Crystal app, however when adding an example spec to sidekiq.cr all passing.
Following the instructions from this Wiki entry.
https://github.com/mperham/sidekiq.cr/wiki/Getting-Started#create-some-jobs-using-the-client-api
$ crystal src/tasks/async_price.cr playground/price.csv
Error in ./src/tasks/async_price.cr:22: instantiating 'Sidekiq::Client::Context:Class#new()'Sidekiq::Client.default_context = Sidekiq::Client::Context.new
^~~instantiating 'Sidekiq::Client::Context#initialize()'
in ./libs/sidekiq/sidekiq/client.cr:16: instantiating 'Sidekiq::Logger:Class#build()'
@logger = Sidekiq::Logger.build ^~~~~
instantiating 'build(IO::FileDescriptor)'
in ./libs/sidekiq/sidekiq/logger.cr:48: undefined constant Logger::INFO
logger.level = Logger::INFO
$ crystal --version
Crystal 0.19.0 (2016-09-02)
Example of spec/client_spec.cr passing.describe "Sidekiq::Client" do
it "must allow assignment for a default context" do
Sidekiq::Client.default_context = Sidekiq::Client::Context.new
Sidekiq::Client.default_context.class.should eq(Sidekiq::Client::Context)
end
end
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from sidekiq.cr.
Hmm very strange in my project when I run crystal deps
it keeps installing version 0.5.0
.
$ crystal deps update
Updating https://github.com/mperham/sidekiq.cr.git
Updating https://github.com/stefanwille/crystal-redis.git
Updating https://github.com/ysbaddaden/pool.git
Updating https://github.com/sdogruyol/kemal.git
Updating https://github.com/luislavena/radix.git
Updating https://github.com/jeromegn/kilt.git
Updating https://github.com/mperham/baked_file_system.git
Installing sidekiq (0.5.0)
Using redis (1.6.7)
Using pool (0.2.3)
Using kemal (0.14.1)
Using radix (0.3.0)
Installing kilt (0.3.3)
Installing baked_file_system (master)
from sidekiq.cr.
OK I fixed it by specifying the master
branch.
dependencies:
sidekiq:
github: mperham/sidekiq.cr
branch: master
from sidekiq.cr.
Maybe I forgot to push my changes, I was having Wi-Fi problems this morning.
On Sep 8, 2016, at 16:24, Tanner Donovan [email protected] wrote:
Hmm very strange in my project when I run crystal deps it keeps installing version 0.5.0.
$ crystal deps update
Updating https://github.com/mperham/sidekiq.cr.git
Updating https://github.com/stefanwille/crystal-redis.git
Updating https://github.com/ysbaddaden/pool.git
Updating https://github.com/sdogruyol/kemal.git
Updating https://github.com/luislavena/radix.git
Updating https://github.com/jeromegn/kilt.git
Updating https://github.com/mperham/baked_file_system.git
Installing sidekiq (0.5.0)
Using redis (1.6.7)
Using pool (0.2.3)
Using kemal (0.14.1)
Using radix (0.3.0)
Installing kilt (0.3.3)
Installing baked_file_system (master)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from sidekiq.cr.
Related Issues (20)
- Port to Crystal 1.0.0 HOT 5
- Issues connecting to Sidekiq Pro HOT 4
- Can't run tests HOT 5
- Move to GitHub Actions
- Dependency on baked_file_system commit that no longer exists HOT 6
- Can't send job to queue HOT 2
- Error: method Redis::TransactionApi#zadd must return (Int64 | String) but it is returning Redis::Future HOT 4
- Split this shard in sidekiq.cr and sidekiq-dashboard.cr
- Job not being executed HOT 2
- Namespace support HOT 2
- Periodic jobs HOT 6
- Getting started with some web framework HOT 6
- Can't run example in manjaro linux HOT 1
- Easy to swap with Ruby version of sidekiq? HOT 1
- Update redis to new version HOT 1
- Web Dashboard HOT 3
- Test Mode
- Sidekiq breaks with kemal-session shard. HOT 1
- Sidekiq web example is not compiling HOT 2
- Redis early access 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 sidekiq.cr.