Example #1
0
def _compat_beat():
    maybe_patch_concurrency()
    maybe_patch_kill()
    _warn_deprecated('celery beat')
    from celery.bin.beat import main
    main()
Example #2
0
def _compat_worker():
    maybe_patch_concurrency()
    maybe_patch_kill()
    _warn_deprecated('celery worker')
    from celery.bin.worker import main
    main()
Example #3
0
def _compat_multi():
    maybe_patch_concurrency()
    maybe_patch_kill()
    _warn_deprecated('celery multi')
    from celery.bin.multi import main
    main()
Example #4
0
def maybe_patch_concurrency():
    from celery.platforms import maybe_patch_concurrency
    maybe_patch_concurrency(sys.argv, ['-P'], ['--pool'])
Example #5
0
def main():
    maybe_patch_concurrency()
    maybe_patch_kill()
    from celery.bin.celery import main
    main()
Example #6
0
 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
Example #7
0
 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
Example #8
0
def _compat_multi():
    maybe_patch_concurrency()
    _warn_deprecated('celery multi')
    from celery.bin.multi import main
    main()
Example #9
0
def _compat_beat():
    maybe_patch_concurrency()
    _warn_deprecated('celery beat')
    from celery.bin.beat import main
    main()
Example #10
0
def main():
    maybe_patch_concurrency()
    from celery.bin.celery import main
    main()
Example #11
0
def _compat_worker():
    maybe_patch_concurrency()
    _warn_deprecated('celery worker')
    from celery.bin.worker import main
    main()
Example #12
0
def maybe_patch_concurrency():
    from celery.platforms import maybe_patch_concurrency
    maybe_patch_concurrency(sys.argv, ['-P'], ['--pool'])
Example #13
0
def _compat_worker():
    maybe_patch_concurrency()
    from celery.bin.celeryd import main
    main()
Example #14
0
def _compat_beat():
    maybe_patch_concurrency()
    from celery.bin.celerybeat import main
    main()
Example #15
0
def _compat_multi():
    maybe_patch_concurrency()
    from celery.bin.celeryd_multi import main
    main()
Example #16
0
def maybe_patch_concurrency():
    from celery.platforms import maybe_patch_concurrency

    maybe_patch_concurrency(sys.argv, ["-P"], ["--pool"])