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
651012b6
Commit
651012b6
authored
May 17, 2022
by
Krish Moodbidri
Browse files
added host variable & updated tasks to match rc_util parameters
parent
bcc5650f
Pipeline
#6132
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
651012b6
...
@@ -90,12 +90,13 @@ def celery_certify_account(json, session):
...
@@ -90,12 +90,13 @@ def celery_certify_account(json, session):
email
=
json
[
'email'
]
email
=
json
[
'email'
]
fullname
=
json
[
'fullname'
]
fullname
=
json
[
'fullname'
]
queuename
=
rc_util
.
encode_name
(
username
)
queuename
=
rc_util
.
encode_name
(
username
)
updated_by
=
f
'
{
username
}
@login005'
updated_by
=
f
'
{
username
}
'
host
=
'login005'
print
(
"CERTIFY : "
+
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
print
(
"CERTIFY : "
+
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
send_msg
(
'certifying account'
,
room
)
send_msg
(
'certifying account'
,
room
)
print
(
username
)
print
(
username
)
rc_util
.
certify_account
(
username
,
queuename
,
'ok'
,
'all'
,
updated_by
)
rc_util
.
certify_account
(
username
,
queuename
,
'ok'
,
'all'
,
updated_by
,
host
)
print
(
'sent account info'
)
print
(
'sent account info'
)
print
(
'Waiting for certification...'
)
print
(
'Waiting for certification...'
)
rc_util
.
consume
(
queuename
,
routing_key
=
f
'certified.
{
queuename
}
'
,
callback
=
certify_gen_f
(
room
))
rc_util
.
consume
(
queuename
,
routing_key
=
f
'certified.
{
queuename
}
'
,
callback
=
certify_gen_f
(
room
))
Write
Preview
Supports
Markdown
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