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
45a470d9
Commit
45a470d9
authored
Oct 02, 2020
by
Krish Moodbidri
Browse files
replaced script call from flask_producer.py to create_account.py
parent
f0f1d300
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks.py
View file @
45a470d9
...
...
@@ -24,6 +24,6 @@ def celery_create_account(username, fullname, reason, session):
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
User '
+
username
+
' added to queue'
)
send_msg
(
'creating account'
,
room
)
print
(
username
)
subprocess
.
call
([
"/opt/rabbitmq_agents/
flask_producer.py"
,
"ohpc
_account
_create
"
,
username
])
subprocess
.
call
([
"/opt/rabbitmq_agents/
create
_account
.py
"
,
username
,
email
,
fullname
,
reason
])
print
(
time
.
strftime
(
"%m-%d-%Y_%H:%M:%S"
)
+
'
\t
Account successfully created for '
+
username
)
send_msg
(
'account ready'
,
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