Skip to content

Instantly share code, notes, and snippets.

#name EightStartds
#depends Master
#depends NodeAccess
USE_PROCD=FALSE
COLLECTOR_HOST=condor-collector.freevariable.com
ALLOW_WRITE=*.freevariable.com
ALLOW_READ=*.freevariable.com
SEC_DEFAULT_AUTHENTICATION_METHODS=CLAIMTOBE
MASTER.PLUGINS = $(LIB)/plugins/MgmtMasterPlugin-plugin.so
STARTD.PLUGINS = $(LIB)/plugins/MgmtStartdPlugin-plugin.so
employees = Hash.new { |hash, key| hash[key] = Employee.find_first_by_empid(key) }
commit bb3c64ab97b1eed23434529fb97b2e3696373aae
Author: Will Benton <[email protected]>
Date: Tue Aug 17 21:31:05 2010 -0500
additional logging
commit 1a601e40f1e39cf0246f08c1a2844ef79c3f3061
Author: Will Benton <[email protected]>
Date: Tue Aug 17 16:17:05 2010 -0500
#!/usr/bin/env python
# qmf2markdown.py
# documents the QMF classes from the packages listed in argv;
# runs against a broker in localhost.
# Public domain.
# Author: William Benton ([email protected])
from qmf.console import Session
class mrg.grid.config:Snapshot(1928e845-2600-0000-0505-05052d2d2d2d):
- property name; type sstr
class mrg.grid.config:Parameter(d9026a77-fb79-2776-cf42-a27164fe264b):
- property name; type sstr
+ getDescription()
- description (lstr/O)
The description of this parameter.
+ getType()
- type (sstr/O)
An int corresponding to the type of this parameter.
class mrg.grid.config:Node(30f8f025-41ed-addd-0025-5adf838151ed):
- property name; type sstr
- property provisioned; type bool
- property last_checkin; type uint64
- property last_updated_version; type uint64
+ getLastCheckinTime()
- time (uint64/O)
+ getConfig(options)
- options (map/I)
- config (map/O)
#!/usr/bin/env ruby
# This is a simple logging service that operates over QMF. It is very similar
# to logservice.rb, except it makes QMF events for log events instead of
# database records. LogEventService has the same API as LogService; LogEvent
# is a SPQR event class. See the comments for details on how to use QMF events.
require 'spqr/spqr'
require 'spqr/app'
class CallbackSink
def method_missing(sym, *args)
puts "GOT CALLBACK #{sym}(#{args.map {|x| x.inspect}.join(", ")})"
end
end
# How to declare a new event
class RestartEvent
include SPQR::Raiseable
arg :affected_nodes, :list, "A list of nodes affected by this event"
arg :subsystem, :sstr, "The subsystem to restart on affected nodes"
end
# register event classes with SPQR::App just as you would