This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The context will call this method for each msg sucessfully processed | |
# by the worker. | |
# | |
def on_msg(msg) | |
puts(fancy_print(msg, @noisy)) if @noisy | |
return if msg['action'] == 'noop' | |
@on_msg_mutex.synchronize do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jmettraux@sanma $ date; bx rake swf:executions_and_tasks | |
Thu Mar 1 13:32:50 JST 2012 | |
WFTYPE VER START WFID RUNID STC ODT OAT OT | |
my_workflow 0.1b 2012-03-01 04:31:24 UTC 20120301-1331-bipihosa-mopoyu ce51e5d5-d88a-4cfe-b19f-70fc9f1c97e0 5 0 1 0 | |
count: 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rexml/document' | |
require 'pp' | |
require 'rubygems' | |
require 'ruote' | |
engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new())) | |
class FetchData | |
include Ruote::LocalParticipant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define 'error_handler' do | |
_if "${v:x} == 'y'" do | |
error "something went wrong" | |
# else | |
participant 'admin' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works fine | |
foreach concurrence ..., task: y | |
end | |
# conflict | |
concurrence | |
foreach concurrence ..., task: x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works fine | |
foreach concurrence ... task: y | |
end | |
# conflict | |
concurrence | |
foreach concurrence ... task: x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jmettraux@sanma ~/r/right_site (master) 円 ak "require .thread" | |
config/environment.rb | |
4: require 'thread' | |
No such file or directory - public/rightscale_core_ui | |
Rakefile | |
5: require 'thread' | |
vendor/plugins/activerecord-activesalesforce-adapter/lib/active_record/connection_adapters/activesalesforce_adapter.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# master.rb | |
#$:.unshift('~/w/ruote/lib') | |
#$:.unshift('~/w/ruote-redis/lib') | |
require 'rubygems' | |
require 'rufus-json/automatic' | |
require 'ruote' | |
require 'redis' |