Skip to content

V3.5.0#3

Merged
gmr merged 24 commits into
masterfrom
v3.5.0
Apr 25, 2015
Merged

V3.5.0#3
gmr merged 24 commits into
masterfrom
v3.5.0

Conversation

@gmr
Copy link
Copy Markdown
Owner

@gmr gmr commented Apr 25, 2015

No description provided.

gmr added 24 commits April 24, 2015 00:32
It only had the State class, nothing else common
- Is silly to have private vars since this is not a library
- Change the consumers dict to an object to make it easier to reference
- No need to check for zombie processes, silly me
- Clean up how the -o and -q cli switches filter data
- Fix some overriding of top level import names
- Reformat with yapf
- Structure so the processing can make use of tornado's concurrency features
- Rename Consumer.configuration with Consumer.settings to more closely match Tornado's RequestHandler
- Add Consumer.finish to explicitly end async processing
- Add Consumer.require_setting to allow consumers to define the config/settings contract
- Add Consumer.on_finish, Consumer.shutdown stubs
- Add statsd incr/add_timing methods
- Extract counters to rejected.stats
- Moved statsd support to rejected.statsd
- Clean up error/failure counting behavior
- Remove redundant methods like is_idle
- Move private _variables to variables
Consumers can now work as a @gen.coroutine or normal sync process
gmr added a commit that referenced this pull request Apr 25, 2015
@gmr gmr merged commit 8325c24 into master Apr 25, 2015
@gmr gmr deleted the v3.5.0 branch April 25, 2015 03:18
gmr added a commit that referenced this pull request Apr 1, 2026
Bounded pending deque (#2):
Initialized with maxlen=qos_prefetch so memory usage is bounded by the
configured prefetch count. RabbitMQ's QoS guarantee means the deque
should never actually reach capacity in normal operation; the maxlen
is a defensive backstop.

Fix STATES class variable mutation (#3):
Connection and Process were calling self.STATES[key] = value in
__init__, which mutated the shared State base-class dict in-place —
affecting all subclass instances. Each class now defines its own
STATES as a class-level ClassVar that spreads the parent dict and
adds its override, so each has an independent copy and __init__ no
longer writes to shared state.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant