def _compat_beat(): maybe_patch_concurrency() maybe_patch_kill() _warn_deprecated('celery beat') from celery.bin.beat import main main()
def _compat_worker(): maybe_patch_concurrency() maybe_patch_kill() _warn_deprecated('celery worker') from celery.bin.worker import main main()
def _compat_multi(): maybe_patch_concurrency() maybe_patch_kill() _warn_deprecated('celery multi') from celery.bin.multi import main main()
def maybe_patch_concurrency(): from celery.platforms import maybe_patch_concurrency maybe_patch_concurrency(sys.argv, ['-P'], ['--pool'])
def main(): maybe_patch_concurrency() maybe_patch_kill() from celery.bin.celery import main main()
def maybe_patch_concurrency(self, argv=None): argv = argv or sys.argv pool_option = self.with_pool_option(argv) if pool_option: maybe_patch_concurrency(argv, *pool_option) short_opts, long_opts = pool_option
def _compat_multi(): maybe_patch_concurrency() _warn_deprecated('celery multi') from celery.bin.multi import main main()
def _compat_beat(): maybe_patch_concurrency() _warn_deprecated('celery beat') from celery.bin.beat import main main()
def main(): maybe_patch_concurrency() from celery.bin.celery import main main()
def _compat_worker(): maybe_patch_concurrency() _warn_deprecated('celery worker') from celery.bin.worker import main main()
def _compat_worker(): maybe_patch_concurrency() from celery.bin.celeryd import main main()
def _compat_beat(): maybe_patch_concurrency() from celery.bin.celerybeat import main main()
def _compat_multi(): maybe_patch_concurrency() from celery.bin.celeryd_multi import main main()
def maybe_patch_concurrency(): from celery.platforms import maybe_patch_concurrency maybe_patch_concurrency(sys.argv, ["-P"], ["--pool"])