broolik-worker

Version, currently master branch1 version
  • master branchlatestNov 24, 2019

github.com/jetthoughts/broolik-worker.cr

Example how to migrate from Ruby Sidekiq to Crystal Lang Sidekiq.cr for Ruby on Rails application

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  broolik-worker:
    github: jetthoughts/broolik-worker.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.31.1
License
MIT
Author
Paul Keen
Target
  • broolik-checker.cr from src/broolik-worker.cr

Dependencies

Runtime Dependencies

  • pg*github: will/crystal-pg
  • granite*github: amberframework/granite
  • sidekiq*github: mperham/sidekiq.cr, branch: master
  • sqlite3*github: crystal-lang/crystal-sqlite3

README

broolik-worker

Crystal Lang implementation for the Link Checker

TODO

  • [x] Use DB Connection Pool on Sidekiq instead of create new one
  • [ ] Auto-set connection pool from number of workers to use
  • [ ] Add tests/development env example
  • [ ] Where to put code in the monolith Rails Repo (Ideas: app/crystal, engines/background.cr, app/workers.cr)
  • [ ] Deployment on Heroku with Ruby on Rails

Installation

crystal build src/sidekiq.cr -o bin/sidekiq.cr --release

Usage

bin/sidekiq.cr -q worker.cr -c 100 -e production

Development

crystal spec

Contributors