Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
604f0ddc
Unverified
Commit
604f0ddc
authored
10 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
v1.3.1
parent
26f5c4f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coolamqp/__init__.py
+1
-1
1 addition, 1 deletion
coolamqp/__init__.py
coolamqp/objects.py
+6
-6
6 additions, 6 deletions
coolamqp/objects.py
with
7 additions
and
7 deletions
coolamqp/__init__.py
+
1
−
1
View file @
604f0ddc
__version__
=
'
1.3.1
a2
'
__version__
=
'
1.3.1
'
This diff is collapsed.
Click to expand it.
coolamqp/objects.py
+
6
−
6
View file @
604f0ddc
...
...
@@ -216,17 +216,15 @@ class Queue(object):
This object represents a Queue that applications consume from or publish to.
Create a queue definition.
:param name: name of the queue.
Take special care if this is empty. If empty, this will be filled-in by the broker
upon declaration. If a disconnect happens, and connection to other node is
reestablished, this name will CHANGE AGAIN, and be reflected in this object.
This change will be done before CoolAMQP signals reconnection.
:param name: name of the queue. Generates a random uuid.uuid4().hex if not given. Note that this kind of queue
will probably require to be declared.
:param durable: Is the queue durable?
:param exchange: Exchange for this queue to bind to. None for no binding.
:param exclusive: Is this queue exclusive?
:param auto_delete: Is this queue auto_delete ?
.. warning:: If a queue name is not given, and it will be allocated by the server, it will be a memoryview!
.. warning:: Anonymous queues are not supported, because due to how CoolAMQP works there
'
s no guarantee that
they will be subscribed to over the channel that they are declared.
"""
__slots__
=
(
'
name
'
,
'
durable
'
,
'
exchange
'
,
'
auto_delete
'
,
'
exclusive
'
,
'
anonymous
'
,
'
consumer_tag
'
)
...
...
@@ -237,6 +235,8 @@ class Queue(object):
exclusive
=
False
,
# type: bool
auto_delete
=
False
# type: bool
):
if
not
name
:
name
=
uuid
.
uuid4
().
hex
self
.
name
=
tobytes
(
name
)
#: public, must be bytes
# if name is '', this will be filled in with broker-generated name upon declaration
self
.
durable
=
durable
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment