Celery v4.2.1 Documentation
prefork. How- ever, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions routes.MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\.tasks\..*'): 'media' threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 746 页 | 2.73 MB | 1 年前3Celery v4.2.1 Documentation
prefork. However, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\ threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 1121 页 | 1.38 MB | 1 年前3Celery v4.2.2 Documentation
prefork. However, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\ threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 1121 页 | 1.38 MB | 1 年前3Celery v4.2.0 Documentation
prefork. How- ever, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions routes.MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\.tasks\..*'): 'media' threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 738 页 | 2.68 MB | 1 年前3Celery v4.2.2 Documentation
prefork. How- ever, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions routes.MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\.tasks\..*'): 'media' threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 744 页 | 2.71 MB | 1 年前3Celery v4.2.0 Documentation
prefork. However, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Evenetlet. Also note that some libraries, usually with C extensions MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\ threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 1110 页 | 1.36 MB | 1 年前3Celery 3.1 Documentation
threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores routes.MapRoute instance. Examples: CELERY_ROUTES = {"celery.ping": "default", "mytasks.add": "cpu-bound", "video.encode": { "queue": "video", "exchange": "media" "routing_key": "media.video.encode"}} MapRoute instance. Examples: >>> CELERY_ROUTES = {"celery.ping": "default", "mytasks.add": "cpu-bound", "video.encode": { "queue": "video", "exchange": "media" "routing_key": "media.video.encode"}}0 码力 | 607 页 | 2.27 MB | 1 年前3Celery 3.1 Documentation
threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores instance. Examples: CELERY_ROUTES = {"celery.ping": "default", "mytasks.add": "cpu-bound", "video.encode": { "queue": "video", "exchange": Examples: >>> CELERY_ROUTES = {"celery.ping": "default", "mytasks.add": "cpu-bound", "video.encode": { "queue": "video",0 码力 | 887 页 | 1.22 MB | 1 年前3Celery v4.4.5 Documentation
prefork. However, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Eventlet. Also note that some libraries, usually with C extensions MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\ threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery 4.4.0 Documentation
prefork. However, you need to ensure one task doesn’t block the event loop too long. Generally, CPU-bound operations don’t go well with Eventlet. Also note that some libraries, usually with C extensions MapRoute instance. Examples: task_routes = { 'celery.ping': 'default', 'mytasks.add': 'cpu-bound', 'feed.tasks.*': 'feeds', # <-- glob pattern re.compile(r'(image|video)\ threads executing tasks. If you’re doing mostly I/O you can have more processes, but if mostly CPU-bound, try to keep it close to the number of CPUs on your machine. If not set, the number of CPUs/cores0 码力 | 1185 页 | 1.42 MB | 1 年前3
共 49 条
- 1
- 2
- 3
- 4
- 5