Skip to content
Snippets Groups Projects
Commit e1739957 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Create new array for errmsg

avoiding referencing to the same list
parent 3acf6291
No related branches found
No related tags found
6 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq,!62Feat notify user errmsg,!63Feat db handle,!55task manager fail handling
......@@ -21,7 +21,7 @@ record = {
'reason': '',
'fullname': '',
'last_update': datetime.now(),
'errmsg': [],
'errmsg': None,
'waiting': set(),
'request': {
'create_account': None
......@@ -87,6 +87,7 @@ def task_manager(ch, method, properties, body):
if username not in tracking:
current = tracking[username] = record.copy()
current['delivery_tags'] = []
current['errmsg'] = []
current['uid'] = msg.get('uid', -1)
current['gid'] = msg.get('gid', -1)
current['email'] = msg.get('email', '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment