File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ resolution
3939
4040- Fixed forks with same source process name.
4141- Fixed ` inspect ` issue when tasks took more than a day in duration.
42+ - Added hardware address to ` inpsect ` and ` report ` hash.
4243
4344## 1.3.1
4445
Original file line number Diff line number Diff line change 11import re
22import os
33import sys
4+ import uuid
45import time
56import curses
67import signal
@@ -1540,7 +1541,8 @@ def _get_run_hash(self):
15401541 # Get hash from the current working dir and hostname
15411542 workdir = self .workdir .encode ("utf8" )
15421543 hostname = socket .gethostname ().encode ("utf8" )
1543- dir_hash = hashlib .md5 (workdir + hostname )
1544+ hardware_addr = str (uuid .getnode ()).encode ("utf8" )
1545+ dir_hash = hashlib .md5 (workdir + hostname + hardware_addr )
15441546
15451547 return pipeline_hash .hexdigest () + dir_hash .hexdigest ()
15461548
Original file line number Diff line number Diff line change 22import re
33import sys
44import json
5+ import uuid
56import signal
67import socket
78import hashlib
@@ -195,7 +196,8 @@ def _get_report_id(self):
195196 # Get hash from the current working dir and hostname
196197 workdir = os .getcwd ().encode ("utf8" )
197198 hostname = socket .gethostname ().encode ("utf8" )
198- dir_hash = hashlib .md5 (workdir + hostname )
199+ hardware_addr = str (uuid .getnode ()).encode ("utf8" )
200+ dir_hash = hashlib .md5 (workdir + hostname + hardware_addr )
199201
200202 return pipeline_hash .hexdigest () + dir_hash .hexdigest ()
201203
You can’t perform that action at this time.
0 commit comments