Celery 3.0 Documentation
request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message or if that’s not possible - cache often used data, or preload data you know is going to be used. The easiest way to share data between workers is to use a distributed cache system, like memcached [http://memcached0 码力 | 2110 页 | 2.23 MB | 1 年前3Celery v4.0.0 Documentation
request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message or if that’s not possible - cache often used data, or preload data you know is going to be used. The easiest way to share data between workers is to use a distributed cache system, like memcached [http://memcached0 码力 | 2106 页 | 2.23 MB | 1 年前3Celery v5.0.5 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 See Redis server documentation about Eviction Policies for details: https://redis.io/topics/lru-cache Group result ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task0 码力 | 2315 页 | 2.14 MB | 1 年前3Celery v5.0.1 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 See Redis server documentation about Eviction Policies for details: https://redis.io/topics/lru-cache Group result ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task0 码力 | 2313 页 | 2.13 MB | 1 年前3Celery v5.0.2 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 See Redis server documentation about Eviction Policies for details: https://redis.io/topics/lru-cache Group result ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task0 码力 | 2313 页 | 2.14 MB | 1 年前3Celery v5.0.0 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 See Redis server documentation about Eviction Policies for details: https://redis.io/topics/lru-cache Group result ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task0 码力 | 2309 页 | 2.13 MB | 1 年前3Celery v4.4.5 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery 4.4.3 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message0 码力 | 1209 页 | 1.44 MB | 1 年前3Celery v4.4.4 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery v4.4.6 Documentation
Elasticsearch, Riak MongoDB, CouchDB, Couchbase, ArangoDB Amazon DynamoDB, Amazon S3 Microsoft Azure Block Blob, Microsoft Azure Cosmos DB File system Serialization pickle, json, yaml, msgpack. zlib, bzip2 request to the same process, then it will keep state between requests. This can also be useful to cache resources, For example, a base Task class that caches a database connection: from celery import Task With smaller tasks you can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message0 码力 | 1216 页 | 1.44 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6