Module Import alias alias alias If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num ImportFrom alias Expr Call NameLoad ImportFrom alias Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ImportFrom alias If NameLoad body Assign NameStore CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad For NameStore NameLoad body If BoolOpAnd UnaryOpNot NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Continue Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Dict TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Import alias Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr TryExcept body Delete NameDel handlers ExceptHandler body Pass
N/A N/A os sys argparse N/A N/A N/A WEB2PY_PATH N/A os environ N/A N/A N/A N/A os environ N/A WEB2PY_PATH N/A N/A os getcwd N/A N/A N/A N/A os chdir N/A N/A os environ N/A WEB2PY_PATH N/A N/A N/A N/A sys path append N/A N/A os environ N/A WEB2PY_PATH N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser description 
        Run Web2py scheduler tasks in Web2py application context, without the
        scheduler.  Useful for executing the task in a debugger.
        Tasks must be scheduled in order to provide their arguments -- they
        won't be run if not scheduled.  If task is specified, the first
        scheduled instance will be run.  If task is not specified, the first
        scheduled instance for each task will be run sequentially.
         usage 
        export WEB2PY_PATH = /path/to/web2py; python run_scheduler_tasks.py --app=<app> [--task=<task>] [--allargs=<True|False>]
         N/A N/A N/A parser add_argument --app dest app default eden help Application directory name N/A N/A N/A parser add_argument --task dest task default None help Task name N/A N/A N/A parser add_argument --allargs dest allargs default True help If True (the default), run task with all scheduled arg sets. If False, run with first set encountered only. N/A args N/A vars N/A N/A parser parse_args N/A app N/A args N/A app N/A task N/A args N/A task N/A allargs N/A args N/A allargs N/A adir N/A N/A N/A os path join applications app N/A N/A N/A N/A N/A os path exists adir N/A N/A N/A sys stderr N/A Application not found: %s adir N/A N/A N/A sys exit 1 gluon.custom_import custom_import_install N/A N/A custom_import_install gluon.shell env N/A _env N/A env app c None import_models True N/A N/A N/A N/A globals update _env N/A N/A N/A db commit gluon current N/A task N/A N/A query N/A N/A N/A db scheduler_task task_name task N/A N/A query N/A N/A N/A db scheduler_task id 0 N/A scheduled_tasks N/A N/A N/A db query select orderby N/A N/A db scheduler_task task_name N/A posted_tasks N/A N/A current _scheduler tasks N/A task_name None N/A task_row scheduled_tasks N/A N/A N/A N/A allargs N/A N/A task_row task_name task_name N/A N/A N/A task_name N/A task_row task_name N/A task_function N/A N/A posted_tasks get task_name None N/A N/A task_function N/A N/A N/A sys stderr N/A Skipping task %s as no function in task list task_name N/A N/A N/A task_row args N/A N/A task_args N/A eval N/A task_row args N/A N/A task_args N/A N/A N/A task_row vars N/A N/A task_vars N/A eval N/A task_row vars N/A N/A task_vars N/A N/A N/A N/A N/A task_function task_args task_vars N/A N/A N/A Exception N/A N/A N/A sys stderr N/A Task %s threw:
 task_name N/A traceback N/A N/A exc_type exc_value exc_trace N/A N/A sys exc_info N/A N/A N/A traceback print_exception exc_type exc_value exc_trace file N/A sys stderr N/A N/A N/A exc_trace N/A N/A N/A N/A