Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad BoolOpOr NameLoad TupleLoad BoolOpOr NameLoad Dict keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise ExceptHandler body Expr Call NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Raise If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr body Return If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Return BoolOpOr CompareIs NameLoad NameLoad CompareGt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareLtE AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Return ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr orelse Return NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Return NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num While CompareIs AttributeLoad NameLoad attr NameLoad body If BoolOpAnd NameLoad CompareGtE BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Raise NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad If CompareIs Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignMult NameStore NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad Str TupleLoad NameLoad Dict decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases Call NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore BoolOpOr AttributeLoad NameLoad attr TupleLoad TupleLoad Dict If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Dict Str Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BoolOpOr NameLoad BinOpMod Str AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str Str Str Str body Expr Str Assign NameStore TupleLoad TupleLoad Str NameLoad Call NameLoad Num Num TupleLoad Str NameLoad Call NameLoad Num Num TupleLoad Str NameLoad Call NameLoad Num TupleLoad Str NameLoad Call NameLoad Num TupleLoad Str NameLoad Call NameLoad Num Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad ListLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Continue If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd NameLoad Num Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod BinOpAdd NameLoad Num Num For TupleStore NameStore NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A datetime N/A json N/A pickle N/A re N/A time N/A traceback N/A uuid functools wraps huey.exceptions DataStoreGetException huey.exceptions DataStorePutException huey.exceptions DataStoreTimeout huey.exceptions MetadataException huey.exceptions QueueException huey.exceptions QueueReadException huey.exceptions QueueRemoveException huey.exceptions QueueWriteException huey.exceptions ScheduleAddException huey.exceptions ScheduleReadException huey.registry registry huey.utils EmptyData huey.utils local_to_utc huey.utils wrap_exception Huey N/A object N/A N/A 
    Huey executes tasks by exposing function decorators that cause the function
    call to be enqueued for execution by the consumer.

    Typically your application will only need one Huey instance, but you can
    have as many as you like -- the only caveat is that one consumer process
    must be executed for each Huey instance.

    :param name: a name for the task queue.
    :param bool result_store: whether to store task results.
    :param bool events: whether to enable consumer-sent events.
    :param store_none: Flag to indicate whether tasks that return ``None``
        should store their results in the result store.
    :param always_eager: Useful for testing, this will execute all tasks
        immediately, without enqueueing them.
    :param store_errors: Flag to indicate whether error tracebacks and
        metadata should be stored.

    Example usage::

        from huey import RedisHuey

        # Create a huey instance and disable consumer-sent events.
        huey = RedisHuey('my-app', events=False)

        @huey.task()
        def slow_function(some_arg):
            # ... do something ...
            return some_arg

        @huey.periodic_task(crontab(minute='0', hour='3'))
        def backup():
            # do a backup every day at 3am
            return
     __init__ N/A N/A self name result_store events store_none always_eager store_errors blocking N/A huey True True False False True False storage_kwargs N/A N/A N/A self name name N/A N/A self result_store result_store N/A N/A self events events N/A N/A self store_none store_none N/A N/A self always_eager always_eager N/A N/A self store_errors store_errors N/A N/A self blocking blocking N/A N/A self storage N/A N/A self get_storage storage_kwargs N/A get_storage N/A N/A self N/A kwargs N/A N/A N/A NotImplementedError Storage API not implemented in the base Huey class. Use `RedisHuey` instead. N/A task N/A N/A self retries retry_delay retries_as_argument include_task name N/A 0 0 False False None N/A decorator N/A N/A func N/A N/A N/A 
            Decorator to execute a function out-of-band via the consumer.
             N/A klass N/A create_task QueueTask func retries_as_argument name include_task schedule N/A N/A args kwargs eta delay convert_utc task_id N/A None None None None True None N/A N/A N/A delay eta N/A N/A N/A ValueError Both a delay and an eta cannot be specified at the same time N/A delay N/A N/A eta N/A N/A N/A N/A datetime datetime now N/A N/A datetime timedelta seconds delay N/A N/A convert_utc eta N/A N/A eta N/A local_to_utc eta N/A cmd N/A klass N/A N/A args N/A N/A kwargs N/A execute_time eta retries retries retry_delay retry_delay task_id task_id N/A N/A N/A self enqueue cmd N/A N/A N/A func schedule schedule N/A N/A func task_class klass inner_run N/A N/A N/A args kwargs N/A N/A cmd N/A klass N/A args kwargs retries retries retry_delay retry_delay N/A N/A N/A self enqueue cmd N/A N/A wraps func N/A N/A inner_run call_local func N/A inner_run N/A N/A decorator N/A periodic_task N/A N/A self validate_datetime name N/A None N/A N/A 
        Decorator to execute a function on a specific schedule.
         decorator N/A N/A func N/A N/A method_validate N/A N/A self dt N/A N/A N/A N/A validate_datetime dt N/A N/A klass N/A create_task PeriodicQueueTask func task_name name validate_datetime method_validate N/A N/A func task_class klass _revoke N/A N/A revoke_until revoke_once N/A None False N/A N/A N/A N/A self revoke N/A klass revoke_until revoke_once N/A N/A N/A func revoke _revoke _is_revoked N/A N/A dt peek N/A None True N/A N/A N/A N/A self is_revoked N/A klass dt peek N/A N/A N/A func is_revoked _is_revoked _restore N/A N/A N/A N/A N/A N/A N/A self restore N/A klass N/A N/A N/A func restore _restore N/A func N/A N/A decorator N/A _wrapped_operation N/A N/A exc_class N/A N/A decorator N/A N/A fn N/A N/A inner N/A N/A N/A args kwargs N/A N/A N/A N/A N/A fn args kwargs N/A N/A N/A N/A KeyboardInterrupt RuntimeError N/A N/A N/A N/A N/A N/A wrap_exception exc_class N/A N/A inner N/A N/A decorator N/A _enqueue N/A N/A self msg N/A N/A N/A N/A N/A N/A self storage enqueue msg N/A N/A _wrapped_operation QueueWriteException _dequeue N/A N/A self N/A N/A N/A N/A N/A N/A self storage dequeue N/A N/A _wrapped_operation QueueReadException _unqueue N/A N/A self msg N/A N/A N/A N/A N/A N/A self queue unqueue msg N/A N/A _wrapped_operation QueueRemoveException _get_data N/A N/A self key peek N/A False N/A N/A peek N/A N/A N/A N/A N/A self storage peek_data key N/A N/A N/A N/A N/A self storage pop_data key N/A N/A _wrapped_operation DataStoreGetException _put_data N/A N/A self key value N/A N/A N/A N/A N/A N/A self storage put_data key value N/A N/A _wrapped_operation DataStorePutException _put_error N/A N/A self metadata N/A N/A N/A N/A N/A N/A self storage put_error metadata N/A N/A _wrapped_operation DataStorePutException _get_errors N/A N/A self limit offset N/A None 0 N/A N/A N/A N/A N/A self storage get_errors limit limit offset offset N/A N/A _wrapped_operation DataStoreGetException _add_to_schedule N/A N/A self data ts N/A N/A N/A N/A N/A N/A self storage add_to_schedule data ts N/A N/A _wrapped_operation ScheduleAddException _read_schedule N/A N/A self ts N/A N/A N/A N/A N/A N/A self storage read_schedule ts N/A N/A _wrapped_operation ScheduleReadException emit N/A N/A self message N/A N/A N/A N/A N/A N/A N/A N/A self storage emit message N/A N/A N/A N/A N/A enqueue N/A N/A self task N/A N/A N/A N/A self always_eager N/A N/A N/A N/A task execute N/A N/A N/A self _enqueue N/A N/A registry get_message_for_task task N/A N/A self result_store N/A N/A N/A AsyncData self task N/A dequeue N/A N/A self N/A N/A N/A message N/A N/A self _dequeue N/A message N/A N/A N/A N/A registry get_task_for_message message N/A _format_time N/A N/A self dt N/A N/A N/A N/A dt None N/A N/A None N/A N/A N/A time mktime N/A N/A dt timetuple N/A _get_task_metadata N/A N/A self task error include_data N/A False False N/A N/A metadata N/A id task retries retry_delay execute_time error N/A task task_id N/A N/A type task __name__ N/A task retries N/A task retry_delay N/A N/A self _format_time N/A task execute_time error N/A error N/A N/A N/A metadata N/A traceback N/A N/A traceback format_exc N/A include_data N/A N/A N/A targs tkwargs N/A N/A task get_data N/A N/A N/A N/A tkwargs get task N/A isinstance N/A tkwargs N/A task QueueTask N/A N/A N/A tkwargs N/A task N/A N/A metadata N/A data N/A targs tkwargs N/A metadata N/A emit_status N/A N/A self status N/A data N/A N/A N/A self events N/A N/A metadata N/A status status N/A N/A N/A metadata update data N/A N/A N/A self emit N/A N/A json dumps metadata N/A emit_task N/A N/A self status task error N/A False data N/A N/A N/A self events N/A N/A metadata N/A N/A self _get_task_metadata task error N/A N/A N/A metadata update data N/A N/A N/A self emit_status status metadata N/A write_metadata N/A N/A self key value N/A N/A N/A N/A N/A N/A self storage write_metadata key value N/A N/A _wrapped_operation MetadataException incr_metadata N/A N/A self key value N/A 1 N/A N/A N/A N/A N/A self storage incr_metadata key value N/A N/A _wrapped_operation MetadataException read_metadata N/A N/A self key N/A N/A N/A N/A N/A N/A self storage read_metadata key N/A execute N/A N/A self task N/A N/A N/A N/A N/A isinstance task QueueTask N/A N/A N/A TypeError N/A Unknown object: %s task N/A N/A N/A result N/A N/A task execute N/A N/A N/A Exception N/A exc N/A N/A N/A N/A self result_store N/A self store_errors N/A N/A metadata N/A N/A self _get_task_metadata task exc True N/A N/A N/A self _put_error N/A N/A pickle dumps metadata N/A N/A N/A N/A result None N/A N/A self store_none N/A N/A N/A N/A N/A self result_store N/A N/A isinstance task PeriodicQueueTask N/A N/A N/A N/A self _put_data N/A task task_id N/A N/A pickle dumps result N/A result N/A revoke N/A N/A self task revoke_until revoke_once N/A None False N/A N/A serialized N/A N/A pickle dumps N/A revoke_until revoke_once N/A N/A N/A self _put_data N/A task revoke_id serialized N/A restore N/A N/A self task N/A N/A N/A N/A N/A self _get_data N/A task revoke_id N/A is_revoked N/A N/A self task dt peek N/A None True N/A N/A res N/A N/A self _get_data N/A task revoke_id peek True N/A N/A res EmptyData N/A N/A False N/A N/A revoke_until revoke_once N/A N/A pickle loads res N/A revoke_once N/A N/A N/A peek N/A N/A N/A N/A self restore task N/A True N/A N/A N/A revoke_until None N/A revoke_until dt N/A add_schedule N/A N/A self task N/A N/A N/A msg N/A N/A registry get_message_for_task task N/A ex_time N/A N/A task execute_time N/A N/A N/A datetime datetime fromtimestamp 0 N/A N/A N/A self _add_to_schedule msg ex_time N/A read_schedule N/A N/A self ts N/A N/A N/A N/A N/A N/A registry get_task_for_message m N/A m N/A N/A self _read_schedule ts N/A read_periodic N/A N/A self ts N/A N/A N/A periodic N/A N/A registry get_periodic_tasks N/A N/A task N/A task periodic N/A N/A task validate_datetime ts N/A ready_to_run N/A N/A self cmd dt N/A None N/A N/A dt N/A dt N/A N/A N/A datetime datetime utcnow N/A N/A N/A N/A cmd execute_time None N/A N/A cmd execute_time dt N/A pending N/A N/A self limit N/A None N/A N/A N/A N/A N/A registry get_task_for_message m N/A m N/A N/A N/A self storage enqueued_items limit N/A pending_count N/A N/A self N/A N/A N/A N/A N/A N/A self storage queue_size N/A scheduled N/A N/A self limit N/A None N/A N/A N/A N/A N/A registry get_task_for_message m N/A m N/A N/A N/A self storage scheduled_items limit N/A scheduled_count N/A N/A self N/A N/A N/A N/A N/A N/A self storage schedule_size N/A all_results N/A N/A self N/A N/A N/A N/A N/A N/A self storage result_items N/A result_count N/A N/A self N/A N/A N/A N/A N/A N/A self storage result_store_size N/A errors N/A N/A self limit offset N/A None 0 N/A N/A N/A N/A N/A pickle loads error N/A error N/A N/A N/A self storage get_errors limit offset N/A metadata N/A N/A self N/A N/A N/A N/A N/A N/A self storage metadata_values N/A __len__ N/A N/A self N/A N/A N/A N/A N/A self pending_count N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self storage flush_all N/A get_tasks N/A N/A self N/A N/A N/A N/A sorted N/A N/A N/A registry _registry keys N/A get_periodic_tasks N/A N/A self N/A N/A N/A N/A task_name N/A N/A task_name task N/A N/A N/A registry _registry items N/A hasattr task validate_datetime N/A get_regular_tasks N/A N/A self N/A N/A N/A periodic N/A set N/A N/A self get_periodic_tasks N/A N/A task N/A task N/A N/A self get_tasks N/A task periodic N/A N/A AsyncData N/A object N/A __init__ N/A N/A self huey task N/A N/A N/A N/A self huey huey N/A N/A self task task N/A N/A self _result EmptyData N/A _get N/A N/A self N/A N/A N/A task_id N/A N/A self task task_id N/A N/A N/A self _result EmptyData N/A N/A res N/A N/A N/A self huey _get_data task_id N/A N/A res EmptyData N/A N/A N/A self _result N/A N/A pickle loads res N/A N/A self _result N/A N/A res N/A N/A N/A self _result N/A get N/A N/A self blocking timeout backoff max_delay revoke_on_timeout N/A False None 1.15 1.0 False N/A N/A N/A blocking N/A N/A res N/A N/A self _get N/A N/A res EmptyData N/A N/A res N/A N/A start N/A N/A time time N/A delay 0.1 N/A N/A N/A self _result EmptyData N/A N/A N/A timeout N/A N/A N/A N/A time time start timeout N/A N/A revoke_on_timeout N/A N/A N/A N/A self revoke N/A DataStoreTimeout N/A N/A delay max_delay N/A N/A delay max_delay N/A N/A N/A N/A self _get EmptyData N/A N/A N/A N/A time sleep delay N/A delay backoff N/A N/A self _result N/A revoke N/A N/A self N/A N/A N/A N/A N/A N/A self huey revoke N/A self task N/A restore N/A N/A self N/A N/A N/A N/A N/A N/A self huey restore N/A self task N/A N/A with_metaclass N/A N/A meta base N/A object N/A N/A N/A meta NewBase N/A base N/A N/A QueueTaskMetaClass N/A type N/A __init__ N/A N/A cls name bases attrs N/A N/A N/A 
        Metaclass to ensure that all task classes are registered
         N/A N/A N/A registry register cls N/A N/A QueueTask N/A N/A with_metaclass QueueTaskMetaClass N/A N/A 
    A class that encapsulates the logic necessary to 'do something' given some
    arbitrary data.  When enqueued with the :class:`Huey`, it will be
    stored in a queue for out-of-band execution via the consumer.  See also
    the :meth:`task` decorator, which can be used to automatically
    execute any function out-of-band.

    Example::

    class SendEmailTask(QueueTask):
        def execute(self):
            data = self.get_data()
            send_email(data['recipient'], data['subject'], data['body'])

    huey.enqueue(
        SendEmailTask({
            'recipient': 'somebody@spam.com',
            'subject': 'look at this awesome website',
            'body': 'http://youtube.com'
        })
    )
     __init__ N/A N/A self data task_id execute_time retries retry_delay N/A None None None 0 0 N/A N/A N/A N/A self set_data data N/A N/A self task_id N/A task_id N/A N/A self create_id N/A N/A self revoke_id N/A r:%s N/A self task_id N/A N/A self execute_time execute_time N/A N/A self retries retries N/A N/A self retry_delay retry_delay N/A N/A self name N/A N/A type self __name__ N/A __repr__ N/A N/A self N/A N/A N/A rep N/A %s: %s N/A N/A self name N/A self task_id N/A N/A self execute_time N/A N/A rep N/A  @%s N/A self execute_time N/A N/A self retries N/A N/A rep N/A  %s retries N/A self retries N/A rep N/A create_id N/A N/A self N/A N/A N/A N/A str N/A N/A uuid uuid4 N/A get_data N/A N/A self N/A N/A N/A N/A self data N/A set_data N/A N/A self data N/A N/A N/A N/A self data data N/A execute N/A N/A self N/A N/A N/A Execute any arbitary code here N/A NotImplementedError N/A __eq__ N/A N/A self rhs N/A N/A N/A N/A N/A N/A self task_id N/A rhs task_id N/A N/A self execute_time N/A rhs execute_time N/A N/A type self N/A type rhs N/A N/A PeriodicQueueTask N/A QueueTask N/A create_id N/A N/A self N/A N/A N/A N/A N/A registry task_to_string N/A type self N/A validate_datetime N/A N/A self dt N/A N/A N/A Validate that the task should execute at the given datetime N/A False N/A N/A create_task N/A N/A task_class func retries_as_argument task_name include_task N/A False None False kwargs N/A execute N/A N/A self N/A N/A N/A N/A args kwargs N/A N/A self data N/A N/A N/A N/A retries_as_argument N/A N/A N/A kwargs N/A retries N/A self retries N/A include_task N/A N/A N/A kwargs N/A task self N/A N/A func args kwargs N/A N/A attrs N/A execute __module__ __doc__ execute N/A func __module__ N/A func __doc__ N/A N/A N/A attrs update kwargs N/A klass N/A type N/A task_name N/A queuecmd_%s N/A func __name__ N/A task_class attrs N/A klass N/A N/A dash_re N/A N/A re compile (\d+)-(\d+) N/A every_re N/A N/A re compile \*\/(\d+) crontab N/A N/A month day day_of_week hour minute N/A * * * * * N/A N/A 
    Convert a "crontab"-style set of parameters into a test function that will
    return True when the given datetime matches the parameters set forth in
    the crontab.

    Acceptable inputs:
    * = every distinct value
    */n = run every "n" times, i.e. hours='*/4' == 0, 4, 8, 12, 16, 20
    m-n = run every time m..n
    m,n = run on m and n
     N/A validation N/A N/A m month N/A range 1 13 N/A d day N/A range 1 32 N/A w day_of_week N/A range 7 N/A H hour N/A range 24 N/A M minute N/A range 60 N/A cron_settings N/A N/A N/A date_str value acceptable validation N/A N/A settings N/A set N/A N/A N/A isinstance value int N/A N/A value N/A str value N/A piece N/A N/A value split , N/A N/A N/A piece * N/A N/A N/A N/A settings update acceptable N/A N/A N/A N/A piece isdigit N/A N/A piece N/A int piece N/A N/A piece acceptable N/A N/A N/A ValueError N/A %d is not a valid input piece N/A N/A N/A settings add piece N/A N/A dash_match N/A N/A dash_re match piece N/A dash_match N/A N/A N/A lhs rhs N/A map int N/A N/A dash_match groups N/A N/A N/A lhs acceptable N/A rhs acceptable N/A N/A N/A ValueError N/A %s is not a valid input piece N/A N/A N/A settings update N/A range lhs N/A rhs 1 N/A N/A every_match N/A N/A every_re match piece N/A every_match N/A N/A interval N/A int N/A N/A N/A every_match groups N/A 0 N/A N/A N/A settings update N/A acceptable N/A interval N/A N/A N/A cron_settings append N/A sorted N/A list settings validate_date N/A N/A dt N/A N/A N/A N/A _ m d H M _ w _ _ N/A N/A dt timetuple N/A w N/A N/A w 1 7 N/A N/A date_piece selection N/A zip N/A m d w H M cron_settings N/A N/A N/A date_piece selection N/A N/A False N/A True N/A N/A validate_date N/A