Celery 2.3 DocumentationThe rate limits can be specified in seconds, minutes or hours by appending “/s”, “/m” or “/h” to the value. Example: “100/m” (hundred tasks a minute). Default is the CELERY_DEFAULT_RATE_LIMIT setting, which broadcast >>> broadcast("rate_limit", arguments={"task_name": "myapp.mytask", ... "rate_limit": "200/m"}) This will send the command asynchronously, without waiting for a reply. To request a reply you have the reply argument: >>> broadcast("rate_limit", {"task_name": "myapp.mytask", ... "rate_limit": "200/m"}, reply=True) [{’worker1.example.com’: ’New rate limit set successfully’}, {’worker2.example.com’:0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 DocumentationThe rate limits can be specified in seconds, minutes or hours by appending “/s”, “/m” or “/h” to the value. Example: “100/m” (hundred tasks a minute). Default is the CELERY_DEFAULT_RATE_LIMIT setting, which broadcast >>> broadcast("rate_limit", arguments={"task_name": "myapp.mytask", ... "rate_limit": "200/m"}) This will send the command asynchronously, without waiting for a reply. To request a reply you have the reply argument: >>> broadcast("rate_limit", {"task_name": "myapp.mytask", ... "rate_limit": "200/m"}, reply=True) [{’worker1.example.com’: ’New rate limit set successfully’}, {’worker2.example.com’:0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.5 DocumentationThe rate limits can be specified in seconds, minutes or hours by appending “/s”, “/m” or “/h” to the value. Example: “100/m” (hundred tasks a minute). Default is the CELERY_DEFAULT_RATE_LIMIT setting, which broadcast >>> broadcast("rate_limit", arguments={"task_name": "myapp.mytask", ... "rate_limit": "200/m"}) This will send the command asynchronously, without waiting for a reply. To request a reply you have Documentation, Release 2.5.5 >>> broadcast("rate_limit", {"task_name": "myapp.mytask", ... "rate_limit": "200/m"}, reply=True) [{’worker1.example.com’: ’New rate limit set successfully’}, {’worker2.example.com’:0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 DocumentationThe rate limits can be specified in seconds, minutes or hours by appending “/s”, “/m” or “/h” to the value. Example: “100/m” (hundred tasks a minute). Default is the CELERY_DEFAULT_RATE_LIMIT setting, which arguments={"task_name": "myapp.mytask", ... "rate_limit": "200/m"}) This will send the command asynchronously, without waiting for a reply. To request a reply you have broadcast("rate_limit", {"task_name": "myapp.mytask", ... "rate_limit": "200/m"}, reply=True) [{'worker1.example.com': 'New rate limit set successfully'}, {'worker2.example.com':0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.2 DocumentationThe rate limits can be specified in seconds, minutes or hours by appending “/s”, “/m” or “/h” to the value. Example: “100/m” (hundred tasks a minute). Default is the CELERY_DEFAULT_RATE_LIMIT setting, which arguments={"task_name": "myapp.mytask", ... "rate_limit": "200/m"}) This will send the command asynchronously, without waiting for a reply. To request a reply you have broadcast("rate_limit", {"task_name": "myapp.mytask", ... "rate_limit": "200/m"}, reply=True) [{'worker1.example.com': 'New rate limit set successfully'}, {'worker2.example.com':0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery v4.4.7 Documentationthe current stable version of Celery (4.4). For development docs, go here. Copyright Celery User Manual by Ask Solem Copyright © 2009-2016, Ask Solem. All rights reserved. This material may be copied configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration and defaults. To only 10 tasks of this type can be processed in a minute (10/m): celeryconfig.py: task_annotations = { 'tasks.add': {'rate_limit': '10/m'} } If you’re using RabbitMQ or Redis as the broker then you0 码力 | 1219 页 | 1.44 MB | 1 年前3
Celery v4.4.6 Documentationthe current stable version of Celery (4.4). For development docs, go here. Copyright Celery User Manual by Ask Solem Copyright © 2009-2016, Ask Solem. All rights reserved. This material may be copied configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration and defaults. To only 10 tasks of this type can be processed in a minute (10/m): celeryconfig.py: task_annotations = { 'tasks.add': {'rate_limit': '10/m'} } If you’re using RabbitMQ or Redis as the broker then you0 码力 | 1216 页 | 1.44 MB | 1 年前3
Celery v4.4.5 Documentationthe current stable version of Celery (4.4). For development docs, go here. Copyright Celery User Manual by Ask Solem Copyright © 2009-2016, Ask Solem. All rights reserved. This material may be copied configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration and defaults. To only 10 tasks of this type can be processed in a minute (10/m): celeryconfig.py: task_annotations = { 'tasks.add': {'rate_limit': '10/m'} } If you’re using RabbitMQ or Redis as the broker then you0 码力 | 1215 页 | 1.44 MB | 1 年前3
Celery v4.4.4 Documentationthe current stable version of Celery (4.4). For development docs, go here. Copyright Celery User Manual by Ask Solem Copyright © 2009-2016, Ask Solem. All rights reserved. This material may be copied configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration and defaults. To only 10 tasks of this type can be processed in a minute (10/m): celeryconfig.py: task_annotations = { 'tasks.add': {'rate_limit': '10/m'} } If you’re using RabbitMQ or Redis as the broker then you0 码力 | 1215 页 | 1.44 MB | 1 年前3
Celery 4.4.3 Documentationthe current stable version of Celery (4.4). For development docs, go here. Copyright Celery User Manual by Ask Solem Copyright © 2009-2016, Ask Solem. All rights reserved. This material may be copied configuration file works properly and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration options, see Configuration and defaults. To only 10 tasks of this type can be processed in a minute (10/m): celeryconfig.py: task_annotations = { 'tasks.add': {'rate_limit': '10/m'} } If you’re using RabbitMQ or Redis as the broker then you0 码力 | 1209 页 | 1.44 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













