Celery v5.0.1 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # [https://docs.python.org/dev/library/functions.html#bool]) – Apply new settings globally on all channels. property queues receive(body, message) Method called when a message is received. This dispatches Derek Harland Redis Results Backend: Unsubscribe on message success. Previously Celery would leak channels, filling the memory of the Redis instance. Contributed by George Psarakis Task: Only convert eta0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery 3.0 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # all virtual hosts when using the Redis transport. You can now fix this by enabling a prefix to all channels so that the messages are separated: BROKER_TRANSPORT_OPTIONS = {'fanout_prefix': True} Note that prefetch window in terms of whole messages. apply_global (bool) – Apply new settings globally on all channels. RPCBackend.ResultConsumer.Consumer.queues RPCBackend.ResultConsumer.Consumer.receive(body, message)0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # all virtual hosts when using the Redis transport. You can now fix this by enabling a prefix to all channels so that the messages are separated: BROKER_TRANSPORT_OPTIONS = {'fanout_prefix': True} Note that prefetch window in terms of whole messages. apply_global (bool) – Apply new settings globally on all channels. RPCBackend.ResultConsumer.Consumer.queues RPCBackend.ResultConsumer.Consumer.receive(body, message)0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery v5.0.2 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # [https://docs.python.org/dev/library/functions.html#bool]) – Apply new settings globally on all channels. property queues receive(body, message) Method called when a message is received. This dispatches Derek Harland Redis Results Backend: Unsubscribe on message success. Previously Celery would leak channels, filling the memory of the Redis instance. Contributed by George Psarakis Task: Only convert eta0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # [https://docs.python.org/dev/library/functions.html#bool]) – Apply new settings globally on all channels. property queues receive(body, message) Method called when a message is received. This dispatches Derek Harland Redis Results Backend: Unsubscribe on message success. Previously Celery would leak channels, filling the memory of the Redis instance. Contributed by George Psarakis Task: Only convert eta0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.5 Documentationinterface and defines the two methods above. qos The QoS object can be used to change the task channels current prefetch_count value: # increment at next cycle consumer.qos.increment_eventually(1) # [https://docs.python.org/dev/library/functions.html#bool]) – Apply new settings globally on all channels. property queues receive(body, message) Method called when a message is received. This dispatches Derek Harland Redis Results Backend: Unsubscribe on message success. Previously Celery would leak channels, filling the memory of the Redis instance. Contributed by George Psarakis Task: Only convert eta0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery 2.5 Documentationused with the retry argument to apply_async. The example code below will re-use connections and channels, and retry sending of the task message if the connection is lost. from celery import current_app can consume messages. consume_messages() is simply an infinite loop waiting for events on the AMQP channels. Both the task consumer and the broadcast consumer uses the same callback: receive_message(). consume broadcast commands. close_connection() Closes the current broker connection and all open channels. connection = None The broker connection. consume_messages() Consume messages forever (or until0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.4 Documentationused with the retry argument to apply_async. The example code below will re-use connections and channels, and retry sending of the task message if the connection is lost. from celery import current_app can consume messages. consume_messages() is simply an infinite loop waiting for events on the AMQP channels. Both the task consumer and the broadcast consumer uses the same callback: receive_message(). consume broadcast commands. close_connection() Closes the current broker connection and all open channels. connection = None The broker connection. consume_messages() Consume messages forever (or until0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.4 Documentationused with the retry argument to apply_async. The example code below will re-use connections and channels, and retry sending of the task message if the connection is lost. from celery import current_app can consume messages. consume_messages() is simply an infinite loop waiting for events on the AMQP channels. Both the task consumer and the broadcast consumer uses the same callback: receive_message(). consume broadcast commands. close_connection() Closes the current broker connection and all open channels. connection = None The broker connection. consume_messages() Consume messages forever (or until0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.3 Documentationused with the retry argument to apply_async. The example code below will re-use connections and channels, and retry sending of the task message if the connection is lost. 152 Chapter 9. Change history consume broadcast commands. close_connection() Closes the current broker connection and all open channels. connection = None The broker connection. consume_messages() Consume messages forever (or until initial_value, logger) Quality of Service for Channel. For thread-safe increment/decrement of a channels prefetch count value. Parameters • consumer – A kombu.messaging.Consumer instance. • initial_value0 码力 | 334 页 | 1.25 MB | 1 年前3
共 47 条
- 1
- 2
- 3
- 4
- 5













