Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
self-reg-form
Commits
e9fcbe98
Commit
e9fcbe98
authored
May 06, 2021
by
Krish Moodbidri
Browse files
changed rc_util function calls to match rabbitmq agent modification
parent
8418b669
Pipeline
#4628
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
e9fcbe98
...
...
@@ -51,11 +51,12 @@ def celery_create_account(json, session):
email
=
json
[
'email'
]
fullname
=
json
[
'fullname'
]
reason
=
json
[
'reason'
]
queuename
=
rc_util
.
encode_name
(
username
)
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
send_msg
(
'creating account'
,
room
)
print
(
username
)
rc_util
.
add_account
(
username
,
email
,
fullname
,
reason
)
rc_util
.
add_account
(
username
,
queuename
,
email
,
fullname
,
reason
)
print
(
'sent account info'
)
print
(
'Waiting for completion...'
)
rc_util
.
consume
(
user
name
,
routing_key
=
f
'complete.
{
user
name
}
'
,
callback
=
gen_f
(
room
))
rc_util
.
consume
(
queue
name
,
routing_key
=
f
'complete.
{
queue
name
}
'
,
callback
=
gen_f
(
room
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment