Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore ListLoad Str Str Call AttributeLoad Str attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If CompareNotEq NameLoad Num body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad NameLoad Return ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr CompareNotIn NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call Call AttributeLoad NameLoad attr keyword NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If BoolOpAnd CompareEq Call NameLoad NameLoad Num Call NameLoad SubscriptLoad NameLoad Index Num body Return Call Call NameLoad SubscriptLoad NameLoad Index Num Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpPow NameLoad NameLoad Return Call NameLoad BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return Expr Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Expr Yield handlers ExceptHandler type NameLoad name NameStore body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGtE NameLoad NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad
N/A N/A os N/A glob N/A errno N/A logging N/A functools N/A contextlib N/A subprocess celery.utils.log get_task_logger waterbutler.tasks.app app client waterbutler.providers.osfstorage settings waterbutler.providers.osfstorage.tasks exceptions N/A logger N/A get_task_logger __name__ N/A N/A N/A logger setLevel N/A logging INFO ensure_path N/A N/A path N/A N/A N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A exception N/A N/A N/A N/A exception errno N/A errno EEXIST N/A N/A N/A ensure_paths N/A N/A N/A N/A N/A paths N/A N/A settings FILE_PATH_PENDING N/A settings FILE_PATH_COMPLETE N/A path paths N/A N/A N/A ensure_path path N/A create_parity_files N/A N/A file_path redundancy N/A 5 N/A N/A 
    :raise: `ParchiveError` if creation of parity files fails
     N/A N/A N/A stat N/A N/A os stat file_path N/A N/A N/A stat st_size N/A N/A N/A N/A N/A N/A OSError N/A error N/A N/A N/A N/A exceptions ParchiveError N/A N/A Could not read file: {0} format N/A error strerror N/A N/A path name N/A N/A N/A os path split file_path N/A N/A open N/A os devnull wb DEVNULL N/A N/A args N/A par2 c N/A N/A -r{0} format redundancy N/A N/A N/A os path join path N/A N/A {0}.par2 format name file_path N/A ret_code N/A N/A subprocess call args stdout DEVNULL stderr DEVNULL N/A N/A ret_code 0 N/A N/A N/A N/A exceptions ParchiveError N/A N/A {0} failed with code {1} format N/A N/A join args ret_code N/A N/A N/A N/A N/A os path abspath fpath N/A fpath N/A N/A glob glob N/A N/A N/A os path join path N/A N/A {0}*.par2 format name N/A sanitize_request N/A N/A request N/A N/A N/A Return dictionary of request attributes, excluding args and kwargs. Used
    to ensure that potentially sensitive values aren't logged or sent to Sentry.
     N/A N/A key value N/A N/A key value N/A N/A N/A vars request items N/A key N/A args kwargs N/A _log_task N/A N/A func N/A N/A N/A Decorator to add standardized logging to Celery tasks. Decorated tasks
    must also be decorated with `bind=True` so that `self` is available.
     wrapped N/A N/A self N/A args kwargs N/A N/A N/A N/A logger info N/A sanitize_request N/A self request N/A N/A func self args kwargs N/A N/A N/A functools wraps func N/A wrapped N/A _create_task N/A N/A N/A args kwargs N/A N/A Decorator factory combining `_log_task` and `task(bind=True, *args,
    **kwargs)`. Return a decorator that turns the decorated function into a
    Celery task that logs its calls.
     wrapper N/A N/A func N/A N/A N/A wrapped N/A _log_task func N/A wrapped N/A N/A N/A app task bind True args kwargs wrapped N/A wrapped N/A N/A wrapper N/A task N/A N/A N/A args kwargs N/A N/A Decorator or decorator factory for logged tasks. If passed a function,
    decorate it; if passed anything else, return a decorator.
     N/A N/A N/A N/A len args 1 N/A callable N/A args N/A 0 N/A N/A N/A N/A _create_task N/A args N/A 0 N/A N/A _create_task args kwargs N/A get_countdown N/A N/A attempt init_delay max_delay backoff N/A N/A N/A multiplier N/A backoff attempt N/A N/A min N/A init_delay multiplier max_delay N/A capture_retry_message N/A N/A task N/A N/A N/A N/A client N/A N/A N/A N/A N/A client captureException extra N/A sanitize_request N/A task request N/A RetryTask N/A N/A task attempts init_delay max_delay backoff warn_idx error_types N/A N/A N/A N/A N/A N/A N/A N/A N/A error_types N/A exc_value N/A N/A try_count N/A N/A task request retries N/A N/A N/A warn_idx None N/A try_count warn_idx N/A N/A N/A capture_retry_message task N/A countdown N/A get_countdown try_count init_delay max_delay backoff N/A N/A task max_retries attempts N/A N/A N/A task retry exc exc_value countdown countdown N/A N/A contextlib contextmanager N/A RetryUpload N/A N/A functools partial RetryTask attempts N/A settings UPLOAD_RETRY_ATTEMPTS init_delay N/A settings UPLOAD_RETRY_INIT_DELAY max_delay N/A settings UPLOAD_RETRY_MAX_DELAY backoff N/A settings UPLOAD_RETRY_BACKOFF warn_idx N/A settings UPLOAD_RETRY_WARN_IDX error_types N/A Exception N/A RetryHook N/A N/A functools partial RetryTask attempts N/A settings HOOK_RETRY_ATTEMPTS init_delay N/A settings HOOK_RETRY_INIT_DELAY max_delay N/A settings HOOK_RETRY_MAX_DELAY backoff N/A settings HOOK_RETRY_BACKOFF warn_idx N/A settings UPLOAD_RETRY_WARN_IDX error_types N/A Exception N/A RetryParity N/A N/A functools partial RetryTask attempts N/A settings PARITY_RETRY_ATTEMPTS init_delay N/A settings PARITY_RETRY_INIT_DELAY max_delay N/A settings PARITY_RETRY_MAX_DELAY backoff N/A settings PARITY_RETRY_BACKOFF warn_idx N/A settings PARITY_RETRY_WARN_IDX error_types N/A Exception