Skip to content

Instantly share code, notes, and snippets.

@acdha
Forked from edsu/srbee.py
Created February 16, 2011 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdha/830040 to your computer and use it in GitHub Desktop.
Save acdha/830040 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)
task = ServiceRequest.accept_next_from_queue(queue="sampler",
serviceType="bag.QualityReviewBag.review",
http=http)
print task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment