rudy-zidan / jobi Goto Github PK
View Code? Open in Web Editor NEWA simple message brokers framework for Ruby
License: MIT License
A simple message brokers framework for Ruby
License: MIT License
Allow job to have a QOS as an option with default value equal to 5.
This will set the prefetch of the channel, will increase the ACK of the messages and the message consumption by the consumers.
http://rubybunny.info/articles/queues.html#qos__prefetching_messages
Should contain the following keys per queue:
calculators:
durable: true || false
prefetch: 10 || 5
ack: true || false
/usr/local/bundle/gems/bunny-2.17.0/lib/bunny/session.rb:343:in `rescue in start': Could not establish TCP connection to any of the configured hosts (Bunny::TCPConnectionFailedForAllHosts)
from /usr/local/bundle/gems/bunny-2.17.0/lib/bunny/session.rb:315:in `start'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi/clients/rabbitmq.rb:17:in `initialize'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:31:in `new'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:31:in `session'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi/job.rb:63:in `join_queue'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi/job.rb:34:in `consume_messages'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:60:in `block in start'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:59:in `each'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:59:in `start'
from /usr/local/bundle/gems/jobi-0.2.1/lib/jobi.rb:23:in `configure'
from /myapp/config/initializers/jobi.rb:4:in `<top (required)>'
/usr/local/bundle/gems/jobi-0.1.1/lib/jobi/job.rb:9:in `options': unknown keywords: durable, persist (ArgumentError)
here is my jobi
class BotRunnerJob < ApplicationJob
options queue_name: :bot,
ack: true,
consumers: 5,
durable: true,
persist: true
def initialize(bot:)
@bot = bot
end
def run
@bot.run
end
end
where ApplicationJob
extends Jobi::Job
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.