-
-
Save acdha/830041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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