Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
13
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
d459bcd2
Unverified
Commit
d459bcd2
authored
2 years ago
by
Bo-Chun Chen
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check connection before disconnect (#115)
parent
9296aed0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!147
Merge previous default branch feat-cod-rmq into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rc_rmq.py
+4
-3
4 additions, 3 deletions
rc_rmq.py
with
4 additions
and
3 deletions
rc_rmq.py
+
4
−
3
View file @
d459bcd2
...
...
@@ -100,9 +100,10 @@ class RCRMQ(object):
return
result
.
method
.
queue
def
disconnect
(
self
):
self
.
_channel
.
close
()
self
.
_connection
.
close
()
self
.
_connection
=
None
if
self
.
_connection
:
self
.
_channel
.
close
()
self
.
_connection
.
close
()
self
.
_connection
=
None
def
delete_queue
(
self
,
queue
):
self
.
_channel
.
queue_delete
(
queue
)
...
...
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