Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse If NameLoad body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad keyword BinOpMult Num Num keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Return Call NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Raise decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num If CompareLt AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A logging N/A optparse N/A os N/A sys logging.handlers RotatingFileHandler huey.consumer Consumer huey.utils load_class err N/A N/A s N/A N/A N/A N/A N/A N/A sys stderr write N/A [91m%s[0m
 s N/A get_loglevel N/A N/A verbose N/A None N/A N/A N/A verbose None N/A N/A N/A logging INFO N/A N/A verbose N/A N/A N/A logging DEBUG N/A N/A logging ERROR N/A setup_logger N/A N/A loglevel logfile worker_type N/A N/A N/A N/A worker_type process N/A N/A worker %(process)d N/A N/A worker %(threadName)s N/A log_format N/A N/A [%(asctime)s] %(levelname)s:%(name)s: worker :%(message)s N/A N/A N/A logging basicConfig level loglevel format log_format N/A logfile N/A N/A handler N/A RotatingFileHandler logfile maxBytes N/A 1024 1024 backupCount 3 N/A N/A N/A handler setFormatter N/A N/A logging Formatter log_format N/A N/A N/A N/A N/A logging getLogger addHandler handler N/A get_option_parser N/A N/A N/A N/A N/A parser N/A N/A optparse OptionParser Usage: %prog [options] path.to.huey_instance N/A log_opts N/A N/A parser add_option_group Logging The following options pertain to the logging system. N/A N/A N/A log_opts add_option -l --logfile dest logfile help write logs to FILE metavar FILE N/A N/A N/A log_opts add_option -v --verbose action store_true dest verbose help log debugging statements N/A N/A N/A log_opts add_option -q --quiet action store_false dest verbose help only log exceptions N/A worker_opts N/A N/A parser add_option_group Workers By default huey uses a single worker thread. To specify a different number of workers, or a different execution model (such as multiple processes or greenlets), use the options below. N/A N/A N/A worker_opts add_option -w --workers dest workers type int help number of worker threads/processes (default=1) default 1 N/A N/A N/A worker_opts add_option -k --worker-type dest worker_type help worker execution model (thread, greenlet, process). default thread choices N/A greenlet thread process gevent N/A N/A N/A worker_opts add_option -d --delay dest initial_delay type float help initial delay between polling intervals in seconds (default=0.1) default 0.1 N/A N/A N/A worker_opts add_option -m --max-delay dest max_delay type float help maximum time to wait between polling the queue (default=10) default 10 N/A N/A N/A worker_opts add_option -b --backoff dest backoff type float help amount to backoff delay when no results present (default=1.15) default 1.15 N/A scheduler_opts N/A N/A parser add_option_group Scheduler By default Huey will run the scheduler once every second to check for tasks scheduled in the future, or tasks set to run at specific intervals (periodic tasks). Use the options below to configure the scheduler or to disable periodic task scheduling. N/A N/A N/A scheduler_opts add_option -s --scheduler-interval dest scheduler_interval type int help Granularity of scheduler in seconds. default 1 N/A N/A N/A scheduler_opts add_option -n --no-periodic action store_false default True dest periodic help do NOT schedule periodic tasks N/A N/A N/A scheduler_opts add_option -u --utc dest utc action store_true help use UTC time for all tasks (default=True) default True N/A N/A N/A scheduler_opts add_option --localtime dest utc action store_false help use local time for all tasks N/A parser N/A load_huey N/A N/A path N/A N/A N/A N/A N/A N/A load_class path N/A N/A N/A N/A cur_dir N/A N/A os getcwd N/A N/A cur_dir N/A sys path N/A N/A N/A N/A N/A sys path insert 0 cur_dir N/A N/A load_huey path N/A N/A err N/A Error importing %s path N/A N/A consumer_main N/A N/A N/A N/A N/A parser N/A get_option_parser N/A N/A options args N/A N/A parser parse_args N/A N/A setup_logger N/A get_loglevel N/A options verbose N/A options logfile N/A options worker_type N/A N/A N/A len args 0 N/A N/A N/A err Error:   missing import path to `Huey` instance N/A N/A err Example: huey_consumer.py app.queue.huey_instance N/A N/A N/A sys exit 1 N/A N/A N/A options workers 1 N/A N/A N/A err You must have at least one worker. N/A N/A N/A sys exit 1 N/A huey_instance N/A load_huey N/A args N/A 0 N/A consumer N/A Consumer huey_instance N/A options workers N/A options periodic N/A options initial_delay N/A options backoff N/A options max_delay N/A options utc N/A options scheduler_interval N/A options worker_type N/A N/A N/A consumer run N/A N/A N/A __name__ __main__ N/A N/A N/A consumer_main