Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
9
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
cdf49d24
Commit
cdf49d24
authored
5 years ago
by
Eesaan Atluri
Browse files
Options
Downloads
Patches
Plain Diff
Change call back func name
parent
50883756
No related branches found
No related tags found
6 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!85
kill nginx process running under user from login node
,
!51
Fix acct create wait
,
!39
WIP:Feat cod rmq
,
!38
WIP: Feat cod rmq
,
!28
Feat resolve uid gid
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get-next-uid-gid.py
+2
-2
2 additions, 2 deletions
get-next-uid-gid.py
with
2 additions
and
2 deletions
get-next-uid-gid.py
+
2
−
2
View file @
cdf49d24
...
...
@@ -41,7 +41,7 @@ def create_account(msg):
logger
.
exception
(
"
Fatal cmsh error:
"
)
# Define your callback function
def
get_next
_uid_gid
(
ch
,
method
,
properties
,
body
):
def
resolve
_uid_gid
(
ch
,
method
,
properties
,
body
):
# Retrieve message
msg
=
json
.
loads
(
body
)
...
...
@@ -91,7 +91,7 @@ logger.info("Start listening to queue: {}".format(task))
rc_rmq
.
start_consume
({
'
queue
'
:
task
,
'
routing_key
'
:
"
request.*
"
,
'
cb
'
:
get_next
_uid_gid
'
cb
'
:
resolve
_uid_gid
})
logger
.
info
(
"
Disconnected
"
)
...
...
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