<s> from django . core . management . base import BaseCommand <EOL> from optparse import make_option <EOL> from django_rq import get_queue <EOL> class Command ( BaseCommand ) : <EOL> """<STR_LIT>""" <EOL> help = __doc__ <EOL> args = '<STR_LIT>' <EOL> option_list = BaseCommand . option_list + ( <EOL> make_option ( '<STR_LIT>' , '<STR_LIT>' , dest = '<STR_LIT>' , default = '<STR_LIT:default>' , <EOL> help = '<STR_LIT>' ) , <EOL> make_option ( '<STR_LIT>' , '<STR_LIT>' , type = '<STR_LIT:int>' , dest = '<STR_LIT>' , <EOL> help = '<STR_LIT>' ) , <EOL> ) <EOL> def handle ( self , * args , ** options ) : <EOL> """<STR_LIT>""" <EOL> verbosity = int ( options . get ( '<STR_LIT>' , <NUM_LIT:1> ) ) <EOL> timeout = options . get ( '<STR_LIT>' ) <EOL> queue = get_queue ( options . get ( '<STR_LIT>' ) ) <EOL> job = queue . enqueue_call ( args [ <NUM_LIT:0> ] , args = args [ <NUM_LIT:1> : ] , timeout = timeout ) <EOL> if verbosity : <EOL> print ( '<STR_LIT>' % job . id ) </s>
