You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear | |
# 3. Clear 'Processed' and 'Failed' jobs |
# First the end result of what we want: | |
class Foo | |
before_hook :whoa | |
before_hook :amazing | |
def test | |
puts "This is kinda cool!" | |
end |
from lxml import etree | |
get error: | |
ImportError: dlopen(/etc/locale/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so, 2): Symbol not found: __PyErr_FormatFromCause | |
solution: | |
pip uninstall lxml | |
python3 -mvenv /tmp/lxml | |
source /tmp/lxml/bin/activate | |
pip install lxml --no-binary :all: |
git clone https://github.com/owner/git.git
git clone [email protected]:owner/git.git
class DirtyPipeline::Action | |
module WrappedCall | |
def call | |
Events.publish! Event.generate(self) | |
super | |
end | |
end | |
class << self | |
attr_accessor :attempted_event_klass, :pipeline, :timeout |
class Saga | |
class << self | |
def with_redis; raise NotImplementedError; end | |
attr_accessor :cleanup_delay, :queue, :last_txid | |
def queue | |
Thread.current[:saga_queue] ||= [] | |
end | |
def last_txid |
If you're writing web applications with Ruby there comes a time when you might need something a lot simpler, or even faster, than Ruby on Rails or the Sinatra micro-framework. Enter Rack.
Rack describes itself as follows:
Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.
Before Rack came along Ruby web frameworks all implemented their own interfaces, which made it incredibly difficult to write web servers for them, or to share code between two different frameworks. Now almost all Ruby web frameworks implement Rack, including Rails and Sinatra, meaning that these applications can now behave in a similar fashion to one another.
At it's core Rack provides a great set of tools to allow you to build the most simple web application or interface you can. Rack applications can be written in a single line of code. But we're getting ahead of ourselves a bit.