Celery 3.0 Documentationa task using the tasks delay method, and this is often all you need, but sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for this long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module setting will be censored if the name contains any of these sub- strings: API, TOKEN, KEY, SECRET, PASS, SIGNATURE, DATABASE Laziness The application instance is lazy, meaning it won’t be evaluated until0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationa task using the tasks delay method, and this is often all you need, but sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for this long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module setting will be censored if the name contains any of these sub- strings: API, TOKEN, KEY, SECRET, PASS, SIGNATURE, DATABASE Laziness The application instance is lazy, meaning it won’t be evaluated until0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery v5.0.1 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queues setting: broker_transport_options = { a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queues setting: broker_transport_options = { a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.5 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queues setting: broker_transport_options = { a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queue_urls setting: broker_transport_options = a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery 2.5 DocumentationFailWhaleError, Twitter.LoginError), exc: send_twitter_status.retry(exc=exc) Here we used the exc argument to pass the current exception to retry(). At each step of the retry this exception is available as the tombstone Let’s look at some examples that work, and one that doesn’t: # OK: class HttpError(Exception): pass # BAD: class HttpError(Exception): def __init__(self, status_code): self.status_code = status_code arguments, so if you want to preserve keyword arguments when the exception is unpickled you have to pass them as regular args: class HttpError(Exception): def __init__(self, status_code, headers=None,0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery v4.4.6 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queue_urls setting: broker_transport_options = a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for which long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 1216 页 | 1.44 MB | 1 年前3
Celery v4.4.7 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queue_urls setting: broker_transport_options = a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for which long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 1219 页 | 1.44 MB | 1 年前3
Celery v4.4.5 Documentationpredefined queues in AWS, and to never attempt to list SQS queues, nor attempt to create or delete them, pass a map of queue names to URLs using the predefined_queue_urls setting: broker_transport_options = a task using the tasks delay method, and this is often all you need. But sometimes you may want to pass the signature of a task invocation to another process or as an argument to another function, for which long as import celeryconfig is possible. Example 2: Passing an actual module object You can also pass an already imported module object, but this isn’t always recommended. Tip Using the name of a module0 码力 | 1215 页 | 1.44 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













