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

Use deepcopy to avoid change skeleton

parent 4230c807
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
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import copy
import json import json
import signal import signal
import rc_util import rc_util
...@@ -85,7 +86,7 @@ def task_manager(ch, method, properties, body): ...@@ -85,7 +86,7 @@ def task_manager(ch, method, properties, body):
routing_key = "" routing_key = ""
if username not in tracking: if username not in tracking:
current = tracking[username] = record.copy() current = tracking[username] = copy.deepcopy(record)
current['delivery_tags'] = [] current['delivery_tags'] = []
current['errmsg'] = [] current['errmsg'] = []
current['uid'] = msg.get('uid', -1) current['uid'] = msg.get('uid', -1)
......
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