Skip to content

Instantly share code, notes, and snippets.

@acdha
Forked from edsu/srbee.py
Created February 16, 2011 19:51
Show Gist options
  • Save acdha/830041 to your computer and use it in GitHub Desktop.
Save acdha/830041 to your computer and use it in GitHub Desktop.
from cts.srb import ServiceRequest, ServiceRequestList
from cts.client import get_http_client
http = get_http_client(endpoint=settings.CTS)
http.add_credentials(settings.CTS_USER, settings.CTS_PASSWORD)
try:
task = ServiceRequest.accept_next_from_queue(queue="sampler",
serviceType="bag.QualityReviewBag.review",
http=http)
except:
import pdb
pdb.post_mortem()
raise
print task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment