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
651b4181
Commit
651b4181
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Fix E302 expected 2 blank lines
parent
059ee91c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!105
Fix linting
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
agent_template.py
+1
-0
1 addition, 0 deletions
agent_template.py
prod_rmq_agents/get-next-uid-gid.py
+1
-2
1 addition, 2 deletions
prod_rmq_agents/get-next-uid-gid.py
prod_rmq_agents/user_reg_event_logger.py
+1
-0
1 addition, 0 deletions
prod_rmq_agents/user_reg_event_logger.py
with
3 additions
and
2 deletions
agent_template.py
+
1
−
0
View file @
651b4181
...
...
@@ -7,6 +7,7 @@ task = "task_name"
# Instantiate rabbitmq object
rc_rmq
=
RCRMQ
({
"
exchange
"
:
"
RegUsr
"
,
"
exchange_type
"
:
"
topic
"
})
# Define your callback function
def
on_message
(
ch
,
method
,
properties
,
body
):
...
...
This diff is collapsed.
Click to expand it.
prod_rmq_agents/get-next-uid-gid.py
+
1
−
2
View file @
651b4181
...
...
@@ -18,9 +18,8 @@ args = rc_util.get_args()
# Logger
logger
=
rc_util
.
get_logger
()
# Account creation
# Account creation
def
create_account
(
msg
):
logger
.
info
(
f
"
Account creation request received:
{
msg
}
"
)
...
...
This diff is collapsed.
Click to expand it.
prod_rmq_agents/user_reg_event_logger.py
+
1
−
0
View file @
651b4181
...
...
@@ -7,6 +7,7 @@ task = "user_reg_event_log"
# Instantiate rabbitmq object
rc_rmq
=
RCRMQ
({
"
exchange
"
:
"
RegUsr
"
,
"
exchange_type
"
:
"
topic
"
})
# Define your callback function
def
log_user_reg_events
(
ch
,
method
,
properties
,
body
):
...
...
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