Skip to content

Instantly share code, notes, and snippets.

@edsu
Created February 16, 2011 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save edsu/830013 to your computer and use it in GitHub Desktop.
Save edsu/830013 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