Celery 2.0 Documentation
You can also enable a soft time limit (--soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from celery.decorators import task from celery.exceptions celery.exceptions.SoftTimeLimitExceeded ex- ception will be raised when this is exceeded. The task can catch this to e.g. clean up before the hard time limit comes. from celery.decorators import task from celery iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, interval_step=2 0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 2.0 Documentation
You can also enable a soft time limit (--soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from celery.decorators import task from celery.exceptions celery.exceptions.SoftTimeLimitExceeded exception will be raised when this is exceeded. The task can catch this to e.g. clean up before the hard time limit comes. from celery.decorators import task from celery iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, interval_step=2 0 码力 | 284 页 | 332.71 KB | 1 年前3Celery 2.1 Documentation
You can also enable a soft time limit (--soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from celery.decorators import task from celery.exceptions seconds. The SoftTimeLimitExceeded exception will be raised when this is exceeded. The task can catch this to e.g. clean up before the hard time limit comes. Example: from celery.decorators import task iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, inter- 0 码力 | 285 页 | 1.19 MB | 1 年前3Celery 1.0 Documentation
iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, inter- every retry until the max seconds is reached. Parameters • fun – The function to try • catch – Exceptions to catch, can be either tuple or a single exception class. • args – Positional arguments passed Internals Celery Documentation, Release 1.0.6 (stable) • errback – Callback for when an exception in catch is raised. The callback must take two arguments: exc and interval, where exc is the exception instance 0 码力 | 123 页 | 400.69 KB | 1 年前3Celery 1.0 Documentation
iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, interval_step=2 every retry until the max seconds is reached. Parameters: fun – The function to try catch – Exceptions to catch, can be either tuple or a single exception class. args – Positional arguments passed on kwargs – Keyword arguments passed on to the function. errback – Callback for when an exception in catch is raised. The callback must take two arguments: exc and interval, where exc is the exception instance 0 码力 | 221 页 | 283.64 KB | 1 年前3Celery 2.1 Documentation
You can also enable a soft time limit (--soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from celery.decorators import task from celery.exceptions seconds. The SoftTimeLimitExceeded exception will be raised when this is exceeded. The task can catch this to e.g. clean up before the hard time limit comes. Example: from celery.decorators import task iterator, and when its exhausted yield the last value infinitely. celery.utils.retry_over_time(fun, catch, args=[], kwargs={}, errback=, max_retries=None, interval_start=2, interval_step=2 0 码力 | 463 页 | 861.69 KB | 1 年前3Celery 3.0 Documentation
values, soft and hard. The soft time limit allows the task to catch an exception to clean up before it is killed: the hard timeout isn’t catch-able and force terminates the task. ... 'd9d35e03-2997- You can also enable a soft time limit (–soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from myapp import app from celery.exceptions import of handlers called when events come in. You can have different handlers for each event type, or a catch-all handler can be used (‘*’) State (optional) app.events.State is a convenient in-memory representation0 码力 | 2110 页 | 2.23 MB | 1 年前3Celery v4.0.0 Documentation
values, soft and hard. The soft time limit allows the task to catch an exception to clean up before it is killed: the hard timeout isn’t catch-able and force terminates the task. ... 'd9d35e03-2997- You can also enable a soft time limit (–soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from myapp import app from celery.exceptions import of handlers called when events come in. You can have different handlers for each event type, or a catch-all handler can be used (‘*’) State (optional) app.events.State is a convenient in-memory representation0 码力 | 2106 页 | 2.23 MB | 1 年前3Celery v5.0.1 Documentation
values, soft and hard. The soft time limit allows the task to catch an exception to clean up before it is killed: the hard timeout isn’t catch-able and force terminates the task. celery multi start 2 -l You can also enable a soft time limit (–soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from myapp import app from celery.exceptions import of handlers called when events come in. You can have different handlers for each event type, or a catch-all handler can be used (‘*’) State (optional) app.events.State is a convenient in-memory representation0 码力 | 2313 页 | 2.13 MB | 1 年前3Celery v5.0.2 Documentation
values, soft and hard. The soft time limit allows the task to catch an exception to clean up before it is killed: the hard timeout isn’t catch-able and force terminates the task. celery multi start 2 -l You can also enable a soft time limit (–soft-time-limit), this raises an exception the task can catch to clean up before the hard time limit kills it: from myapp import app from celery.exceptions import of handlers called when events come in. You can have different handlers for each event type, or a catch-all handler can be used (‘*’) State (optional) app.events.State is a convenient in-memory representation0 码力 | 2313 页 | 2.14 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6