Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/r/freddo-HEAD/celeryd.py   freddo(Download)
 
import daemon
from celery.bin.celeryd import run_worker, OPTION_LIST, parse_options
 
# Convert optparse options into argparse options.
    def run_celery(self):
        # Use celeryd's optparser.
        options = parse_options(sys.argv[2:])
        run_worker(**vars(options))
 

src/i/n/input-lib-HEAD/packages/celery/celery/tests/test_bin/test_celeryd.py   input-lib(Download)
    def test_parse_options(self):
        opts = cd.parse_options(["--concurrency=512"])
        self.assertEqual(opts.concurrency, 512)
 
    @disable_stdouts