Created
December 13, 2013 17:17
-
-
Save VikParuchuri/7947759 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 queue.models import Submission | |
import queue | |
subs = Submission.objects.filter(queue_name="open-ended", retired=False) | |
queue_name="open-ended" | |
for sub in subs: | |
qitem=str(sub.id) | |
qcount = queue.producer.push_to_queue(queue_name, qitem) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment