diff --git a/flush.sh b/flush.sh new file mode 100755 index 0000000..6ef0fa6 --- /dev/null +++ b/flush.sh @@ -0,0 +1,6 @@ +#!/bin/bash +sudo rabbitmqctl list_queues +sudo rabbitmqctl stop_app +sudo rabbitmqctl reset +sudo rabbitmqctl start_app +sudo rabbitmqctl list_queues diff --git a/oahu_config.py b/oahu_config.py index 7f964bb..489170c 100644 --- a/oahu_config.py +++ b/oahu_config.py @@ -19,10 +19,10 @@ class Config(oahu.config.Config): # Trigger names have to be consistent across all workers # (yagi and daemons). - by_request = trigger_definition.TriggerDefinition("request-id", - ["_context_request_id", ], - criteria.Inactive(60), - self.callback) +# by_request = trigger_definition.TriggerDefinition("request-id", +# ["_context_request_id", ], +# criteria.Inactive(3600), +# self.callback) # This trigger requires a Trait called "when_date" which is # the date-only portion of the "when" trait. We will create @@ -34,7 +34,7 @@ class Config(oahu.config.Config): 'compute.instance.exists'), self.callback) - triggers = [by_request, instance_usage] + triggers = [instance_usage, ] #[by_request, instance_usage] return driver.MongoDBDriver(triggers) diff --git a/screenrc b/screenrc index 443357a..9c424de 100644 --- a/screenrc +++ b/screenrc @@ -1,7 +1,7 @@ sessionname tach hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})' screen -t gen bash -stuff "cd git/notigen/bin; python event_pump.py ../templates 60\r" +stuff "cd git/notigen/bin; python event_pump.py ../templates 2 0\r" screen -t yagi1 bash stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r" screen -t yagi2 bash @@ -9,7 +9,7 @@ stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r" screen -t quincy bash stuff "cd git/quincy/quincy; gunicorn --log-file=- api:api\r" screen -t expired bash -stuff "pipeline expired \".|oahu_config:Config\" --polling_rate=2\r" +stuff "pipeline expired \".|oahu_config:Config\" --polling_rate=20\r" screen -t ready1 bash stuff "pipeline ready \".|oahu_config:Config\" --polling_rate=1\r" screen -t ready2 bash