Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/i/a/iati-datastore-HEAD/iati_datastore/iatilib/queue.py   iati-datastore(Download)
import traceback
 
from flask.ext.script import Manager
from flask.ext.rq import get_worker as _get_worker, get_queue
 
def empty():
    "Clear all jobs from queue"
    rq = get_queue()
    rq.empty()