Skip to content

Instantly share code, notes, and snippets.

@VikParuchuri
Created December 13, 2013 17:17
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 VikParuchuri/7947759 to your computer and use it in GitHub Desktop.
Save VikParuchuri/7947759 to your computer and use it in GitHub Desktop.
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