12345678910111213141516171819202122 |
- # -*- coding: utf-8 -*-
- """Utility functions.
- Do not import from here directly anymore, as these are only
- here for backwards compatibility.
- """
- from .functional import memoize # noqa
- from .nodenames import worker_direct, nodename, nodesplit
- __all__ = ['worker_direct', 'gen_task_name', 'nodename', 'nodesplit',
- 'cached_property', 'uuid']
- # ------------------------------------------------------------------------ #
- # > XXX Compat
- from .imports import ( # noqa
- qualname as get_full_cls_name, symbol_by_name as get_cls_by_name,
- instantiate, import_from_cwd, gen_task_name,
- )
- from .functional import chunks, noop # noqa
- from kombu.utils import cached_property, uuid # noqa
- gen_unique_id = uuid
|