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

Update waiting list when restore from DB

parent 6130180f
No related branches found
No related tags found
5 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
......@@ -139,6 +139,13 @@ def task_manager(ch, method, properties, body):
current['verify']['subscribe_mail_list'] = user_db['subscribe_mail_list']
current['notify']['notify_user'] = user_db['notify_user']
for t in ['git_commit', 'dir_verify', 'subscribe_mail_list']:
if user_db[t] is None:
current['waiting'].add(t)
if not current['waiting'] and user_db['notify_user'] is None:
current['waiting'].add('notify_user')
logger.debug(f'Loaded user {username} from DB')
else:
......
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